com.jayway.restassured.internal
Class RedirectSpecificationImpl

java.lang.Object
  extended by com.jayway.restassured.internal.RedirectSpecificationImpl
All Implemented Interfaces:
RedirectSpecification, groovy.lang.GroovyObject

public class RedirectSpecificationImpl
extends Object
implements RedirectSpecification, groovy.lang.GroovyObject


Constructor Summary
RedirectSpecificationImpl(RequestSpecification requestSpecification, Map httpClientParams)
           
 
Method Summary
 RequestSpecification allowCircular(boolean allowCircularRedirects)
          Defines whether circular redirects are allowed.
 RequestSpecification follow(boolean followRedirects)
          Defines whether redirects should be followed automatically.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
 RequestSpecification max(int maxNumberOfRedirect)
          Limit the number of redirects to prevent infinite loops.
 RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
          Defines whether relative redirects should be allowed.
 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

RedirectSpecificationImpl

public RedirectSpecificationImpl(RequestSpecification requestSpecification,
                                 Map httpClientParams)
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

max

public RequestSpecification max(int maxNumberOfRedirect)
Description copied from interface: RedirectSpecification
Limit the number of redirects to prevent infinite loops. Default is 100.

Specified by:
max in interface RedirectSpecification
Parameters:
maxNumberOfRedirect - The max number of redirects allowed
Returns:
The RequestSpecification

follow

public RequestSpecification follow(boolean followRedirects)
Description copied from interface: RedirectSpecification
Defines whether redirects should be followed automatically. Default is true.

Specified by:
follow in interface RedirectSpecification
Parameters:
followRedirects - true means redirects will be followed automatically
Returns:
The RequestSpecification

allowCircular

public RequestSpecification allowCircular(boolean allowCircularRedirects)
Description copied from interface: RedirectSpecification
Defines whether circular redirects are allowed. Default is false.

Specified by:
allowCircular in interface RedirectSpecification
Parameters:
allowCircularRedirects - true means circular redirects are allowed.
Returns:
The RequestSpecification

rejectRelative

public RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
Description copied from interface: RedirectSpecification
Defines whether relative redirects should be allowed. Default is false.

Specified by:
rejectRelative in interface RedirectSpecification
Parameters:
rejectRelativeRedirects - true means relative redirects are rejected.
Returns:
The RequestSpecification


Copyright © 2010-2012. All Rights Reserved.