Package org.refcodes.net
Interface RedirectDepthAccessor.RedirectDepthBuilder<B extends RedirectDepthAccessor.RedirectDepthBuilder<B>>
-
- Type Parameters:
B
- The builder to return in order to be able to apply multiple build operations.
- All Known Subinterfaces:
HttpClientRequest.HttpClientRequestBuilder
- Enclosing interface:
- RedirectDepthAccessor
public static interface RedirectDepthAccessor.RedirectDepthBuilder<B extends RedirectDepthAccessor.RedirectDepthBuilder<B>>
Provides a builder method for a redirect depth property returning the builder for applying multiple build operations. The redirect depth provides the count of HTTP-Request and HTTP-Response cycles where the response represents a redirect as ofHttpStatusCode.isRedirectStatus()
. A value of -1 represents the default behavior, e.g. usingHttpURLConnection
's redirection means.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
withRedirectDepth(int aRedirectDepth)
Sets the redirect depth for the redirect depth property.
-
-
-
Method Detail
-
withRedirectDepth
B withRedirectDepth(int aRedirectDepth)
Sets the redirect depth for the redirect depth property.- Parameters:
aRedirectDepth
- The redirect depth to be stored by the redirect depth property.- Returns:
- The builder for applying multiple build operations.
-
-