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)
RedirectSpecification
100
.max
in interface RedirectSpecification
maxNumberOfRedirect
- The max number of redirects allowedpublic RequestSpecification follow(boolean followRedirects)
RedirectSpecification
true
.follow
in interface RedirectSpecification
followRedirects
- true
means redirects will be followed automaticallypublic RequestSpecification allowCircular(boolean allowCircularRedirects)
RedirectSpecification
false
.allowCircular
in interface RedirectSpecification
allowCircularRedirects
- true
means circular redirects are allowed.public RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
RedirectSpecification
false
.rejectRelative
in interface RedirectSpecification
rejectRelativeRedirects
- true
means relative redirects are rejected.public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
Copyright © 2010–2022. All rights reserved.