public class AjpProcessor extends AbstractAjpProcessor<Socket>
AbstractAjpProcessor.SocketInputBuffer, AbstractAjpProcessor.SocketOutputBuffer| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
input
Input stream.
|
protected OutputStream |
output
Output stream.
|
ajpFlush, bodyBytes, bodyMessage, bytesWritten, certificates, clientCertProvider, empty, endAndCloseMessageArray, endMessageArray, endOfStream, finished, first, flushMessageArray, getBodyMessageArray, hostNameC, keepAliveTimeout, packetSize, pongMessageArray, replay, requestHeaderMessage, requiredSecret, responseMessage, sm, tmpMB, tomcatAuthenticationadapter, asyncStateMachine, endpoint, request, response, socketWrapper| Constructor and Description |
|---|
AjpProcessor(int packetSize,
JIoEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionInternal(ActionCode actionCode,
Object param)
Send an action to the connector.
|
protected Log |
getLog() |
protected void |
output(byte[] src,
int offset,
int length) |
AbstractEndpoint.Handler.SocketState |
process(SocketWrapper<Socket> socket)
Process pipelined HTTP requests using the specified input and output
streams.
|
protected boolean |
read(byte[] buf,
int pos,
int n)
Read at least the specified amount of bytes, and place them
in the input buffer.
|
protected boolean |
readMessage(AjpMessage message)
Read an AJP message.
|
boolean |
receive()
Receive a chunk of data.
|
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 |
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.
|
action, asyncDispatch, event, finish, flush, getAjpFlush, getClientCertProvider, getHttpUpgradeHandler, getKeepAliveTimeout, getTomcatAuthentication, getTomcatAuthorization, getUpgradeInbound, isComet, isUpgrade, parseHost, prepareRequest, prepareResponse, refillReadBuffer, setAjpFlush, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setSslSupport, setTomcatAuthentication, setTomcatAuthorization, upgradeDispatch, upgradeDispatchasyncPostProcess, errorDispatch, getAdapter, getEndpoint, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, resetErrorState, setAdapter, setErrorState, setSocketWrapperprotected InputStream input
protected OutputStream output
public AjpProcessor(int packetSize,
JIoEndpoint endpoint)
protected Log getLog()
getLog in class AbstractProcessor<Socket>public AbstractEndpoint.Handler.SocketState process(SocketWrapper<Socket> socket) throws IOException
process in interface Processor<Socket>process in class AbstractProcessor<Socket>IOException - error during an I/O operationpublic void recycle(boolean socketClosing)
AbstractAjpProcessorprotected void actionInternal(ActionCode actionCode, Object param)
actionInternal in class AbstractAjpProcessor<Socket>actionCode - Type of the actionparam - Action parameterprotected void resetTimeouts()
AbstractAjpProcessorresetTimeouts in class AbstractAjpProcessor<Socket>protected void output(byte[] src,
int offset,
int length)
throws IOException
output in class AbstractAjpProcessor<Socket>IOExceptionprotected boolean read(byte[] buf,
int pos,
int n)
throws IOException
IOExceptionpublic boolean receive()
throws IOException
receive in class AbstractAjpProcessor<Socket>IOExceptionprotected boolean readMessage(AjpMessage message) throws IOException
IOException - any other failure, including incomplete readsCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.