public final class Http2OpenListener extends Object implements org.xnio.ChannelListener<org.xnio.StreamConnection>, DelegateOpenListener
| Modifier and Type | Field and Description |
|---|---|
static String | HTTP2 |
static String | HTTP2_14 Deprecated. |
| Constructor and Description |
|---|
Http2OpenListener(ByteBufferPool pool) |
Http2OpenListener(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. |
| Modifier and Type | Method and Description |
|---|---|
void | closeConnections() Close all active connections that were handled by this listener |
ByteBufferPool | getBufferPool() |
ConnectorStatistics | getConnectorStatistics() |
HttpHandler | getRootHandler() |
org.xnio.OptionMap | getUndertowOptions() |
void | handleEvent(org.xnio.StreamConnection channel) |
void | handleEvent(org.xnio.StreamConnection channel, PooledByteBuffer buffer) |
void | setRootHandler(HttpHandler rootHandler) Sets the root handler |
void | setUndertowOptions(org.xnio.OptionMap undertowOptions) |
public static final String HTTP2
@Deprecated public static final String HTTP2_14
@Deprecated public Http2OpenListener(org.xnio.Pool<ByteBuffer> pool)
@Deprecated public Http2OpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions)
@Deprecated public Http2OpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions, String protocol)
public Http2OpenListener(ByteBufferPool pool)
public Http2OpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions)
public Http2OpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions, String protocol)
public void handleEvent(org.xnio.StreamConnection channel,
PooledByteBuffer buffer) handleEvent in interface DelegateOpenListenerchannel - The channelbuffer - Any additional data that was read from the stream as part of the handshake processpublic ConnectorStatistics getConnectorStatistics()
getConnectorStatistics in interface OpenListenerpublic void closeConnections()
OpenListenercloseConnections in interface OpenListenerpublic HttpHandler getRootHandler()
getRootHandler in interface OpenListenerpublic void setRootHandler(HttpHandler rootHandler)
OpenListenersetRootHandler in interface OpenListenerrootHandler - The new root handlerpublic org.xnio.OptionMap getUndertowOptions()
getUndertowOptions in interface OpenListenerpublic void setUndertowOptions(org.xnio.OptionMap undertowOptions)
setUndertowOptions in interface OpenListenerundertowOptions - The connector optionspublic ByteBufferPool getBufferPool()
getBufferPool in interface OpenListenerpublic void handleEvent(org.xnio.StreamConnection channel)
handleEvent in interface org.xnio.ChannelListener<org.xnio.StreamConnection>Copyright © 2020 JBoss by Red Hat. All rights reserved.