|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityTracker
Interface for receiving information about activity in the proxy.
Sub-classes may wish to extend ActivityTrackerAdapter for sensible
defaults.
| Method Summary | |
|---|---|
void |
bytesReceivedFromClient(FlowContext flowContext,
int numberOfBytes)
Record that the proxy received bytes from the client. |
void |
bytesReceivedFromServer(FullFlowContext flowContext,
int numberOfBytes)
Record that the proxy received bytes from the server. |
void |
bytesSentToClient(FlowContext flowContext,
int numberOfBytes)
Record that the proxy sent bytes to the client. |
void |
bytesSentToServer(FullFlowContext flowContext,
int numberOfBytes)
Record that the proxy attempted to send bytes to the server. |
void |
clientConnected(InetSocketAddress clientAddress)
Record that a client connected. |
void |
clientDisconnected(InetSocketAddress clientAddress,
SSLSession sslSession)
Record that a client disconnected. |
void |
clientSSLHandshakeSucceeded(InetSocketAddress clientAddress,
SSLSession sslSession)
Record that a client's SSL handshake completed. |
void |
requestReceivedFromClient(FlowContext flowContext,
io.netty.handler.codec.http.HttpRequest httpRequest)
Record that proxy received an HttpRequest from the client. |
void |
requestSentToServer(FullFlowContext flowContext,
io.netty.handler.codec.http.HttpRequest httpRequest)
Record that proxy attempted to send a request to the server. |
void |
responseReceivedFromServer(FullFlowContext flowContext,
io.netty.handler.codec.http.HttpResponse httpResponse)
Record that the proxy received an HttpResponse from the server. |
void |
responseSentToClient(FlowContext flowContext,
io.netty.handler.codec.http.HttpResponse httpResponse)
Record that the proxy sent a response to the client. |
| Method Detail |
|---|
void clientConnected(InetSocketAddress clientAddress)
clientAddress -
void clientSSLHandshakeSucceeded(InetSocketAddress clientAddress,
SSLSession sslSession)
clientAddress - sslSession -
void clientDisconnected(InetSocketAddress clientAddress,
SSLSession sslSession)
clientAddress - sslSession -
void bytesReceivedFromClient(FlowContext flowContext,
int numberOfBytes)
flowContext - if full information is available, this will be a
FullFlowContext.numberOfBytes -
void requestReceivedFromClient(FlowContext flowContext,
io.netty.handler.codec.http.HttpRequest httpRequest)
Record that proxy received an HttpRequest from the client.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
flowContext - if full information is available, this will be a
FullFlowContext.httpRequest -
void bytesSentToServer(FullFlowContext flowContext,
int numberOfBytes)
flowContext - provides contextual information about the flownumberOfBytes -
void requestSentToServer(FullFlowContext flowContext,
io.netty.handler.codec.http.HttpRequest httpRequest)
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).
flowContext - provides contextual information about the flowhttpRequest -
void bytesReceivedFromServer(FullFlowContext flowContext,
int numberOfBytes)
flowContext - provides contextual information about the flownumberOfBytes -
void responseReceivedFromServer(FullFlowContext flowContext,
io.netty.handler.codec.http.HttpResponse httpResponse)
Record that the proxy received an HttpResponse from the server.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
flowContext - provides contextual information about the flowhttpResponse -
void bytesSentToClient(FlowContext flowContext,
int numberOfBytes)
flowContext - if full information is available, this will be a
FullFlowContext.numberOfBytes -
void responseSentToClient(FlowContext flowContext,
io.netty.handler.codec.http.HttpResponse httpResponse)
Record that the proxy sent a response to the client.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
flowContext - if full information is available, this will be a
FullFlowContext.httpResponse -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||