Interface ActivityTracker

All Known Implementing Classes:
ActivityTrackerAdapter

public interface ActivityTracker

Interface for receiving information about activity in the proxy.

Sub-classes may wish to extend ActivityTrackerAdapter for sensible defaults.

  • Method Details

    • clientConnected

      void clientConnected(InetSocketAddress clientAddress)
      Record that a client connected.
    • clientSSLHandshakeSucceeded

      void clientSSLHandshakeSucceeded(InetSocketAddress clientAddress, SSLSession sslSession)
      Record that a client's SSL handshake completed.
    • clientDisconnected

      void clientDisconnected(InetSocketAddress clientAddress, SSLSession sslSession)
      Record that a client disconnected.
    • bytesReceivedFromClient

      void bytesReceivedFromClient(FlowContext flowContext, int numberOfBytes)
      Record that the proxy received bytes from the client.
      Parameters:
      flowContext - if full information is available, this will be a FullFlowContext.
      numberOfBytes -
    • requestReceivedFromClient

      void requestReceivedFromClient(FlowContext flowContext, 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).

      Parameters:
      flowContext - if full information is available, this will be a FullFlowContext.
      httpRequest -
    • bytesSentToServer

      void bytesSentToServer(FullFlowContext flowContext, int numberOfBytes)
      Record that the proxy attempted to send bytes to the server.
      Parameters:
      flowContext - provides contextual information about the flow
      numberOfBytes -
    • requestSentToServer

      void requestSentToServer(FullFlowContext flowContext, 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).

      Parameters:
      flowContext - provides contextual information about the flow
      httpRequest -
    • bytesReceivedFromServer

      void bytesReceivedFromServer(FullFlowContext flowContext, int numberOfBytes)
      Record that the proxy received bytes from the server.
      Parameters:
      flowContext - provides contextual information about the flow
      numberOfBytes -
    • responseReceivedFromServer

      void responseReceivedFromServer(FullFlowContext flowContext, 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).

      Parameters:
      flowContext - provides contextual information about the flow
      httpResponse -
    • bytesSentToClient

      void bytesSentToClient(FlowContext flowContext, int numberOfBytes)
      Record that the proxy sent bytes to the client.
      Parameters:
      flowContext - if full information is available, this will be a FullFlowContext.
      numberOfBytes -
    • responseSentToClient

      void responseSentToClient(FlowContext flowContext, 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).

      Parameters:
      flowContext - if full information is available, this will be a FullFlowContext.
      httpResponse -