- All Known Subinterfaces:
RedirectDepthAccessor.RedirectDepthProperty
- All Known Implementing Classes:
HttpClientRequest
public interface RedirectDepthAccessor
Provides an accessor for a redirect depth property. The redirect depth
provides the count of HTTP-Request and HTTP-Response cycles where the
response represents a redirect as of
HttpStatusCode.isRedirectStatus()
. A value of -1 represents the
default behavior, e.g. using HttpURLConnection
's redirection
means.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Provides a builder method for a redirect depth property returning the builder for applying multiple build operations.static interface
Provides a mutator for a redirect depth property.static interface
Provides a redirect depth property. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the redirect depth from the redirect depth property.
-
Method Details
-
getRedirectDepth
int getRedirectDepth()Retrieves the redirect depth from the redirect depth property.- Returns:
- The redirect depth stored by the redirect depth property.
-