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 Details

  • 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:
      process in interface org.apache.hc.core5.http.HttpRequestInterceptor
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException