public class FilterContextImpl extends Object implements FilterContext, groovy.lang.GroovyObject
| Constructor and Description |
|---|
FilterContextImpl(String requestUri,
String fullOriginalPath,
String fullSubstitutedPath,
String internalRequestUri,
String userDefinedPath,
Object[] unnamedPathParams,
String method,
Object assertionClosure,
Iterator filters,
Map properties) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAssertionClosure() |
String |
getInternalRequestURI() |
groovy.lang.MetaClass |
getMetaClass() |
Map |
getProperties() |
Object |
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 |
setAssertionClosure(Object value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperties(Map value) |
void |
setValue(String name,
Object value)
Add a value that may be used be subsequent filters.
|
public Object getAssertionClosure()
public void setAssertionClosure(Object value)
public Map getProperties()
public void setProperties(Map value)
public Response next(FilterableRequestSpecification request, FilterableResponseSpecification response)
FilterContextnext in interface FilterContextrequest - The request specificationresponse - The response specificationpublic String getInternalRequestURI()
public Response send(RequestSender requestSender)
FilterContextsend in interface FilterContextrequestSender - The response or request specification.public void setValue(String name, Object value)
FilterContextsetValue in interface FilterContextname - The name of the valuevalue - The value itselfpublic boolean hasValue(String name)
FilterContexthasValue in interface FilterContextname - The name of the valuetrue if the value exists in this filter context, false otherwise.public Object getValue(String name)
FilterContextgetValue in interface FilterContextname - The name of the valuenull if no value was found for the supplied name.public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectCopyright © 2010–2020. All rights reserved.