public class JDK9AlpnOpenListener extends Object implements ChannelListener<StreamConnection>
ChannelListener.Setter<T extends Channel>, ChannelListener.SimpleSetter<T extends Channel>
Constructor and Description |
---|
JDK9AlpnOpenListener(ByteBufferPool bufferPool,
OptionMap undertowOptions,
String fallbackProtocol,
DelegateOpenListener fallbackListener) |
Modifier and Type | Method and Description |
---|---|
void |
addProtocol(String name,
DelegateOpenListener listener,
int weight) |
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 JDK9AlpnOpenListener(ByteBufferPool bufferPool, OptionMap undertowOptions, String fallbackProtocol, DelegateOpenListener fallbackListener)
public HttpHandler getRootHandler()
public void setRootHandler(HttpHandler rootHandler)
OpenListener
rootHandler
- The new root handlerpublic OptionMap getUndertowOptions()
public void setUndertowOptions(OptionMap undertowOptions)
undertowOptions
- The connector optionspublic ByteBufferPool getBufferPool()
public ConnectorStatistics getConnectorStatistics()
public void addProtocol(String name, DelegateOpenListener listener, int weight)
public void handleEvent(StreamConnection channel)
ChannelListener
handleEvent
in interface ChannelListener<StreamConnection>
channel
- the channel eventCopyright © 2016 JBoss by Red Hat. All rights reserved.