Package io.undertow.server.protocol.ajp
Class AjpOpenListener
- java.lang.Object
-
- io.undertow.server.protocol.ajp.AjpOpenListener
-
- All Implemented Interfaces:
OpenListener,EventListener,org.xnio.ChannelListener<org.xnio.StreamConnection>
public class AjpOpenListener extends Object implements OpenListener
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description AjpOpenListener(ByteBufferPool pool)AjpOpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions)AjpOpenListener(org.xnio.Pool<ByteBuffer> pool)AjpOpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseConnections()Close all active connections that were handled by this listenerByteBufferPoolgetBufferPool()ConnectorStatisticsgetConnectorStatistics()HttpHandlergetRootHandler()StringgetScheme()org.xnio.OptionMapgetUndertowOptions()voidhandleEvent(org.xnio.StreamConnection channel)voidsetRootHandler(HttpHandler rootHandler)Sets the root handlervoidsetScheme(String scheme)voidsetUndertowOptions(org.xnio.OptionMap undertowOptions)
-
-
-
Constructor Detail
-
AjpOpenListener
public AjpOpenListener(org.xnio.Pool<ByteBuffer> pool)
-
AjpOpenListener
public AjpOpenListener(org.xnio.Pool<ByteBuffer> pool, org.xnio.OptionMap undertowOptions)
-
AjpOpenListener
public AjpOpenListener(ByteBufferPool pool)
-
AjpOpenListener
public AjpOpenListener(ByteBufferPool pool, org.xnio.OptionMap undertowOptions)
-
-
Method Detail
-
handleEvent
public void handleEvent(org.xnio.StreamConnection channel)
- Specified by:
handleEventin interfaceorg.xnio.ChannelListener<org.xnio.StreamConnection>
-
getRootHandler
public HttpHandler getRootHandler()
- Specified by:
getRootHandlerin interfaceOpenListener- Returns:
- The first handler that will be executed by requests on the connector
-
setRootHandler
public void setRootHandler(HttpHandler rootHandler)
Description copied from interface:OpenListenerSets the root handler- Specified by:
setRootHandlerin interfaceOpenListener- Parameters:
rootHandler- The new root handler
-
getUndertowOptions
public org.xnio.OptionMap getUndertowOptions()
- Specified by:
getUndertowOptionsin interfaceOpenListener- Returns:
- The connector options
-
setUndertowOptions
public void setUndertowOptions(org.xnio.OptionMap undertowOptions)
- Specified by:
setUndertowOptionsin interfaceOpenListener- Parameters:
undertowOptions- The connector options
-
getBufferPool
public ByteBufferPool getBufferPool()
- Specified by:
getBufferPoolin interfaceOpenListener- Returns:
- The buffer pool in use by this connector
-
getConnectorStatistics
public ConnectorStatistics getConnectorStatistics()
- Specified by:
getConnectorStatisticsin interfaceOpenListener- Returns:
- The connector statistics, or null if statistics gathering is disabled.
-
closeConnections
public void closeConnections()
Description copied from interface:OpenListenerClose all active connections that were handled by this listener- Specified by:
closeConnectionsin interfaceOpenListener
-
getScheme
public String getScheme()
-
setScheme
public void setScheme(String scheme)
-
-