public class AjpNioProcessor extends AbstractAjpProcessor<NioChannel>
AbstractAjpProcessor.SocketInputBuffer, AbstractAjpProcessor.SocketOutputBuffer| Modifier and Type | Field and Description |
|---|---|
protected NioSelectorPool |
pool
Selector pool for the associated endpoint.
|
ajpFlush, bodyBytes, bodyMessage, bytesWritten, certificates, clientCertProvider, empty, endAndCloseMessageArray, endMessageArray, endOfStream, finished, first, flushMessageArray, getBodyMessageArray, hostNameC, keepAliveTimeout, pongMessageArray, replay, requestHeaderMessage, requiredSecret, responseMessage, sm, tmpMB, tomcatAuthenticationadapter, asyncStateMachine, endpoint, request, response, socketWrapper| Constructor and Description |
|---|
AjpNioProcessor(int packetSize,
NioEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected Log |
getLog() |
protected int |
output(byte[] src,
int offset,
int length,
boolean block) |
protected boolean |
read(byte[] buf,
int pos,
int n,
boolean blockFirstRead)
Read at least the specified amount of bytes, and place them
in the input buffer.
|
protected void |
registerForEvent(boolean read,
boolean write)
Register the socket for the specified events.
|
protected void |
resetTimeouts()
Provides a mechanism for those connector implementations (currently only
NIO) that need to reset timeouts from Async timeouts to standard HTTP
timeouts once async processing completes.
|
protected void |
setTimeout(SocketWrapper<NioChannel> socketWrapper,
int timeout) |
protected void |
setupSocket(SocketWrapper<NioChannel> socketWrapper) |
action, asyncDispatch, event, finish, flush, getAjpFlush, getClientCertProvider, getKeepAliveTimeout, getLeftoverInput, getTomcatAuthentication, getTomcatAuthorization, getUpgradeToken, isComet, isUpgrade, parseHost, prepareRequest, prepareResponse, process, readMessage, receive, recycle, refillReadBuffer, setAjpFlush, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setSslSupport, setTomcatAuthentication, setTomcatAuthorization, upgradeDispatchasyncPostProcess, errorDispatch, getAdapter, getEndpoint, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, resetErrorState, setAdapter, setErrorState, setSocketWrapperprotected final NioSelectorPool pool
public AjpNioProcessor(int packetSize,
NioEndpoint endpoint)
protected Log getLog()
getLog in class AbstractProcessor<NioChannel>protected void registerForEvent(boolean read,
boolean write)
AbstractProcessorregisterForEvent in class AbstractProcessor<NioChannel>read - Register the socket for read eventswrite - Register the socket for write eventsprotected void resetTimeouts()
AbstractAjpProcessorresetTimeouts in class AbstractAjpProcessor<NioChannel>protected void setupSocket(SocketWrapper<NioChannel> socketWrapper) throws IOException
setupSocket in class AbstractAjpProcessor<NioChannel>IOExceptionprotected void setTimeout(SocketWrapper<NioChannel> socketWrapper, int timeout) throws IOException
setTimeout in class AbstractAjpProcessor<NioChannel>IOExceptionprotected int output(byte[] src,
int offset,
int length,
boolean block)
throws IOException
output in class AbstractAjpProcessor<NioChannel>IOExceptionprotected boolean read(byte[] buf,
int pos,
int n,
boolean blockFirstRead)
throws IOException
AbstractAjpProcessorread in class AbstractAjpProcessor<NioChannel>buf - Buffer to read data intopos - Start positionn - The minimum number of bytes to readblockFirstRead - If there is no data available to read when this method is
called, should this call block until data becomes available?true if the requested number of bytes were read
else falseIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.