public class RedirectSpecificationImpl extends Object implements RedirectSpecification, groovy.lang.GroovyObject
| Constructor and Description |
|---|
RedirectSpecificationImpl(RequestSpecification requestSpecification,
Map httpClientParams) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public RedirectSpecificationImpl(RequestSpecification requestSpecification, Map httpClientParams)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic RequestSpecification max(int maxNumberOfRedirect)
RedirectSpecification100.max in interface RedirectSpecificationmaxNumberOfRedirect - The max number of redirects allowedpublic RequestSpecification follow(boolean followRedirects)
RedirectSpecificationtrue.follow in interface RedirectSpecificationfollowRedirects - true means redirects will be followed automaticallypublic RequestSpecification allowCircular(boolean allowCircularRedirects)
RedirectSpecificationfalse.allowCircular in interface RedirectSpecificationallowCircularRedirects - true means circular redirects are allowed.public RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
RedirectSpecificationfalse.rejectRelative in interface RedirectSpecificationrejectRelativeRedirects - true means relative redirects are rejected.Copyright © 2010–2014. All rights reserved.