Class DefaultRedirectStrategyAdaptor

java.lang.Object
org.apache.http.impl.client.DefaultRedirectStrategyAdaptor
All Implemented Interfaces:
RedirectStrategy

@Contract(threading=IMMUTABLE) @Deprecated class DefaultRedirectStrategyAdaptor extends Object implements RedirectStrategy
Deprecated.
(4.1) do not use
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final RedirectHandler
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    getRedirect(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
    Deprecated.
    Determines the redirect location given the response from the target server and the current request execution context and generates a new request to be sent to the location.
    boolean
    isRedirected(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
    Deprecated.
    Determines if a request should be redirected to a new location given the response from the target server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DefaultRedirectStrategyAdaptor

      public DefaultRedirectStrategyAdaptor(RedirectHandler handler)
      Deprecated.
  • Method Details

    • isRedirected

      public boolean isRedirected(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
      Deprecated.
      Description copied from interface: RedirectStrategy
      Determines if a request should be redirected to a new location given the response from the target server.
      Specified by:
      isRedirected in interface RedirectStrategy
      Parameters:
      request - the executed request
      response - the response received from the target server
      context - the context for the request execution
      Returns:
      true if the request should be redirected, false otherwise
      Throws:
      org.apache.http.ProtocolException
    • getRedirect

      public HttpUriRequest getRedirect(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
      Deprecated.
      Description copied from interface: RedirectStrategy
      Determines the redirect location given the response from the target server and the current request execution context and generates a new request to be sent to the location.
      Specified by:
      getRedirect in interface RedirectStrategy
      Parameters:
      request - the executed request
      response - the response received from the target server
      context - the context for the request execution
      Returns:
      redirected request
      Throws:
      org.apache.http.ProtocolException
    • getHandler

      public RedirectHandler getHandler()
      Deprecated.