com.jayway.restassured.internal.filter
Class FormAuthFilter

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

public class FormAuthFilter
extends Object
implements AuthFilter, groovy.lang.GroovyObject


Constructor Summary
FormAuthFilter()
           
 
Method Summary
 Response filter(FilterableRequestSpecification requestSpec, FilterableResponseSpecification responseSpec, FilterContext ctx)
          Filter the incoming request and response specifications and outgoing response.
 FormAuthConfig getConfig()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getPassword()
           
 Object getProperty(String property)
           
 Object getUserName()
           
 Object invokeMethod(String method, Object arguments)
           
 void setConfig(FormAuthConfig value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setPassword(Object value)
           
 void setProperty(String property, Object value)
           
 void setUserName(Object value)
           
 Object throwIfException(groovy.lang.Closure closure)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormAuthFilter

public FormAuthFilter()
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

getUserName

public Object getUserName()

setUserName

public void setUserName(Object value)

getPassword

public Object getPassword()

setPassword

public void setPassword(Object value)

getConfig

public FormAuthConfig getConfig()

setConfig

public void setConfig(FormAuthConfig value)

filter

public Response filter(FilterableRequestSpecification requestSpec,
                       FilterableResponseSpecification responseSpec,
                       FilterContext ctx)
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:
requestSpec - The incoming request spec
responseSpec - The incoming response spec
ctx - 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

throwIfException

public Object throwIfException(groovy.lang.Closure closure)


Copyright © 2010-2012. All Rights Reserved.