Class HttpsOriginalHostCaptureFilter

  • All Implemented Interfaces:
    org.littleshoot.proxy.HttpFilters

    public class HttpsOriginalHostCaptureFilter
    extends HttpsHostCaptureFilter
    Captures the original host for HTTPS requests and stores the value in the ChannelHandlerContext for use by HttpsAwareFiltersAdapter filters. This filter sets the isHttps attribute on the ChannelHandlerContext during the HTTP CONNECT and therefore MUST be invoked before any other filters calling any of the methods in HttpsAwareFiltersAdapter. This filter extends HttpsHostCaptureFilter and so also sets the host attribute on the channel for use by filters that modify the original host during the CONNECT. If the hostname is modified by filters, it will be overwritten when the HttpsHostCaptureFilter is processed later in the filter chain.
    • Field Summary

      • Fields inherited from class org.littleshoot.proxy.HttpFiltersAdapter

        ctx, NOOP_FILTER, originalRequest
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpsOriginalHostCaptureFilter​(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext ctx)  
    • Method Summary

      • Methods inherited from class org.littleshoot.proxy.HttpFiltersAdapter

        proxyToClientResponse, proxyToServerConnectionFailed, proxyToServerConnectionQueued, proxyToServerConnectionSSLHandshakeStarted, proxyToServerConnectionStarted, proxyToServerConnectionSucceeded, proxyToServerRequest, proxyToServerRequestSending, proxyToServerRequestSent, proxyToServerResolutionFailed, proxyToServerResolutionStarted, proxyToServerResolutionSucceeded, serverToProxyResponse, serverToProxyResponseReceived, serverToProxyResponseReceiving, serverToProxyResponseTimedOut
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpsOriginalHostCaptureFilter

        public HttpsOriginalHostCaptureFilter​(io.netty.handler.codec.http.HttpRequest originalRequest,
                                              io.netty.channel.ChannelHandlerContext ctx)