Package com.checkout
Class CustomAwsRedirectStrategy
- java.lang.Object
-
- org.apache.http.impl.client.DefaultRedirectStrategy
-
- com.checkout.CustomAwsRedirectStrategy
-
- All Implemented Interfaces:
org.apache.http.client.RedirectStrategy
public class CustomAwsRedirectStrategy extends org.apache.http.impl.client.DefaultRedirectStrategyLaxRedirectStrategy sends the original headers during the first request, then sends only the minimum set of headers necessary for subsequent requests during the redirect. This behavior is intended to prevent the loss of authentication or other critical headers during a redirect. The purpose of this implementation is to exclude the original CKO Headers from the request that is sent.
-
-
Constructor Summary
Constructors Constructor Description CustomAwsRedirectStrategy()
-
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)
-
-
-
Method Detail
-
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
-
-