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

pack-priv final Class AjpReadListener

extends Object
implements ChannelListener<StreamSourceChannel>
Class Inheritance
All Implemented Interfaces
org.xnio.ChannelListener, java.util.EventListener
Imports
io.undertow.UndertowLogger, .UndertowMessages, .UndertowOptions, io.undertow.conduits.ConduitListener, .EmptyStreamSourceConduit, .ReadDataStreamSourceConduit, io.undertow.server.AbstractServerConnection, .ConnectorStatisticsImpl, .Connectors, .HttpServerExchange, io.undertow.server.protocol.ParseTimeoutUpdater, io.undertow.util.HeaderMap, .Headers, .HttpString, .Methods, .StatusCodes, .BadRequestException, org.xnio.ChannelListener, .StreamConnection, io.undertow.connector.PooledByteBuffer, org.xnio.channels.StreamSinkChannel, .StreamSourceChannel, org.xnio.conduits.ConduitStreamSinkChannel, .ConduitStreamSourceChannel, .StreamSourceConduit, .WriteReadyHandler, java.io.IOException, java.nio.ByteBuffer

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final AjpServerConnection
private final ConnectorStatisticsImpl
private static final byte[]
private static final byte[]
private HttpServerExchange
private final long
private final int
private final AjpRequestParser
private ParseTimeoutUpdater
private volatile int
private final boolean
private final String
private static final byte[]
private static final byte[]
private AjpRequestParseState
private WriteReadyHandler.ChannelListenerHandler<ConduitStreamSinkChannel>

Constructor Summary

AccessConstructor and Description
pack-priv
AjpReadListener(final AjpServerConnection connection, final String scheme, AjpRequestParser parser, ConnectorStatisticsImpl connectorStatistics)

Method Summary

Modifier and TypeMethod and Description
private StreamSourceConduit
createSourceConduit(StreamSourceConduit underlyingConduit, AjpServerResponseConduit responseConduit, final HttpServerExchange exchange)

public void
private void
private void
public void
handleEvent(final StreamSourceChannel
the channel event
channel
)

Implements org.xnio.ChannelListener.handleEvent.

Handle the event on this channel.

private void
private boolean
sendMessages(final byte[]... rawMessages)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
private final AjpServerConnection connection
connectorStatisticsback to summary
private final ConnectorStatisticsImpl connectorStatistics
CPONGback to summary
private static final byte[] CPONG
END_RESPONSEback to summary
private static final byte[] END_RESPONSE
httpServerExchangeback to summary
private HttpServerExchange httpServerExchange
maxEntitySizeback to summary
private final long maxEntitySize
maxRequestSizeback to summary
private final int maxRequestSize
parserback to summary
private final AjpRequestParser parser
parseTimeoutUpdaterback to summary
private ParseTimeoutUpdater parseTimeoutUpdater
readback to summary
private volatile int read
recordRequestStartTimeback to summary
private final boolean recordRequestStartTime
schemeback to summary
private final String scheme
SEND_HEADERS_BAD_REQUEST_MSGback to summary
private static final byte[] SEND_HEADERS_BAD_REQUEST_MSG
SEND_HEADERS_INTERNAL_SERVER_ERROR_MSGback to summary
private static final byte[] SEND_HEADERS_INTERNAL_SERVER_ERROR_MSG
stateback to summary
private AjpRequestParseState state
writeReadyHandlerback to summary
private WriteReadyHandler.ChannelListenerHandler<ConduitStreamSinkChannel> writeReadyHandler

Constructor Detail

AjpReadListenerback to summary
pack-priv AjpReadListener(final AjpServerConnection connection, final String scheme, AjpRequestParser parser, ConnectorStatisticsImpl connectorStatistics)

Method Detail

createSourceConduitback to summary
private StreamSourceConduit createSourceConduit(StreamSourceConduit underlyingConduit, AjpServerResponseConduit responseConduit, final HttpServerExchange exchange) throws BadRequestException
exchangeCompleteback to summary
public void exchangeComplete(final HttpServerExchange exchange)
handleBadRequestback to summary
private void handleBadRequest()
handleCPingback to summary
private void handleCPing()
handleEventback to summary
public void handleEvent(final StreamSourceChannel channel)

Implements org.xnio.ChannelListener.handleEvent.

Doc from org.xnio.ChannelListener.handleEvent.

Handle the event on this channel.

Parameters
channel:StreamSourceChannel

the channel event

handleInternalServerErrorback to summary
private void handleInternalServerError()
sendMessagesback to summary
private boolean sendMessages(final byte[]... rawMessages)
startRequestback to summary
public void startRequest()