Class BlacklistFilter

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

    public class BlacklistFilter
    extends HttpsAwareFiltersAdapter
    Applies blacklist entries to this request. The filter does not make a defensive copy of the blacklist entries, so there is no guarantee that the blacklist at the time of construction will contain the same values when the filter is actually invoked, if the entries are modified concurrently.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlacklistFilter​(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext ctx, java.util.Collection<BlacklistEntry> blacklistedUrls)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.HttpResponse clientToProxyRequest​(io.netty.handler.codec.http.HttpObject httpObject)  
      • 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

      • BlacklistFilter

        public BlacklistFilter​(io.netty.handler.codec.http.HttpRequest originalRequest,
                               io.netty.channel.ChannelHandlerContext ctx,
                               java.util.Collection<BlacklistEntry> blacklistedUrls)
    • Method Detail

      • clientToProxyRequest

        public io.netty.handler.codec.http.HttpResponse clientToProxyRequest​(io.netty.handler.codec.http.HttpObject httpObject)
        Specified by:
        clientToProxyRequest in interface org.littleshoot.proxy.HttpFilters
        Overrides:
        clientToProxyRequest in class org.littleshoot.proxy.HttpFiltersAdapter