public class AlpnOpenListener extends Object implements org.xnio.ChannelListener<org.xnio.StreamConnection>, OpenListener
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) |
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 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 OpenListener
public void setRootHandler(HttpHandler rootHandler)
OpenListener
setRootHandler
in interface OpenListener
rootHandler
- The new root handlerpublic org.xnio.OptionMap getUndertowOptions()
getUndertowOptions
in interface OpenListener
public void setUndertowOptions(org.xnio.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(org.xnio.StreamConnection channel)
handleEvent
in interface org.xnio.ChannelListener<org.xnio.StreamConnection>
Copyright © 2015 JBoss by Red Hat. All rights reserved.