|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.proxy.ActivityTrackerAdapter
public class ActivityTrackerAdapter
Adapter of ActivityTracker interface that provides default no-op
implementations of all methods.
| Constructor Summary | |
|---|---|
ActivityTrackerAdapter()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityTrackerAdapter()
| Method Detail |
|---|
public void bytesReceivedFromClient(FlowContext flowContext,
int numberOfBytes)
ActivityTracker
bytesReceivedFromClient in interface ActivityTrackerflowContext - if full information is available, this will be a
FullFlowContext.
public void requestReceivedFromClient(FlowContext flowContext,
io.netty.handler.codec.http.HttpRequest httpRequest)
ActivityTracker
Record that proxy received an HttpRequest from the client.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
requestReceivedFromClient in interface ActivityTrackerflowContext - if full information is available, this will be a
FullFlowContext.
public void bytesSentToServer(FullFlowContext flowContext,
int numberOfBytes)
ActivityTracker
bytesSentToServer in interface ActivityTrackerflowContext - provides contextual information about the flow
public void requestSentToServer(FullFlowContext flowContext,
io.netty.handler.codec.http.HttpRequest httpRequest)
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).
requestSentToServer in interface ActivityTrackerflowContext - provides contextual information about the flow
public void bytesReceivedFromServer(FullFlowContext flowContext,
int numberOfBytes)
ActivityTracker
bytesReceivedFromServer in interface ActivityTrackerflowContext - provides contextual information about the flow
public void responseReceivedFromServer(FullFlowContext flowContext,
io.netty.handler.codec.http.HttpResponse httpResponse)
ActivityTracker
Record that the proxy received an HttpResponse from the server.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
responseReceivedFromServer in interface ActivityTrackerflowContext - provides contextual information about the flow
public void bytesSentToClient(FlowContext flowContext,
int numberOfBytes)
ActivityTracker
bytesSentToClient in interface ActivityTrackerflowContext - if full information is available, this will be a
FullFlowContext.
public void responseSentToClient(FlowContext flowContext,
io.netty.handler.codec.http.HttpResponse httpResponse)
ActivityTrackerRecord that the proxy sent a response to the client.
Note - on chunked transfers, this is only called once (for the initial HttpRequest object).
responseSentToClient in interface ActivityTrackerflowContext - if full information is available, this will be a
FullFlowContext.public void clientConnected(InetSocketAddress clientAddress)
ActivityTracker
clientConnected in interface ActivityTracker
public void clientSSLHandshakeSucceeded(InetSocketAddress clientAddress,
SSLSession sslSession)
ActivityTracker
clientSSLHandshakeSucceeded in interface ActivityTracker
public void clientDisconnected(InetSocketAddress clientAddress,
SSLSession sslSession)
ActivityTracker
clientDisconnected in interface ActivityTracker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||