Package org.microproxy
Class HttpFiltersAdapter
java.lang.Object
org.microproxy.HttpFiltersAdapter
- All Implemented Interfaces:
HttpFilters
Convenience base class for
HttpFilters that keeps the original request and context.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FlowContextThe client connection or exchange context.static final HttpFiltersA filter that does nothing.protected final HttpRequestThe request head received from the client. -
Constructor Summary
ConstructorsConstructorDescriptionHttpFiltersAdapter(HttpRequest originalRequest) Creates filters retaining the original request without a client context.HttpFiltersAdapter(HttpRequest originalRequest, FlowContext flowContext) Creates filters retaining the original request and client context. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.microproxy.HttpFilters
chainedProxyRetryBackoff, clientToProxyRequest, exchangeEnded, filterWebSocketFrame, filterWebSocketMessage, filterWebSocketMessages, proxyToClientResponse, proxyToClientResponseSent, proxyToServerAllowMitm, proxyToServerAllowMitm, proxyToServerAllowOfflineMitm, proxyToServerConnectionFailed, proxyToServerConnectionSSLHandshakeStarted, proxyToServerConnectionStarted, proxyToServerConnectionSucceeded, proxyToServerConnectTimeout, proxyToServerFailure, proxyToServerMitmHandshake, proxyToServerRequest, proxyToServerRequestSending, proxyToServerRequestSent, proxyToServerResolutionFailed, proxyToServerResolutionStarted, proxyToServerResolutionSucceeded, proxyToServerTlsHandshakeTimeout, proxyToServerTlsIdentity, requestBufferSizeInBytes, responseBufferSizeInBytes, serverToProxyResponse, serverToProxyResponseReceived, serverToProxyResponseReceiving, serverToProxyResponseTimedOut, webSocketFrameReceived, webSocketFrameReceived
-
Field Details
-
NOOP_FILTER
A filter that does nothing. -
originalRequest
The request head received from the client. -
flowContext
The client connection or exchange context.
-
-
Constructor Details
-
HttpFiltersAdapter
Creates filters retaining the original request and client context.- Parameters:
originalRequest- the request head as received from the clientflowContext- the client connection or exchange context
-
HttpFiltersAdapter
Creates filters retaining the original request without a client context.- Parameters:
originalRequest- the request head as received from the client
-