Interface RedirectDepthAccessor

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.
  • Method Details

    • getRedirectDepth

      int getRedirectDepth()
      Retrieves the redirect depth from the redirect depth property.
      Returns:
      The redirect depth stored by the redirect depth property.