public class AlpnOpenListener extends Object implements org.xnio.ChannelListener<org.xnio.StreamConnection>, OpenListener
Not a proper open listener as such, but more a mechanism for selecting between them.
| 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, org.xnio.OptionMap undertowOptions) |
AlpnOpenListener(ByteBufferPool bufferPool, org.xnio.OptionMap undertowOptions, DelegateOpenListener httpListener) |
AlpnOpenListener(ByteBufferPool bufferPool, org.xnio.OptionMap undertowOptions, String fallbackProtocol, DelegateOpenListener fallbackListener) |
AlpnOpenListener(org.xnio.Pool<ByteBuffer> bufferPool, org.xnio.OptionMap undertowOptions) |
AlpnOpenListener(org.xnio.Pool<ByteBuffer> bufferPool, org.xnio.OptionMap undertowOptions, DelegateOpenListener httpListener) |
AlpnOpenListener(org.xnio.Pool<ByteBuffer> bufferPool, org.xnio.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() |
org.xnio.OptionMap | getUndertowOptions() |
void | handleEvent(org.xnio.StreamConnection channel) |
void | setRootHandler(HttpHandler rootHandler) Sets the root handler |
void | setUndertowOptions(org.xnio.OptionMap undertowOptions) |
public static final String REQUIRED_CIPHER
public static final String REQUIRED_PROTOCOL
public AlpnOpenListener(org.xnio.Pool<ByteBuffer> bufferPool, org.xnio.OptionMap undertowOptions, DelegateOpenListener httpListener)
public AlpnOpenListener(org.xnio.Pool<ByteBuffer> bufferPool, org.xnio.OptionMap undertowOptions)
public AlpnOpenListener(org.xnio.Pool<ByteBuffer> bufferPool, org.xnio.OptionMap undertowOptions, String fallbackProtocol, DelegateOpenListener fallbackListener)
public AlpnOpenListener(ByteBufferPool bufferPool, org.xnio.OptionMap undertowOptions, DelegateOpenListener httpListener)
public AlpnOpenListener(ByteBufferPool bufferPool)
public AlpnOpenListener(ByteBufferPool bufferPool, org.xnio.OptionMap undertowOptions)
public AlpnOpenListener(ByteBufferPool bufferPool, org.xnio.OptionMap undertowOptions, String fallbackProtocol, DelegateOpenListener fallbackListener)
public 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 ConnectorStatistics getConnectorStatistics()
getConnectorStatistics in interface OpenListenerpublic AlpnOpenListener addProtocol(String name, DelegateOpenListener listener, int weight)
public void handleEvent(org.xnio.StreamConnection channel)
handleEvent in interface org.xnio.ChannelListener<org.xnio.StreamConnection>public static boolean engineSupportsHTTP2(SSLEngine engine)
Copyright © 2017 JBoss by Red Hat. All rights reserved.