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.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ajpFlush
Send AJP flush packet when flushing.
|
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.
|
boolean |
getAjpFlush() |
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 |
setAjpFlush(boolean ajpFlush) |
void |
setClientCertProvider(String clientCertProvider) |
void |
setKeepAliveTimeout(int timeout) |
void |
setRequiredSecret(String requiredSecret) |
void |
setTomcatAuthentication(boolean tomcatAuthentication) |
void |
setTomcatAuthorization(boolean tomcatAuthorization) |
asyncPostProcess, dispatch, getAdapter, getAsyncTimeout, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, setAdapter, setAsyncTimeout, setErrorState, setSocketWrapper, setSslSupport, timeoutAsyncaddDispatch, clearDispatches, getIteratorAndClearDispatches, processprotected boolean ajpFlush
public AjpProcessor(int packetSize,
AbstractEndpoint<?> endpoint)
public boolean getAjpFlush()
public void setAjpFlush(boolean ajpFlush)
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)
ActionHookactionCode - Type of the actionparam - Action parameterprotected boolean flushBufferedWrite()
throws IOException
AbstractProcessorflushBufferedWrite in class AbstractProcessortrue 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()
AbstractProcessordispatchNonBlockingRead in class AbstractProcessorprotected AbstractEndpoint.Handler.SocketState dispatchEndRequest()
AbstractProcessordispatchEndRequest in class AbstractProcessorpublic AbstractEndpoint.Handler.SocketState service(SocketWrapperBase<?> socket) throws IOException
AbstractProcessorLightAbstractProcessorLight.dispatch(SocketEvent). Requests may be pipe-lined.service in class AbstractProcessorLightsocket - The connection to processIOException - If an I/O error occurs during the processing of the
requestpublic UpgradeToken getUpgradeToken()
public void recycle()
Processorrecycle in interface Processorrecycle in class AbstractProcessorpublic void pause()
Processorpublic final boolean isUpgrade()
public ByteBuffer getLeftoverInput()
Processorprotected boolean refillReadBuffer(boolean block)
throws IOException
block - true if this is blocking IOtrue if there is more data,
false if not.IOException - An IO error occurredprotected Log getLog()
getLog in class AbstractProcessorLightCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.