public interface FilterContext
| Modifier and Type | Method and Description |
|---|---|
String |
getCompleteRequestPath()
Deprecated.
Use
FilterableRequestSpecification.getURI() instead. |
String |
getOriginalRequestPath()
Deprecated.
Use
FilterableRequestSpecification.getUserDefinedPath() instead. |
Method |
getRequestMethod()
Deprecated.
Use
FilterableRequestSpecification.getMethod() instead. |
String |
getRequestPath()
Deprecated.
Use
FilterableRequestSpecification.getDerivedPath() instead. |
String |
getRequestURI()
Deprecated.
Use
FilterableRequestSpecification.getURI() instead. |
<T> T |
getValue(String name)
Get a value
|
boolean |
hasValue(String name)
See if this filter context contain a value with the given name
|
Response |
next(FilterableRequestSpecification request,
FilterableResponseSpecification response)
Continue to the next filter in the chain.
|
Response |
send(RequestSender requestSender)
Send a request to the same request path and with the same request method as the original request.
|
void |
setValue(String name,
Object value)
Add a value that may be used be subsequent filters.
|
void setValue(String name, Object value)
name - The name of the valuevalue - The value itself<T> T getValue(String name)
T - The type of the valuename - The name of the valuenull if no value was found for the supplied name.boolean hasValue(String name)
name - The name of the valuetrue if the value exists in this filter context, false otherwise.Response send(RequestSender requestSender)
requestSender - The response or request specification.@Deprecated Method getRequestMethod()
FilterableRequestSpecification.getMethod() instead.@Deprecated String getRequestPath()
FilterableRequestSpecification.getDerivedPath() instead.@Deprecated String getOriginalRequestPath()
FilterableRequestSpecification.getUserDefinedPath() instead.
get("/something/{x}", x);
Then this method would return "/something/{x}".@Deprecated String getRequestURI()
FilterableRequestSpecification.getURI() instead.@Deprecated String getCompleteRequestPath()
FilterableRequestSpecification.getURI() instead.Response next(FilterableRequestSpecification request, FilterableResponseSpecification response)
request - The request specificationresponse - The response specificationCopyright © 2010–2015. All rights reserved.