Modifier | Constructor and Description |
---|---|
protected |
FilterImpl(String path,
String acceptType) |
protected |
FilterImpl(String path,
String acceptType,
Filter filter) |
Modifier and Type | Method and Description |
---|---|
Object |
delegate() |
String |
getAcceptType() |
String |
getPath()
Returns this route's path
|
abstract void |
handle(Request request,
Response response)
Invoked when a request is made on this filter's corresponding path e.g.
|
FilterImpl |
withPrefix(String prefix)
Prefix the path (used for
Service.path(java.lang.String, spark.RouteGroup) ) |
public FilterImpl withPrefix(String prefix)
Service.path(java.lang.String, spark.RouteGroup)
)prefix
- the prefixpublic abstract void handle(Request request, Response response) throws Exception
public String getAcceptType()
public String getPath()
Copyright © 2018. All rights reserved.