Interface KristenHttpClientEventHandler

    • Method Detail

      • onConnectionEstablished

        void onConnectionEstablished​(KristenHttpClient httpClient)
        Called when an HTTP connection is successfully established.
        Parameters:
        httpClient - the HTTP client that reported the event
      • onConnectionFailed

        void onConnectionFailed​(KristenHttpClient httpClient,
                                Exception ex)
        Called when an HTTP connection attempt fails.
        Parameters:
        httpClient - the HTTP client that reported the event
        ex - the exception associated with the connection failure
      • onSendingSyncAgent

        void onSendingSyncAgent​(Agent agent)
        Called when a synchronous agent is being sent.
        Parameters:
        agent - the synchronous agent being sent
      • onReceivedReply

        void onReceivedReply​(Reply reply)
        Called when a reply is received.
        Parameters:
        reply - the reply received from the HTTP server
      • onSendingAsyncAgent

        void onSendingAsyncAgent​(Agent agent)
        Called when an asynchronous agent is being sent.
        Parameters:
        agent - the asynchronous agent being sent