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 |
getProperty(String property) |
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(Map value) |
void |
setProperty(String property,
Object 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)
FilterContext
next
in interface FilterContext
request
- The request specificationresponse
- The response specificationpublic String getInternalRequestURI()
public Response send(RequestSender requestSender)
FilterContext
send
in interface FilterContext
requestSender
- The response or request specification.public void setValue(String name, Object value)
FilterContext
setValue
in interface FilterContext
name
- The name of the valuevalue
- The value itselfpublic boolean hasValue(String name)
FilterContext
hasValue
in interface FilterContext
name
- The name of the valuetrue
if the value exists in this filter context, false
otherwise.public Object getValue(String name)
FilterContext
getValue
in interface FilterContext
name
- The name of the valuenull
if no value was found for the supplied name.public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
Copyright © 2010–2019. All rights reserved.