|
Apache Tomcat 7.0.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.coyote.AbstractProcessor
org.apache.coyote.ajp.AbstractAjpProcessor
org.apache.coyote.ajp.AjpNioProcessor
public class AjpNioProcessor
Processes AJP requests using NIO.
Nested Class Summary | |
---|---|
protected class |
AjpNioProcessor.SocketOutputBuffer
This class is an output buffer which will write data to an output stream. |
Nested classes/interfaces inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
---|
AbstractAjpProcessor.SocketInputBuffer |
Field Summary | |
---|---|
protected static byte[] |
endMessageArray
End message array. |
protected static byte[] |
flushMessageArray
Flush message array. |
protected byte[] |
getBodyMessageArray
Direct buffer used for sending right away a get body message. |
protected static byte[] |
pongMessageArray
Direct buffer used for sending right away a pong message. |
protected NioSelectorPool |
pool
Selector pool for the associated endpoint. |
protected NioChannel |
socket
Socket associated with the current connection. |
Fields inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
---|
adapter, asyncStateMachine, bodyBytes, bodyMessage, byteCount, certificates, clientCertProvider, empty, endOfStream, error, finished, first, hostNameC, keepAliveTimeout, packetSize, replay, requestHeaderMessage, requiredSecret, responseHeaderMessage, sm, tmpMB, tomcatAuthentication |
Fields inherited from class org.apache.coyote.AbstractProcessor |
---|
endpoint, request, response |
Constructor Summary | |
---|---|
AjpNioProcessor(int packetSize,
NioEndpoint endpoint)
|
Method Summary | |
---|---|
protected void |
actionInternal(ActionCode actionCode,
Object param)
Send an action to the connector. |
AbstractEndpoint.Handler.SocketState |
asyncDispatch(SocketStatus status)
|
protected void |
finish()
Finish AJP response. |
protected void |
flush(boolean explicit)
Callback to write data from the buffer. |
protected Log |
getLog()
|
protected void |
output(byte[] src,
int offset,
int length)
|
AbstractEndpoint.Handler.SocketState |
process(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 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 boolean |
refillReadBuffer()
Get more request body data from the web server and store it in the internal buffer. |
Methods inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
---|
action, asyncPostProcess, getAdapter, getClientCertProvider, getKeepAliveTimeout, getTomcatAuthentication, isAsync, parseHost, prepareRequest, prepareResponse, recycle, setAdapter, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setTomcatAuthentication |
Methods inherited from class org.apache.coyote.AbstractProcessor |
---|
getEndpoint, getExecutor, getRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NioChannel socket
protected NioSelectorPool pool
protected final byte[] getBodyMessageArray
protected static final byte[] pongMessageArray
protected static final byte[] endMessageArray
protected static final byte[] flushMessageArray
Constructor Detail |
---|
public AjpNioProcessor(int packetSize, NioEndpoint endpoint)
Method Detail |
---|
protected Log getLog()
getLog
in class AbstractAjpProcessor
public AbstractEndpoint.Handler.SocketState process(NioChannel socket) throws IOException
IOException
- error during an I/O operationpublic AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
protected void actionInternal(ActionCode actionCode, Object param)
actionInternal
in class AbstractAjpProcessor
actionCode
- Type of the actionparam
- Action parameterprotected void output(byte[] src, int offset, int length) throws IOException
output
in class AbstractAjpProcessor
IOException
protected void finish() throws IOException
finish
in class AbstractAjpProcessor
IOException
protected int read(byte[] buf, int pos, int n, boolean blockFirstRead) throws IOException
IOException
public boolean receive() throws IOException
receive
in class AbstractAjpProcessor
IOException
protected boolean refillReadBuffer() throws IOException
refillReadBuffer
in class AbstractAjpProcessor
IOException
protected int readMessage(AjpMessage message, boolean blockFirstRead) throws IOException
IOException
- any other failure, including incomplete readsprotected void flush(boolean explicit) throws IOException
flush
in class AbstractAjpProcessor
IOException
|
Apache Tomcat 7.0.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |