Top Description Methods
io.undertow.server

public Interface OpenListener

extends ChannelListener<StreamConnection>
Known Direct Subinterfaces
io.undertow.server.DelegateOpenListener
Known Direct Implementers
io.undertow.server.protocol.ajp.AjpOpenListener, io.undertow.server.protocol.http.AlpnOpenListener
Imports
org.xnio.ChannelListener, .OptionMap, .StreamConnection, io.undertow.connector.ByteBufferPool

Interface that represents an open listener, aka a connector.
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public default void
closeConnections()

Close all active connections that were handled by this listener

public ByteBufferPool

Returns:

The buffer pool in use by this connector
getBufferPool
()

public ConnectorStatistics

Returns:

The connector statistics, or null if statistics gathering is disabled.
getConnectorStatistics
()

public HttpHandler

Returns:

The first handler that will be executed by requests on the connector
getRootHandler
()

public OptionMap

Returns:

The connector options
getUndertowOptions
()

public void
setRootHandler(HttpHandler
The new root handler
rootHandler
)

Sets the root handler

public void
setUndertowOptions(OptionMap
The connector options
undertowOptions
)

Inherited from org.xnio.ChannelListener:
handleEvent

Method Detail

closeConnectionsback to summary
public default void closeConnections()

Close all active connections that were handled by this listener

getBufferPoolback to summary
public ByteBufferPool getBufferPool()
Returns:ByteBufferPool

The buffer pool in use by this connector

getConnectorStatisticsback to summary
public ConnectorStatistics getConnectorStatistics()
Returns:ConnectorStatistics

The connector statistics, or null if statistics gathering is disabled.

getRootHandlerback to summary
public HttpHandler getRootHandler()
Returns:HttpHandler

The first handler that will be executed by requests on the connector

getUndertowOptionsback to summary
public OptionMap getUndertowOptions()
Returns:OptionMap

The connector options

setRootHandlerback to summary
public void setRootHandler(HttpHandler rootHandler)

Sets the root handler

Parameters
rootHandler:HttpHandler

The new root handler

setUndertowOptionsback to summary
public void setUndertowOptions(OptionMap undertowOptions)
Parameters
undertowOptions:OptionMap

The connector options