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() |
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) |
public RedirectSpecificationImpl(RequestSpecification requestSpecification, Map httpClientParams)
public 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.public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectCopyright © 2010–2020. All rights reserved.