public final class HttpOpenListener extends Object implements org.xnio.ChannelListener<org.xnio.StreamConnection>, DelegateOpenListener
Constructor and Description |
---|
HttpOpenListener(ByteBufferPool pool) |
HttpOpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions) |
HttpOpenListener(org.xnio.Pool<ByteBuffer> pool) Deprecated. |
HttpOpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions) Deprecated. |
Modifier and Type | Method and Description |
---|---|
ByteBufferPool | getBufferPool() |
ConnectorStatistics | getConnectorStatistics() |
HttpHandler | getRootHandler() |
org.xnio.OptionMap | getUndertowOptions() |
void | handleEvent(org.xnio.StreamConnection channel) |
void | handleEvent(org.xnio.StreamConnection channel, PooledByteBuffer buffer) |
void | setRootHandler(HttpHandler rootHandler) Sets the root handler |
void | setUndertowOptions(org.xnio.OptionMap undertowOptions) |
@Deprecated public HttpOpenListener(org.xnio.Pool<ByteBuffer> pool)
@Deprecated public HttpOpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions)
public HttpOpenListener(ByteBufferPool pool)
public HttpOpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions)
public void handleEvent(org.xnio.StreamConnection channel)
handleEvent
in interface org.xnio.ChannelListener<org.xnio.StreamConnection>
public void handleEvent(org.xnio.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 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
Copyright © 2017 JBoss by Red Hat. All rights reserved.