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.DefaultRedirectStrategyA custom redirect strategy for Apache Maven Wagon HttpClient.- Since:
- 3.4.0
-
-
Constructor Summary
Constructors Constructor Description WagonRedirectStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.client.methods.HttpUriRequestgetRedirect(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)booleanisRedirected(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
-
-
-
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:
isRedirectedin interfaceorg.apache.http.client.RedirectStrategy- Overrides:
isRedirectedin classorg.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:
getRedirectin interfaceorg.apache.http.client.RedirectStrategy- Overrides:
getRedirectin classorg.apache.http.impl.client.DefaultRedirectStrategy- Throws:
org.apache.http.ProtocolException
-
-