public class AjpAprProcessor extends AbstractAjpProcessor<java.lang.Long>
AbstractAjpProcessor.SocketInputBuffer, AbstractAjpProcessor.SocketOutputBuffer| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
inputBuffer
Direct buffer used for input.
|
protected java.nio.ByteBuffer |
outputBuffer
Direct buffer used for output.
|
ajpFlush, bodyBytes, bodyMessage, bytesWritten, certificates, clientCertProvider, empty, endAndCloseMessageArray, endMessageArray, endOfStream, finished, first, flushMessageArray, getBodyMessageArray, keepAliveTimeout, packetSize, pongMessageArray, replay, requestHeaderMessage, requiredSecret, responseMessage, sm, tmpMB, tomcatAuthenticationadapter, asyncStateMachine, endpoint, hostNameC, request, response, socketWrapper, userDataHelper| Constructor and Description |
|---|
AjpAprProcessor(int packetSize,
AprEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionInternal(ActionCode actionCode,
java.lang.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<java.lang.Long> socket)
Process pipelined HTTP requests using the specified input and output
streams.
|
protected boolean |
read(int n)
Read at least the specified amount of bytes, and place them
in the input buffer.
|
protected boolean |
readMessage(AjpMessage message,
boolean first,
boolean useAvailableData)
Read an AJP message.
|
protected boolean |
readt(int n,
boolean useAvailableData)
Read at least the specified amount of bytes, and place them
in the input buffer.
|
boolean |
receive()
Receive a chunk of data.
|
void |
recycle(boolean socketClosing)
Recycle the processor.
|
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, populateHost, populatePort, prepareRequest, prepareResponse, refillReadBuffer, setAjpFlush, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setSslSupport, setTomcatAuthentication, setTomcatAuthorization, upgradeDispatch, upgradeDispatchasyncPostProcess, errorDispatch, getAdapter, getAsyncStateMachine, getEndpoint, getErrorState, getExecutor, getMaxCookieCount, getRequest, getSocketWrapper, isAsync, parseHost, resetErrorState, setAdapter, setErrorState, setMaxCookieCount, setSocketWrapperprotected java.nio.ByteBuffer inputBuffer
protected java.nio.ByteBuffer outputBuffer
public AjpAprProcessor(int packetSize,
AprEndpoint endpoint)
protected Log getLog()
getLog in class AbstractProcessor<java.lang.Long>public AbstractEndpoint.Handler.SocketState process(SocketWrapper<java.lang.Long> socket) throws java.io.IOException
process in interface Processor<java.lang.Long>process in class AbstractProcessor<java.lang.Long>java.io.IOException - error during an I/O operationprotected void actionInternal(ActionCode actionCode, java.lang.Object param)
actionInternal in class AbstractAjpProcessor<java.lang.Long>actionCode - Type of the actionparam - Action parameterprotected void resetTimeouts()
AbstractAjpProcessorresetTimeouts in class AbstractAjpProcessor<java.lang.Long>protected void output(byte[] src,
int offset,
int length)
throws java.io.IOException
output in class AbstractAjpProcessor<java.lang.Long>java.io.IOExceptionprotected boolean read(int n)
throws java.io.IOException
java.io.IOExceptionprotected boolean readt(int n,
boolean useAvailableData)
throws java.io.IOException
java.io.IOExceptionpublic boolean receive()
throws java.io.IOException
receive in class AbstractAjpProcessor<java.lang.Long>java.io.IOExceptionprotected boolean readMessage(AjpMessage message, boolean first, boolean useAvailableData) throws java.io.IOException
first - is true if the message is the first in the request, which
will cause a short duration blocking readjava.io.IOException - any other failure, including incomplete readspublic void recycle(boolean socketClosing)
recycle in interface Processor<java.lang.Long>recycle in class AbstractAjpProcessor<java.lang.Long>socketClosing - Indicates if the socket is about to be closed
allowing the processor to perform any additional
clean-up that may be requiredCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.