Package com.adyen.httpclient
Class AdyenCustomRedirectStrategy
- java.lang.Object
-
- org.apache.hc.client5.http.impl.DefaultRedirectStrategy
-
- com.adyen.httpclient.AdyenCustomRedirectStrategy
-
- All Implemented Interfaces:
org.apache.hc.client5.http.protocol.RedirectStrategy
public class AdyenCustomRedirectStrategy extends org.apache.hc.client5.http.impl.DefaultRedirectStrategyImplements a custom redirect strategy when the API returns 308
-
-
Constructor Summary
Constructors Constructor Description AdyenCustomRedirectStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetLocationURI(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)Override getLocationURI to validate the location header
-
-
-
Method Detail
-
getLocationURI
public URI getLocationURI(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException
Override getLocationURI to validate the location header- Specified by:
getLocationURIin interfaceorg.apache.hc.client5.http.protocol.RedirectStrategy- Overrides:
getLocationURIin classorg.apache.hc.client5.http.impl.DefaultRedirectStrategy- Parameters:
request- the requestresponse- the responsecontext- the context- Returns:
- location url as URI
- Throws:
org.apache.hc.core5.http.HttpException- an error has occurred
-
-