public class AjpProcessor extends AbstractAjpProcessor<Socket>
AbstractAjpProcessor.SocketInputBuffer, AbstractAjpProcessor.SocketOutputBuffer
Modifier and Type | Field and Description |
---|---|
protected InputStream |
input |
protected OutputStream |
output |
bodyBytes, bodyMessage, bytesWritten, certificates, clientCertProvider, empty, endAndCloseMessageArray, endMessageArray, endOfStream, finished, first, flushMessageArray, getBodyMessageArray, hostNameC, keepAliveTimeout, pongMessageArray, replay, requestHeaderMessage, requiredSecret, responseMessage, sm, tmpMB, tomcatAuthentication
adapter, asyncStateMachine, endpoint, request, response, socketWrapper
Constructor and Description |
---|
AjpProcessor(int packetSize,
JIoEndpoint 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.
|
void |
recycle(boolean socketClosing)
Recycle the processor, ready for the next request which may be on the
same connection or a different connection.
|
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<Socket> socketWrapper,
int timeout) |
protected void |
setupSocket(SocketWrapper<Socket> socketWrapper) |
action, asyncDispatch, event, finish, flush, getClientCertProvider, getHttpUpgradeHandler, getKeepAliveTimeout, getTomcatAuthentication, isComet, isUpgrade, parseHost, prepareRequest, prepareResponse, process, readMessage, receive, refillReadBuffer, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setSslSupport, setTomcatAuthentication, upgradeDispatch
asyncPostProcess, errorDispatch, getAdapter, getEndpoint, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, resetErrorState, setAdapter, setErrorState, setSocketWrapper
protected InputStream input
protected OutputStream output
public AjpProcessor(int packetSize, JIoEndpoint endpoint)
protected Log getLog()
getLog
in class AbstractProcessor<Socket>
public void recycle(boolean socketClosing)
AbstractAjpProcessor
protected void registerForEvent(boolean read, boolean write)
AbstractProcessor
registerForEvent
in class AbstractProcessor<Socket>
read
- Register the socket for read eventswrite
- Register the socket for write eventsprotected void resetTimeouts()
AbstractAjpProcessor
resetTimeouts
in class AbstractAjpProcessor<Socket>
protected void setupSocket(SocketWrapper<Socket> socketWrapper) throws IOException
setupSocket
in class AbstractAjpProcessor<Socket>
IOException
protected void setTimeout(SocketWrapper<Socket> socketWrapper, int timeout) throws IOException
setTimeout
in class AbstractAjpProcessor<Socket>
IOException
protected int output(byte[] src, int offset, int length, boolean block) throws IOException
output
in class AbstractAjpProcessor<Socket>
IOException
protected boolean read(byte[] buf, int pos, int n, boolean blockFirstRead) throws IOException
AbstractAjpProcessor
read
in class AbstractAjpProcessor<Socket>
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 false
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.