Class HttpClientTools.NoRedirectsStrategy

  • All Implemented Interfaces:
    org.apache.http.client.RedirectStrategy
    Enclosing class:
    HttpClientTools

    public static class HttpClientTools.NoRedirectsStrategy
    extends java.lang.Object
    implements org.apache.http.client.RedirectStrategy
    A redirect strategy which does not follow any redirects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.client.methods.HttpUriRequest getRedirect​(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)  
      boolean isRedirected​(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoRedirectsStrategy

        public NoRedirectsStrategy()
    • Method Detail

      • isRedirected

        public boolean isRedirected​(org.apache.http.HttpRequest request,
                                    org.apache.http.HttpResponse response,
                                    org.apache.http.protocol.HttpContext context)
        Specified by:
        isRedirected in interface org.apache.http.client.RedirectStrategy
      • getRedirect

        public org.apache.http.client.methods.HttpUriRequest getRedirect​(org.apache.http.HttpRequest request,
                                                                         org.apache.http.HttpResponse response,
                                                                         org.apache.http.protocol.HttpContext context)
        Specified by:
        getRedirect in interface org.apache.http.client.RedirectStrategy