Package com.atlassian.jira.http
Class Apache5OutboundWhitelistHttpClientFilter
java.lang.Object
com.atlassian.jira.http.Apache5OutboundWhitelistHttpClientFilter
- All Implemented Interfaces:
org.apache.hc.core5.http.HttpRequestInterceptor
public class Apache5OutboundWhitelistHttpClientFilter
extends Object
implements org.apache.hc.core5.http.HttpRequestInterceptor
An Apache HttpClient 5
HttpRequestInterceptor that checks outbound HTTP requests against a whitelist of allowed URLs.
If the URL is not whitelisted, an HttpException is thrown.
This filter is only active if the feature flag com.atlassian.jira.use.http.outbound.whitelist is enabled.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(org.apache.hc.core5.http.HttpRequest httpRequest, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext httpContext)
-
Constructor Details
-
Apache5OutboundWhitelistHttpClientFilter
protected Apache5OutboundWhitelistHttpClientFilter(GenericOutboundWhitelistHttpClientFilter delegate)
-
-
Method Details
-
process
public void process(org.apache.hc.core5.http.HttpRequest httpRequest, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext httpContext) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
processin interfaceorg.apache.hc.core5.http.HttpRequestInterceptor- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-