Interface ActivityTracker
- All Known Implementing Classes:
ActivityTrackerAdapter
Interface for receiving information about activity in the proxy.
Sub-classes may wish to extend ActivityTrackerAdapter for sensible
defaults.
-
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.
-
Method Details
-
clientConnected
Record that a client connected. -
clientSSLHandshakeSucceeded
Record that a client's SSL handshake completed. -
clientDisconnected
Record that a client disconnected. -
bytesReceivedFromClient
Record that the proxy received bytes from the client.- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.numberOfBytes-
-
requestReceivedFromClient
Record that proxy received an
HttpRequestfrom the client.Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.httpRequest-
-
bytesSentToServer
Record that the proxy attempted to send bytes to the server.- Parameters:
flowContext- provides contextual information about the flownumberOfBytes-
-
requestSentToServer
Record that proxy attempted to send a request to the server.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Parameters:
flowContext- provides contextual information about the flowhttpRequest-
-
bytesReceivedFromServer
Record that the proxy received bytes from the server.- Parameters:
flowContext- provides contextual information about the flownumberOfBytes-
-
responseReceivedFromServer
Record that the proxy received an
HttpResponsefrom the server.Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Parameters:
flowContext- provides contextual information about the flowhttpResponse-
-
bytesSentToClient
Record that the proxy sent bytes to the client.- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.numberOfBytes-
-
responseSentToClient
Record that the proxy sent a response to the client.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
- Parameters:
flowContext- if full information is available, this will be aFullFlowContext.httpResponse-
-