public interface FilterContext
| Modifier and Type | Method and Description |
|---|---|
String |
getCompleteRequestPath() |
Method |
getRequestMethod() |
String |
getRequestPath() |
<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.Method getRequestMethod()
String getRequestPath()
String getCompleteRequestPath()
Response next(FilterableRequestSpecification request, FilterableResponseSpecification response)
request - The request specificationresponse - The response specificationCopyright © 2010–2014. All rights reserved.