Class Http2OpenListener

    • Constructor Detail

      • Http2OpenListener

        @Deprecated
        public Http2OpenListener​(org.xnio.Pool<ByteBuffer> pool)
        Deprecated.
      • Http2OpenListener

        @Deprecated
        public Http2OpenListener​(org.xnio.Pool<ByteBuffer> pool,
                                 org.xnio.OptionMap undertowOptions)
        Deprecated.
      • Http2OpenListener

        @Deprecated
        public Http2OpenListener​(org.xnio.Pool<ByteBuffer> pool,
                                 org.xnio.OptionMap undertowOptions,
                                 String protocol)
        Deprecated.
      • Http2OpenListener

        public Http2OpenListener​(ByteBufferPool pool)
      • Http2OpenListener

        public Http2OpenListener​(ByteBufferPool pool,
                                 org.xnio.OptionMap undertowOptions)
      • Http2OpenListener

        public Http2OpenListener​(ByteBufferPool pool,
                                 org.xnio.OptionMap undertowOptions,
                                 String protocol)
    • Method Detail

      • handleEvent

        public void handleEvent​(org.xnio.StreamConnection channel,
                                PooledByteBuffer buffer)
        Specified by:
        handleEvent in interface DelegateOpenListener
        Parameters:
        channel - The channel
        buffer - Any additional data that was read from the stream as part of the handshake process
      • closeConnections

        public void closeConnections()
        Description copied from interface: OpenListener
        Close all active connections that were handled by this listener
        Specified by:
        closeConnections in interface OpenListener
      • getRootHandler

        public HttpHandler getRootHandler()
        Specified by:
        getRootHandler in interface OpenListener
        Returns:
        The first handler that will be executed by requests on the connector
      • setRootHandler

        public void setRootHandler​(HttpHandler rootHandler)
        Description copied from interface: OpenListener
        Sets the root handler
        Specified by:
        setRootHandler in interface OpenListener
        Parameters:
        rootHandler - The new root handler
      • getUndertowOptions

        public org.xnio.OptionMap getUndertowOptions()
        Specified by:
        getUndertowOptions in interface OpenListener
        Returns:
        The connector options
      • setUndertowOptions

        public void setUndertowOptions​(org.xnio.OptionMap undertowOptions)
        Specified by:
        setUndertowOptions in interface OpenListener
        Parameters:
        undertowOptions - The connector options
      • handleEvent

        public void handleEvent​(org.xnio.StreamConnection channel)
        Specified by:
        handleEvent in interface org.xnio.ChannelListener<org.xnio.StreamConnection>