Package com.browserup.bup.filters
Class BlacklistFilter
- java.lang.Object
-
- org.littleshoot.proxy.HttpFiltersAdapter
-
- com.browserup.bup.filters.HttpsAwareFiltersAdapter
-
- com.browserup.bup.filters.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.
-
-
Field Summary
-
Fields inherited from class com.browserup.bup.filters.HttpsAwareFiltersAdapter
HOST_ATTRIBUTE_NAME, IS_HTTPS_ATTRIBUTE_NAME, ORIGINAL_HOST_ATTRIBUTE_NAME
-
-
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.HttpResponseclientToProxyRequest(io.netty.handler.codec.http.HttpObject httpObject)-
Methods inherited from class com.browserup.bup.filters.HttpsAwareFiltersAdapter
getFullUrl, getHost, getHostAndPort, getOriginalUrl, isHttps
-
Methods inherited from class org.littleshoot.proxy.HttpFiltersAdapter
proxyToClientResponse, proxyToServerConnectionFailed, proxyToServerConnectionQueued, proxyToServerConnectionSSLHandshakeStarted, proxyToServerConnectionStarted, proxyToServerConnectionSucceeded, proxyToServerRequest, proxyToServerRequestSending, proxyToServerRequestSent, proxyToServerResolutionFailed, proxyToServerResolutionStarted, proxyToServerResolutionSucceeded, serverToProxyResponse, serverToProxyResponseReceived, serverToProxyResponseReceiving, serverToProxyResponseTimedOut
-
-
-
-
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:
clientToProxyRequestin interfaceorg.littleshoot.proxy.HttpFilters- Overrides:
clientToProxyRequestin classorg.littleshoot.proxy.HttpFiltersAdapter
-
-