com.jayway.restassured.internal.filter
Class FormAuthFilter
java.lang.Object
com.jayway.restassured.internal.filter.FormAuthFilter
- All Implemented Interfaces:
- Filter, AuthFilter, groovy.lang.GroovyObject
public class FormAuthFilter
- extends Object
- implements AuthFilter, groovy.lang.GroovyObject
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormAuthFilter
public FormAuthFilter()
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 specresponseSpec - The incoming response specctx - 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-2011. All Rights Reserved.