public class AjpNioProcessor extends AbstractAjpProcessor<NioChannel>
AbstractAjpProcessor.SocketInputBuffer, AbstractAjpProcessor.SocketOutputBuffer| Modifier and Type | Field and Description | 
|---|---|
| protected NioSelectorPool | poolSelector pool for the associated endpoint. | 
ajpFlush, bodyBytes, bodyMessage, bytesWritten, certificates, clientCertProvider, empty, endAndCloseMessageArray, endMessageArray, endOfStream, finished, first, flushMessageArray, getBodyMessageArray, keepAliveTimeout, packetSize, pongMessageArray, replay, requestHeaderMessage, requiredSecret, responseMessage, secret, sm, tmpMB, tomcatAuthenticationadapter, asyncStateMachine, endpoint, hostNameC, request, response, socketWrapper, userDataHelper| Constructor and Description | 
|---|
| AjpNioProcessor(int packetSize,
               NioEndpoint 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<NioChannel> socket)Process pipelined HTTP requests using the specified input and output
 streams. | 
| protected int | read(byte[] buf,
    int pos,
    int n,
    boolean blockFirstRead)Read at least the specified amount of bytes, and place them
 in the input buffer. | 
| protected int | readMessage(AjpMessage message,
           boolean blockFirstRead)Read an AJP message. | 
| boolean | receive()Receive a chunk of data. | 
| 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, recycle, refillReadBuffer, setAjpFlush, setAllowedRequestAttributesPatternPattern, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setSecret, setSslSupport, setTomcatAuthentication, setTomcatAuthorization, upgradeDispatch, upgradeDispatchasyncPostProcess, errorDispatch, getAdapter, getAsyncStateMachine, getEndpoint, getErrorState, getExecutor, getMaxCookieCount, getRequest, getSocketWrapper, isAsync, parseHost, resetErrorState, setAdapter, setErrorState, setMaxCookieCount, setSocketWrapperprotected NioSelectorPool pool
public AjpNioProcessor(int packetSize,
               NioEndpoint endpoint)
protected Log getLog()
getLog in class AbstractProcessor<NioChannel>public AbstractEndpoint.Handler.SocketState process(SocketWrapper<NioChannel> socket) throws IOException
process in interface Processor<NioChannel>process in class AbstractProcessor<NioChannel>IOException - error during an I/O operationprotected void actionInternal(ActionCode actionCode, Object param)
actionInternal in class AbstractAjpProcessor<NioChannel>actionCode - Type of the actionparam - Action parameterprotected void resetTimeouts()
AbstractAjpProcessorresetTimeouts in class AbstractAjpProcessor<NioChannel>protected void output(byte[] src,
          int offset,
          int length)
               throws IOException
output in class AbstractAjpProcessor<NioChannel>IOExceptionprotected int read(byte[] buf,
       int pos,
       int n,
       boolean blockFirstRead)
            throws IOException
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?IOException - If an I/O error occurs during the readpublic boolean receive()
                throws IOException
receive in class AbstractAjpProcessor<NioChannel>IOExceptionprotected int readMessage(AjpMessage message, boolean blockFirstRead) throws IOException
message - The message to populateblockFirstRead - If there is no data available to read when this method is
              called, should this call block until data becomes available?IOException - any other failure, including incomplete readsCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.