Package org.littleshoot.proxy
Class ActivityTrackerAdapter
java.lang.Object
org.littleshoot.proxy.ActivityTrackerAdapter
- All Implemented Interfaces:
ActivityTracker
Adapter of
ActivityTracker interface that provides default no-op
implementations of all methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbytesReceivedFromClient(FlowContext flowContext, int numberOfBytes) Record that the proxy received bytes from the client.voidbytesReceivedFromServer(FullFlowContext flowContext, int numberOfBytes) Record that the proxy received bytes from the server.voidbytesSentToClient(FlowContext flowContext, int numberOfBytes) Record that the proxy sent bytes to the client.voidbytesSentToServer(FullFlowContext flowContext, int numberOfBytes) Record that the proxy attempted to send bytes to the server.voidclientConnected(InetSocketAddress clientAddress) Record that a client connected.voidclientDisconnected(InetSocketAddress clientAddress, SSLSession sslSession) Record that a client disconnected.voidclientSSLHandshakeSucceeded(InetSocketAddress clientAddress, SSLSession sslSession) Record that a client's SSL handshake completed.voidrequestReceivedFromClient(FlowContext flowContext, HttpRequest httpRequest) Record that proxy received anHttpRequestfrom the client.voidrequestSentToServer(FullFlowContext flowContext, HttpRequest httpRequest) Record that proxy attempted to send a request to the server.voidresponseReceivedFromServer(FullFlowContext flowContext, HttpResponse httpResponse) Record that the proxy received anHttpResponsefrom the server.voidresponseSentToClient(FlowContext flowContext, HttpResponse httpResponse) Record that the proxy sent a response to the client.
-
Constructor Details
-
ActivityTrackerAdapter
public ActivityTrackerAdapter()
-
-
Method Details
-
bytesReceivedFromClient
Description copied from interface:ActivityTrackerRecord that the proxy received bytes from the client.- Specified by:
bytesReceivedFromClientin interfaceActivityTracker- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.
-
requestReceivedFromClient
Description copied from interface:ActivityTrackerRecord that proxy received an
HttpRequestfrom the client.Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Specified by:
requestReceivedFromClientin interfaceActivityTracker- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.
-
bytesSentToServer
Description copied from interface:ActivityTrackerRecord that the proxy attempted to send bytes to the server.- Specified by:
bytesSentToServerin interfaceActivityTracker- Parameters:
flowContext- provides contextual information about the flow
-
requestSentToServer
Description copied from interface:ActivityTrackerRecord that proxy attempted to send a request to the server.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Specified by:
requestSentToServerin interfaceActivityTracker- Parameters:
flowContext- provides contextual information about the flow
-
bytesReceivedFromServer
Description copied from interface:ActivityTrackerRecord that the proxy received bytes from the server.- Specified by:
bytesReceivedFromServerin interfaceActivityTracker- Parameters:
flowContext- provides contextual information about the flow
-
responseReceivedFromServer
Description copied from interface:ActivityTrackerRecord that the proxy received an
HttpResponsefrom the server.Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Specified by:
responseReceivedFromServerin interfaceActivityTracker- Parameters:
flowContext- provides contextual information about the flow
-
bytesSentToClient
Description copied from interface:ActivityTrackerRecord that the proxy sent bytes to the client.- Specified by:
bytesSentToClientin interfaceActivityTracker- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.
-
responseSentToClient
Description copied from interface:ActivityTrackerRecord that the proxy sent a response to the client.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Specified by:
responseSentToClientin interfaceActivityTracker- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.
-
clientConnected
Description copied from interface:ActivityTrackerRecord that a client connected.- Specified by:
clientConnectedin interfaceActivityTracker
-
clientSSLHandshakeSucceeded
Description copied from interface:ActivityTrackerRecord that a client's SSL handshake completed.- Specified by:
clientSSLHandshakeSucceededin interfaceActivityTracker
-
clientDisconnected
Description copied from interface:ActivityTrackerRecord that a client disconnected.- Specified by:
clientDisconnectedin interfaceActivityTracker
-