public class AlpnOpenListener extends Object implements ChannelListener<StreamConnection>, OpenListener
Not a proper open listener as such, but more a mechanism for selecting between them.
ChannelListener.Setter<T extends Channel>, ChannelListener.SimpleSetter<T extends Channel>
Modifier and Type | Field and Description |
---|---|
static String |
REQUIRED_CIPHER
HTTP/2 required cipher.
|
static String |
REQUIRED_PROTOCOL |
Constructor and Description |
---|
AlpnOpenListener(ByteBufferPool bufferPool) |
AlpnOpenListener(ByteBufferPool bufferPool,
OptionMap undertowOptions) |
AlpnOpenListener(ByteBufferPool bufferPool,
OptionMap undertowOptions,
DelegateOpenListener httpListener) |
AlpnOpenListener(ByteBufferPool bufferPool,
OptionMap undertowOptions,
String fallbackProtocol,
DelegateOpenListener fallbackListener) |
AlpnOpenListener(Pool<ByteBuffer> bufferPool,
OptionMap undertowOptions) |
AlpnOpenListener(Pool<ByteBuffer> bufferPool,
OptionMap undertowOptions,
DelegateOpenListener httpListener) |
AlpnOpenListener(Pool<ByteBuffer> bufferPool,
OptionMap undertowOptions,
String fallbackProtocol,
DelegateOpenListener fallbackListener) |
Modifier and Type | Method and Description |
---|---|
AlpnOpenListener |
addProtocol(String name,
DelegateOpenListener listener,
int weight) |
static boolean |
engineSupportsHTTP2(SSLEngine engine) |
ByteBufferPool |
getBufferPool() |
ConnectorStatistics |
getConnectorStatistics() |
HttpHandler |
getRootHandler() |
OptionMap |
getUndertowOptions() |
void |
handleEvent(StreamConnection channel)
Handle the event on this channel.
|
void |
setRootHandler(HttpHandler rootHandler)
Sets the root handler
|
void |
setUndertowOptions(OptionMap undertowOptions) |
public static final String REQUIRED_CIPHER
public static final String REQUIRED_PROTOCOL
public AlpnOpenListener(Pool<ByteBuffer> bufferPool, OptionMap undertowOptions, DelegateOpenListener httpListener)
public AlpnOpenListener(Pool<ByteBuffer> bufferPool, OptionMap undertowOptions)
public AlpnOpenListener(Pool<ByteBuffer> bufferPool, OptionMap undertowOptions, String fallbackProtocol, DelegateOpenListener fallbackListener)
public AlpnOpenListener(ByteBufferPool bufferPool, OptionMap undertowOptions, DelegateOpenListener httpListener)
public AlpnOpenListener(ByteBufferPool bufferPool)
public AlpnOpenListener(ByteBufferPool bufferPool, OptionMap undertowOptions)
public AlpnOpenListener(ByteBufferPool bufferPool, OptionMap undertowOptions, String fallbackProtocol, DelegateOpenListener fallbackListener)
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 ConnectorStatistics getConnectorStatistics()
getConnectorStatistics
in interface OpenListener
public AlpnOpenListener addProtocol(String name, DelegateOpenListener listener, int weight)
public void handleEvent(StreamConnection channel)
ChannelListener
handleEvent
in interface ChannelListener<StreamConnection>
channel
- the channel eventpublic static boolean engineSupportsHTTP2(SSLEngine engine)
Copyright © 2017 JBoss by Red Hat. All rights reserved.