Class PrefaceHandlerBase

    • Method Detail

      • startProtocol

        void startProtocol​(HttpConnectionEventHandler protocolHandler,
                           java.nio.ByteBuffer data)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • timeout

        public void timeout​(IOSession session,
                            Timeout timeout)
        Description copied from interface: IOEventHandler
        Triggered when the given session has timed out.
        Specified by:
        timeout in interface IOEventHandler
        Parameters:
        session - the I/O session.
        timeout - the timeout.
      • exception

        public void exception​(IOSession session,
                              java.lang.Exception cause)
        Description copied from interface: IOEventHandler
        Triggered when the given session throws a exception.
        Specified by:
        exception in interface IOEventHandler
        Parameters:
        session - the I/O session.
      • disconnected

        public void disconnected​(IOSession session)
        Description copied from interface: IOEventHandler
        Triggered when the given session has been terminated.
        Specified by:
        disconnected in interface IOEventHandler
        Parameters:
        session - the I/O session.
      • getSSLSession

        public javax.net.ssl.SSLSession getSSLSession()
        Description copied from interface: HttpConnection
        Returns this connection's SSL session or null if TLS has not been activated.
        Specified by:
        getSSLSession in interface HttpConnection
        Returns:
        this connection's SSL session or null if TLS has not been activated.
      • getProtocolVersion

        public ProtocolVersion getProtocolVersion()
        Description copied from interface: HttpConnection
        Returns this connection's protocol version or null if unknown.
        Specified by:
        getProtocolVersion in interface HttpConnection
        Returns:
        this connection's protocol version or null if unknown.
      • getRemoteAddress

        public java.net.SocketAddress getRemoteAddress()
        Description copied from interface: HttpConnection
        Returns this connection's remote address or null if it is not connected yet or unconnected.
        Specified by:
        getRemoteAddress in interface HttpConnection
        Returns:
        this connection's remote address or null if it is not connected yet or unconnected.
      • getLocalAddress

        public java.net.SocketAddress getLocalAddress()
        Description copied from interface: HttpConnection
        Returns this connection's local address or null if it is not bound yet.
        Specified by:
        getLocalAddress in interface HttpConnection
        Returns:
        this connection's local address or null if it is not bound yet.
      • isOpen

        public boolean isOpen()
        Description copied from interface: HttpConnection
        Checks if this connection is open.
        Specified by:
        isOpen in interface HttpConnection
        Returns:
        true if it is open, false if it is closed.
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: HttpConnection
        Closes this connection gracefully. This method will attempt to flush the internal output buffer prior to closing the underlying socket. This method MUST NOT be called from a different thread to force shutdown of the connection. Use shutdown instead.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface HttpConnection
        Throws:
        java.io.IOException
      • close

        public void close​(CloseMode closeMode)
        Description copied from interface: ModalCloseable
        Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect.
        Specified by:
        close in interface ModalCloseable
        Parameters:
        closeMode - How to close the receiver.