public abstract class Filter extends AbstractRoute
| Modifier | Constructor and Description |
|---|---|
protected |
Filter()
Constructs a filter that matches on everything
|
protected |
Filter(String path)
Constructor
|
protected |
Filter(String path,
String acceptType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcceptType() |
abstract void |
handle(Request request,
Response response)
Invoked when a request is made on this filter's corresponding path e.g.
|
halt, halt, halt, haltprotected Filter()
protected Filter(String path)
path - The filter path which is used for matching. (e.g. /hello, users/:name)public abstract void handle(Request request, Response response)
request - The request object providing information about the HTTP requestresponse - The response object providing functionality for modifying the responsepublic String getAcceptType()
Copyright © 2013. All Rights Reserved.