public class AjpProcessor extends AbstractProcessor
Modifier and Type | Class and Description |
---|---|
protected class |
AjpProcessor.SocketInputBuffer
This class is an input buffer which will read its data from an input
stream.
|
protected class |
AjpProcessor.SocketOutputBuffer
This class is an output buffer which will write data to an output
stream.
|
adapter, asyncStateMachine, endpoint, request, response, socketWrapper, sslSupport
Constructor and Description |
---|
AjpProcessor(int packetSize,
AbstractEndpoint<?> endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
action(ActionCode actionCode,
Object param)
Send an action to the connector.
|
protected AbstractEndpoint.Handler.SocketState |
dispatchEndRequest()
Perform any necessary clean-up processing if the dispatch resulted in the
completion of processing for the current request.
|
protected void |
dispatchNonBlockingRead()
Perform any necessary processing for a non-blocking read before
dispatching to the adapter.
|
protected boolean |
flushBufferedWrite()
Flush any pending writes.
|
String |
getClientCertProvider() |
int |
getKeepAliveTimeout() |
ByteBuffer |
getLeftoverInput()
Allows retrieving additional input during the upgrade process
|
protected Log |
getLog() |
boolean |
getTomcatAuthentication() |
boolean |
getTomcatAuthorization() |
UpgradeToken |
getUpgradeToken() |
boolean |
isUpgrade() |
void |
pause()
Informs the processor that the underlying I/O layer has stopped accepting
new connections.
|
void |
recycle()
Recycle the processor, ready for the next request which may be on the
same connection or a different connection.
|
protected boolean |
refillReadBuffer(boolean block)
Get more request body data from the web server and store it in the
internal buffer.
|
AbstractEndpoint.Handler.SocketState |
service(SocketWrapperBase<?> socket)
Service a 'standard' HTTP request.
|
void |
setClientCertProvider(String clientCertProvider) |
void |
setKeepAliveTimeout(int timeout) |
void |
setRequiredSecret(String requiredSecret) |
void |
setTomcatAuthentication(boolean tomcatAuthentication) |
void |
setTomcatAuthorization(boolean tomcatAuthorization) |
asyncPostProcess, dispatch, errorDispatch, getAdapter, getAsyncTimeout, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, setAdapter, setAsyncTimeout, setErrorState, setSocketWrapper, setSslSupport, timeoutAsync
addDispatch, clearDispatches, getIteratorAndClearDispatches, process
public AjpProcessor(int packetSize, AbstractEndpoint<?> endpoint)
public int getKeepAliveTimeout()
public void setKeepAliveTimeout(int timeout)
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public boolean getTomcatAuthorization()
public void setTomcatAuthorization(boolean tomcatAuthorization)
public void setRequiredSecret(String requiredSecret)
public String getClientCertProvider()
public void setClientCertProvider(String clientCertProvider)
public final void action(ActionCode actionCode, Object param)
ActionHook
actionCode
- Type of the actionparam
- Action parameterprotected boolean flushBufferedWrite() throws IOException
AbstractProcessor
flushBufferedWrite
in class AbstractProcessor
true
if data remains to be flushed at the end of
methodIOException
- If an I/O error occurs while attempting to flush the
dataprotected void dispatchNonBlockingRead()
AbstractProcessor
dispatchNonBlockingRead
in class AbstractProcessor
protected AbstractEndpoint.Handler.SocketState dispatchEndRequest()
AbstractProcessor
dispatchEndRequest
in class AbstractProcessor
public AbstractEndpoint.Handler.SocketState service(SocketWrapperBase<?> socket) throws IOException
AbstractProcessorLight
AbstractProcessorLight.dispatch(SocketStatus)
. Requests may be pipe-lined.service
in class AbstractProcessorLight
socket
- The connection to processIOException
- If an I/O error occurs during the processing of the
requestpublic UpgradeToken getUpgradeToken()
public void recycle()
Processor
recycle
in interface Processor
recycle
in class AbstractProcessor
public void pause()
Processor
public final boolean isUpgrade()
public ByteBuffer getLeftoverInput()
Processor
protected boolean refillReadBuffer(boolean block) throws IOException
IOException
protected Log getLog()
getLog
in class AbstractProcessorLight
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.