com.jayway.restassured.specification
Interface RedirectSpecification

All Known Implementing Classes:
RedirectSpecificationImpl

public interface RedirectSpecification

Specify how redirects should behave.


Method Summary
 RequestSpecification allowCircular(boolean allowCircularRedirects)
          Defines whether circular redirects are allowed.
 RequestSpecification follow(boolean followRedirects)
          Defines whether redirects should be followed automatically.
 RequestSpecification max(int maxNumberOfRedirect)
          Limit the number of redirects to prevent infinite loops.
 RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
          Defines whether relative redirects should be allowed.
 

Method Detail

max

RequestSpecification max(int maxNumberOfRedirect)
Limit the number of redirects to prevent infinite loops. Default is 100.

Parameters:
maxNumberOfRedirect - The max number of redirects allowed
Returns:
The RequestSpecification

follow

RequestSpecification follow(boolean followRedirects)
Defines whether redirects should be followed automatically. Default is true.

Parameters:
followRedirects - true means redirects will be followed automatically
Returns:
The RequestSpecification

allowCircular

RequestSpecification allowCircular(boolean allowCircularRedirects)
Defines whether circular redirects are allowed. Default is false.

Parameters:
allowCircularRedirects - true means circular redirects are allowed.
Returns:
The RequestSpecification

rejectRelative

RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
Defines whether relative redirects should be allowed. Default is false.

Parameters:
rejectRelativeRedirects - true means relative redirects are rejected.
Returns:
The RequestSpecification


Copyright © 2010-2011. All Rights Reserved.