Class WagonRedirectStrategy

java.lang.Object
org.apache.http.impl.client.DefaultRedirectStrategy
org.apache.maven.wagon.shared.http.WagonRedirectStrategy
All Implemented Interfaces:
org.apache.http.client.RedirectStrategy

public class WagonRedirectStrategy extends org.apache.http.impl.client.DefaultRedirectStrategy
A custom redirect strategy for Apache Maven Wagon HttpClient.
Since:
3.4.0
  • Field Summary

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

    INSTANCE, REDIRECT_LOCATIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 org.apache.http.impl.client.DefaultRedirectStrategy

    createLocationURI, getLocationURI, isRedirectable

    Methods inherited from class java.lang.Object

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

    • WagonRedirectStrategy

      public WagonRedirectStrategy()
  • 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
      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
    • 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) throws org.apache.http.ProtocolException
      Specified by:
      getRedirect in interface org.apache.http.client.RedirectStrategy
      Overrides:
      getRedirect in class org.apache.http.impl.client.DefaultRedirectStrategy
      Throws:
      org.apache.http.ProtocolException