Class WebSocketServerConnection

    • Method Detail

      • getLocalAddress

        public java.net.InetSocketAddress getLocalAddress()
        Description copied from interface: LogicalConnection
        Get the local InetSocketAddress in use for this connection.

        Note: Non-physical connections, like during the Mux extensions, or during unit testing can result in a InetSocketAddress on port 0 and/or on localhost.

        Specified by:
        getLocalAddress in interface LogicalConnection
        Returns:
        the local address.
      • getRemoteAddress

        public java.net.InetSocketAddress getRemoteAddress()
        Description copied from interface: LogicalConnection
        Get the remote Address in use for this connection.

        Note: Non-physical connections, like during the Mux extensions, or during unit testing can result in a InetSocketAddress on port 0 and/or on localhost.

        Specified by:
        getRemoteAddress in interface LogicalConnection
        Overrides:
        getRemoteAddress in class AbstractWebSocketConnection
        Returns:
        the remote address.
      • setNextIncomingFrames

        public void setNextIncomingFrames​(IncomingFrames incoming)
        Description copied from interface: LogicalConnection
        Set where the connection should send the incoming frames to.

        Often this is from the Parser to the start of the extension stack, and eventually on to the session.

        Specified by:
        setNextIncomingFrames in interface LogicalConnection
        Parameters:
        incoming - the incoming frames handler