Top Fields Constructors Methods
io.undertow.server.protocol.ajp

public Class AjpOpenListener

extends Object
implements OpenListener
Class Inheritance
All Implemented Interfaces
io.undertow.server.OpenListener, org.xnio.ChannelListener, java.util.EventListener
Imports
io.undertow.UndertowLogger, .UndertowMessages, .UndertowOptions, io.undertow.conduits.BytesReceivedStreamSourceConduit, .BytesSentStreamSinkConduit, .IdleTimeoutConduit, .ReadTimeoutStreamSourceConduit, .WriteTimeoutStreamSinkConduit, io.undertow.server.ConnectorStatistics, .ConnectorStatisticsImpl, .HttpHandler, .OpenListener, .ServerConnection, .XnioByteBufferPool, io.undertow.util.URLUtils, org.xnio.IoUtils, .OptionMap, .Options, .Pool, .StreamConnection, io.undertow.connector.ByteBufferPool, .PooledByteBuffer, java.io.IOException, java.nio.ByteBuffer, java.nio.charset.StandardCharsets, java.util.Collections, .Set, java.util.concurrent.ConcurrentHashMap

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final ByteBufferPool
private final int
private final ServerConnection.CloseListener
private final Set<AjpServerConnection>
private final ConnectorStatisticsImpl
private static final String
private volatile AjpRequestParser
private volatile HttpHandler
private volatile String
private volatile boolean
private volatile OptionMap

Constructor Summary

AccessConstructor and Description
public
AjpOpenListener(final Pool<ByteBuffer> pool)
References Deprecated Pool is deprecated or references (maybe indirectly) at least one deprecated element.

public
AjpOpenListener(final Pool<ByteBuffer> pool, final OptionMap undertowOptions)
References Deprecated Pool is deprecated or references (maybe indirectly) at least one deprecated element.

public
public
AjpOpenListener(final ByteBufferPool pool, final OptionMap undertowOptions)

Method Summary

Modifier and TypeMethod and Description
public void
closeConnections()

Overrides default io.undertow.server.OpenListener.closeConnections.

Close all active connections that were handled by this listener

public ByteBufferPool
public ConnectorStatistics
public HttpHandler
public String
public OptionMap
public void
handleEvent(final StreamConnection
the channel event
channel
)

Implements org.xnio.ChannelListener.handleEvent.

Handle the event on this channel.

public void
setRootHandler(final HttpHandler
The new root handler
rootHandler
)

Implements io.undertow.server.OpenListener.setRootHandler.

Sets the root handler

public void
setScheme(final String scheme)

public void
setUndertowOptions(final OptionMap
The connector options
undertowOptions
)

Implements io.undertow.server.OpenListener.setUndertowOptions.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferPoolback to summary
private final ByteBufferPool bufferPool
bufferSizeback to summary
private final int bufferSize
closeListenerback to summary
private final ServerConnection.CloseListener closeListener
connectionsback to summary
private final Set<AjpServerConnection> connections
connectorStatisticsback to summary
private final ConnectorStatisticsImpl connectorStatistics
DEFAULT_AJP_ALLOWED_REQUEST_ATTRIBUTES_PATTERNback to summary
private static final String DEFAULT_AJP_ALLOWED_REQUEST_ATTRIBUTES_PATTERN
parserback to summary
private volatile AjpRequestParser parser
rootHandlerback to summary
private volatile HttpHandler rootHandler
schemeback to summary
private volatile String scheme
statisticsEnabledback to summary
private volatile boolean statisticsEnabled
undertowOptionsback to summary
private volatile OptionMap undertowOptions

Constructor Detail

AjpOpenListenerback to summary
public AjpOpenListener(final Pool<ByteBuffer> pool)

References Deprecated

Pool is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

AjpOpenListenerback to summary
public AjpOpenListener(final Pool<ByteBuffer> pool, final OptionMap undertowOptions)

References Deprecated

Pool is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

AjpOpenListenerback to summary
public AjpOpenListener(final ByteBufferPool pool)
AjpOpenListenerback to summary
public AjpOpenListener(final ByteBufferPool pool, final OptionMap undertowOptions)

Method Detail

closeConnectionsback to summary
public void closeConnections()

Overrides default io.undertow.server.OpenListener.closeConnections.

Doc from io.undertow.server.OpenListener.closeConnections.

Close all active connections that were handled by this listener

Annotations
@Override
getBufferPoolback to summary
public ByteBufferPool getBufferPool()

Implements io.undertow.server.OpenListener.getBufferPool.

Returns:ByteBufferPool

Doc from io.undertow.server.OpenListener.getBufferPool.

The buffer pool in use by this connector

Annotations
@Override
getConnectorStatisticsback to summary
public ConnectorStatistics getConnectorStatistics()

Implements io.undertow.server.OpenListener.getConnectorStatistics.

Returns:ConnectorStatistics

Doc from io.undertow.server.OpenListener.getConnectorStatistics.

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

Annotations
@Override
getRootHandlerback to summary
public HttpHandler getRootHandler()

Implements io.undertow.server.OpenListener.getRootHandler.

Returns:HttpHandler

Doc from io.undertow.server.OpenListener.getRootHandler.

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

Annotations
@Override
getSchemeback to summary
public String getScheme()
getUndertowOptionsback to summary
public OptionMap getUndertowOptions()

Implements io.undertow.server.OpenListener.getUndertowOptions.

Returns:OptionMap

Doc from io.undertow.server.OpenListener.getUndertowOptions.

The connector options

Annotations
@Override
handleEventback to summary
public void handleEvent(final StreamConnection channel)

Implements org.xnio.ChannelListener.handleEvent.

Doc from org.xnio.ChannelListener.handleEvent.

Handle the event on this channel.

Parameters
channel:StreamConnection

the channel event

Annotations
@Override
setRootHandlerback to summary
public void setRootHandler(final HttpHandler rootHandler)

Implements io.undertow.server.OpenListener.setRootHandler.

Doc from io.undertow.server.OpenListener.setRootHandler.

Sets the root handler

Parameters
rootHandler:HttpHandler

The new root handler

Annotations
@Override
setSchemeback to summary
public void setScheme(final String scheme)
setUndertowOptionsback to summary
public void setUndertowOptions(final OptionMap undertowOptions)

Implements io.undertow.server.OpenListener.setUndertowOptions.

Parameters
undertowOptions:OptionMap

Doc from io.undertow.server.OpenListener.setUndertowOptions.

The connector options

Annotations
@Override