Class HtmlUnitRedirectStrategie

  • All Implemented Interfaces:
    org.apache.http.client.RedirectStrategy

    public final class HtmlUnitRedirectStrategie
    extends org.apache.http.impl.client.DefaultRedirectStrategy
    Customized DefaultRedirectStrategy for HtmlUnit.
    • Field Summary

      • Fields inherited from class org.apache.http.impl.client.DefaultRedirectStrategy

        INSTANCE, REDIRECT_LOCATIONS, SC_PERMANENT_REDIRECT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRedirected​(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)  
      • Methods inherited from class org.apache.http.impl.client.DefaultRedirectStrategy

        createLocationURI, getLocationURI, getRedirect, isRedirectable
      • Methods inherited from class java.lang.Object

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

      • HtmlUnitRedirectStrategie

        public HtmlUnitRedirectStrategie()
    • Method Detail

      • 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
        Specified by:
        isRedirected in interface org.apache.http.client.RedirectStrategy
        Overrides:
        isRedirected in class org.apache.http.impl.client.DefaultRedirectStrategy
        Throws:
        org.apache.http.ProtocolException