public final class Http2OpenListener extends Object implements ChannelListener<StreamConnection>, DelegateOpenListener
ChannelListener.Setter<T extends Channel>, ChannelListener.SimpleSetter<T extends Channel>
Modifier and Type | Field and Description |
---|---|
static String |
HTTP2 |
static String |
HTTP2_14
Deprecated.
|
Constructor and Description |
---|
Http2OpenListener(ByteBufferPool pool) |
Http2OpenListener(ByteBufferPool pool,
OptionMap undertowOptions) |
Http2OpenListener(ByteBufferPool pool,
OptionMap undertowOptions,
String protocol) |
Http2OpenListener(Pool<ByteBuffer> pool)
Deprecated.
|
Http2OpenListener(Pool<ByteBuffer> pool,
OptionMap undertowOptions)
Deprecated.
|
Http2OpenListener(Pool<ByteBuffer> pool,
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() |
OptionMap |
getUndertowOptions() |
void |
handleEvent(StreamConnection channel)
Handle the event on this channel.
|
void |
handleEvent(StreamConnection channel,
PooledByteBuffer buffer) |
void |
setRootHandler(HttpHandler rootHandler)
Sets the root handler
|
void |
setUndertowOptions(OptionMap undertowOptions) |
public static final String HTTP2
@Deprecated public static final String HTTP2_14
@Deprecated public Http2OpenListener(Pool<ByteBuffer> pool)
@Deprecated public Http2OpenListener(Pool<ByteBuffer> pool, OptionMap undertowOptions)
@Deprecated public Http2OpenListener(Pool<ByteBuffer> pool, OptionMap undertowOptions, String protocol)
public Http2OpenListener(ByteBufferPool pool)
public Http2OpenListener(ByteBufferPool pool, OptionMap undertowOptions)
public Http2OpenListener(ByteBufferPool pool, OptionMap undertowOptions, String protocol)
public void handleEvent(StreamConnection channel, PooledByteBuffer buffer)
handleEvent
in interface DelegateOpenListener
channel
- The channelbuffer
- Any additional data that was read from the stream as part of the handshake processpublic ConnectorStatistics getConnectorStatistics()
getConnectorStatistics
in interface OpenListener
public void closeConnections()
OpenListener
closeConnections
in interface OpenListener
public HttpHandler getRootHandler()
getRootHandler
in interface OpenListener
public void setRootHandler(HttpHandler rootHandler)
OpenListener
setRootHandler
in interface OpenListener
rootHandler
- The new root handlerpublic OptionMap getUndertowOptions()
getUndertowOptions
in interface OpenListener
public void setUndertowOptions(OptionMap undertowOptions)
setUndertowOptions
in interface OpenListener
undertowOptions
- The connector optionspublic ByteBufferPool getBufferPool()
getBufferPool
in interface OpenListener
public void handleEvent(StreamConnection channel)
ChannelListener
handleEvent
in interface ChannelListener<StreamConnection>
channel
- the channel eventCopyright © 2021 JBoss by Red Hat. All rights reserved.