com.jayway.restassured.internal.filter
Class RootFilter

java.lang.Object
  extended by com.jayway.restassured.internal.filter.RootFilter
All Implemented Interfaces:
Filter, groovy.lang.GroovyObject

public class RootFilter
extends Object
implements Filter, groovy.lang.GroovyObject


Constructor Summary
RootFilter()
           
 
Method Summary
 Response filter(FilterableRequestSpecification requestSpecification, FilterableResponseSpecification responseSpecification, FilterContext context)
          Filter the incoming request and response specifications and outgoing response.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootFilter

public RootFilter()
Method Detail

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 spec
responseSpecification - The incoming response spec
context - 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-2012. All Rights Reserved.