public class FilterContextImpl extends Object implements FilterContext, groovy.lang.GroovyObject
| Constructor and Description |
|---|
FilterContextImpl(String completePath,
String path,
Method method,
Object assertionClosure,
List<Filter> filterList) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAssertionClosure() |
String |
getCompleteRequestPath() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperties() |
Object |
getProperty(String property) |
Method |
getRequestMethod() |
String |
getRequestPath() |
Object |
getValue(String name)
Get a value
|
boolean |
hasValue(String name)
See if this filter context contain a value with the given name
|
Object |
invokeMethod(String method,
Object arguments) |
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(Object value) |
void |
setProperty(String property,
Object value) |
void |
setValue(String name,
Object value)
Add a value that may be used be subsequent filters.
|
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic Object getAssertionClosure()
public void setAssertionClosure(Object value)
public Object getProperties()
public void setProperties(Object value)
public Response next(FilterableRequestSpecification request, FilterableResponseSpecification response)
FilterContextnext in interface FilterContextrequest - The request specificationresponse - The response specificationpublic String getRequestPath()
getRequestPath in interface FilterContextpublic Method getRequestMethod()
getRequestMethod in interface FilterContextpublic String getCompleteRequestPath()
getCompleteRequestPath in interface FilterContextpublic 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.Copyright © 2010–2014. All rights reserved.