Package org.littleshoot.proxy
Class ActivityTrackerAdapter
- java.lang.Object
-
- org.littleshoot.proxy.ActivityTrackerAdapter
-
- All Implemented Interfaces:
ActivityTracker
public class ActivityTrackerAdapter extends Object implements ActivityTracker
Adapter ofActivityTrackerinterface that provides default no-op implementations of all methods.
-
-
Constructor Summary
Constructors Constructor Description ActivityTrackerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbytesReceivedFromClient(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.
-
-
-
Method Detail
-
bytesReceivedFromClient
public void bytesReceivedFromClient(FlowContext flowContext, int numberOfBytes)
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
public void requestReceivedFromClient(FlowContext flowContext, HttpRequest httpRequest)
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
public void bytesSentToServer(FullFlowContext flowContext, int numberOfBytes)
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
public void requestSentToServer(FullFlowContext flowContext, HttpRequest httpRequest)
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
public void bytesReceivedFromServer(FullFlowContext flowContext, int numberOfBytes)
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
public void responseReceivedFromServer(FullFlowContext flowContext, HttpResponse httpResponse)
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
public void bytesSentToClient(FlowContext flowContext, int numberOfBytes)
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
public void responseSentToClient(FlowContext flowContext, HttpResponse httpResponse)
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
public void clientConnected(InetSocketAddress clientAddress)
Description copied from interface:ActivityTrackerRecord that a client connected.- Specified by:
clientConnectedin interfaceActivityTracker
-
clientSSLHandshakeSucceeded
public void clientSSLHandshakeSucceeded(InetSocketAddress clientAddress, SSLSession sslSession)
Description copied from interface:ActivityTrackerRecord that a client's SSL handshake completed.- Specified by:
clientSSLHandshakeSucceededin interfaceActivityTracker
-
clientDisconnected
public void clientDisconnected(InetSocketAddress clientAddress, SSLSession sslSession)
Description copied from interface:ActivityTrackerRecord that a client disconnected.- Specified by:
clientDisconnectedin interfaceActivityTracker
-
-