com.jayway.restassured.internal.filter
Class RootFilter
java.lang.Object
com.jayway.restassured.internal.filter.RootFilter
- All Implemented Interfaces:
- Filter, groovy.lang.GroovyObject
public class RootFilter
- extends Object
- implements Filter, groovy.lang.GroovyObject
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootFilter
public RootFilter()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public Object getProperty(String property)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(String property,
Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
filter
public Response filter(FilterableRequestSpecification requestSpecification,
FilterableResponseSpecification responseSpecification,
FilterContext context)
- Description copied from interface:
Filter
- Filter the incoming request and response specifications and outgoing response.
You need to call
FilterContext.next(com.jayway.restassured.specification.FilterableRequestSpecification, com.jayway.restassured.specification.FilterableResponseSpecification) when you're done otherwise the request will not be delivered.
It's of course possible to abort the filter chain execution by returning a Response directly.
- Specified by:
filter in interface Filter
- Parameters:
requestSpecification - The incoming request specresponseSpecification - The incoming response speccontext - The filter context. You need to call FilterContext.next(com.jayway.restassured.specification.FilterableRequestSpecification, com.jayway.restassured.specification.FilterableResponseSpecification) when you're done otherwise the request will not be delivered.
- Returns:
- The response
Copyright © 2010-2011. All Rights Reserved.