Class Http2OpenListener
java.lang.Object
io.undertow.server.protocol.http2.Http2OpenListener
- All Implemented Interfaces:
DelegateOpenListener,OpenListener,EventListener,org.xnio.ChannelListener<org.xnio.StreamConnection>
public final class Http2OpenListener
extends Object
implements org.xnio.ChannelListener<org.xnio.StreamConnection>, DelegateOpenListener
Open listener for HTTP2 server
- Author:
- Stuart Douglas
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttp2OpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions) Http2OpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions, String protocol) Http2OpenListener(org.xnio.Pool<ByteBuffer> pool) Deprecated.Http2OpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions) Deprecated.Http2OpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions, String protocol) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidClose all active connections that were handled by this listenerorg.xnio.OptionMapvoidhandleEvent(org.xnio.StreamConnection channel) voidhandleEvent(org.xnio.StreamConnection channel, PooledByteBuffer buffer) voidsetRootHandler(HttpHandler rootHandler) Sets the root handlervoidsetUndertowOptions(org.xnio.OptionMap undertowOptions)
-
Field Details
-
HTTP2
- See Also:
-
HTTP2_14
Deprecated.- See Also:
-
-
Constructor Details
-
Http2OpenListener
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
-
Http2OpenListener
-
Http2OpenListener
-
-
Method Details
-
handleEvent
- Specified by:
handleEventin interfaceDelegateOpenListener- Parameters:
channel- The channelbuffer- Any additional data that was read from the stream as part of the handshake process
-
getConnectorStatistics
- Specified by:
getConnectorStatisticsin interfaceOpenListener- Returns:
- The connector statistics, or null if statistics gathering is disabled.
-
closeConnections
public void closeConnections()Description copied from interface:OpenListenerClose all active connections that were handled by this listener- Specified by:
closeConnectionsin interfaceOpenListener
-
getRootHandler
- Specified by:
getRootHandlerin interfaceOpenListener- Returns:
- The first handler that will be executed by requests on the connector
-
setRootHandler
Description copied from interface:OpenListenerSets the root handler- Specified by:
setRootHandlerin interfaceOpenListener- Parameters:
rootHandler- The new root handler
-
getUndertowOptions
public org.xnio.OptionMap getUndertowOptions()- Specified by:
getUndertowOptionsin interfaceOpenListener- Returns:
- The connector options
-
setUndertowOptions
public void setUndertowOptions(org.xnio.OptionMap undertowOptions) - Specified by:
setUndertowOptionsin interfaceOpenListener- Parameters:
undertowOptions- The connector options
-
getBufferPool
- Specified by:
getBufferPoolin interfaceOpenListener- Returns:
- The buffer pool in use by this connector
-
handleEvent
public void handleEvent(org.xnio.StreamConnection channel) - Specified by:
handleEventin interfaceorg.xnio.ChannelListener<org.xnio.StreamConnection>
-