Interface ProxyLogicHandler

    • Method Detail

      • isHandshakeComplete

        boolean isHandshakeComplete()
        Tests if handshake process is complete.
        Returns:
        true if handshaking is complete and data can be sent through the proxy, false otherwise.
      • messageReceived

        void messageReceived​(IoFilter.NextFilter nextFilter,
                             IoBuffer buf)
                      throws ProxyAuthException
        Handle incoming data during the handshake process. Should consume only the handshake data from the buffer, leaving any extra data in place.
        Parameters:
        nextFilter - the next filter in the filter chain
        buf - the buffer holding the received data
        Throws:
        ProxyAuthException - if authentication fails
      • enqueueWriteRequest

        void enqueueWriteRequest​(IoFilter.NextFilter nextFilter,
                                 WriteRequest writeRequest)
        Enqueue a message to be written once handshaking is complete.
        Parameters:
        nextFilter - the next filter in filter chain
        writeRequest - the data to be written