Interface HttpConnectionInterceptor

    • Constructor Detail

    • Method Detail

      • onFirstIntercept

         Unit onFirstIntercept(UUID connectionId, SSLSession sslSession, HttpConnectionInterceptor.Source source)

        Called once, when the first message is sent through a connection.

        Parameters:
        connectionId - the unique id of the connection
        sslSession - the SSL session of the connection
        source - the source, that established the connection
      • onIntercept

         Unit onIntercept(UUID connectionId)

        Called on every message sent through a connection.

        Parameters:
        connectionId - the unique id of the connection
      • onLastIntercept

         Unit onLastIntercept(UUID connectionId)

        Called once, when the last message is sent through a connection.

        Parameters:
        connectionId - the unique id of the connection
      • onClientRequestFailure

         Unit onClientRequestFailure(Throwable cause, SocketAddress targetAddress, Integer retryCount)

        Called when a client request fails.

        Parameters:
        cause - the cause of the failure
        targetAddress - the target address for which the attempted client connection failed or null, if the target address is not available
        retryCount - the number of retries that have been attempted so far
      • onServerSslHandshakeFailure

         Unit onServerSslHandshakeFailure(Throwable cause, SocketAddress peerAddress, List<Certificate> peerCertificates)

        Called when a server SSL handshake fails.

        Parameters:
        cause - the cause of the failure
        peerAddress - the address of the peer that attempted to connect
        peerCertificates - the peer certificates if they can be extracted or empty otherwise