|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.ajp.AbstractAjpProcessor
org.apache.coyote.ajp.AjpProcessor
public class AjpProcessor
Processes AJP requests.
| Nested Class Summary | |
|---|---|
protected class |
AjpProcessor.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 InputStream |
input
Input stream. |
protected int |
keepAliveTimeout
The number of milliseconds Tomcat will wait for a subsequent request before closing the connection. |
protected OutputStream |
output
Output stream. |
protected static byte[] |
pongMessageArray
Direct buffer used for sending right away a pong message. |
protected SocketWrapper<Socket> |
socket
Socket associated with the current connection. |
| Fields inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
|---|
adapter, asyncStateMachine, bodyBytes, bodyMessage, certificates, empty, endOfStream, endpoint, error, finished, first, hostNameC, packetSize, replay, request, requestHeaderMessage, requiredSecret, response, responseHeaderMessage, sm, tmpMB, tomcatAuthentication |
| Constructor Summary | |
|---|---|
AjpProcessor(int packetSize,
JIoEndpoint 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. |
Executor |
getExecutor()
|
int |
getKeepAliveTimeout()
|
protected Log |
getLog()
|
protected void |
output(byte[] src,
int offset,
int length)
|
AbstractEndpoint.Handler.SocketState |
process(SocketWrapper<Socket> socket)
Process pipelined HTTP requests using the specified input and output streams. |
protected boolean |
read(byte[] buf,
int pos,
int n)
Read at least the specified amount of bytes, and place them in the input buffer. |
protected boolean |
readMessage(AjpMessage message)
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. |
void |
setKeepAliveTimeout(int timeout)
|
| Methods inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
|---|
action, asyncPostProcess, getAdapter, getRequest, getTomcatAuthentication, isAsync, parseHost, prepareRequest, prepareResponse, recycle, setAdapter, setRequiredSecret, setTomcatAuthentication |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SocketWrapper<Socket> socket
protected InputStream input
protected OutputStream output
protected final byte[] getBodyMessageArray
protected static final byte[] pongMessageArray
protected static final byte[] endMessageArray
protected static final byte[] flushMessageArray
protected int keepAliveTimeout
| Constructor Detail |
|---|
public AjpProcessor(int packetSize,
JIoEndpoint endpoint)
| Method Detail |
|---|
protected Log getLog()
getLog in class AbstractAjpProcessorpublic int getKeepAliveTimeout()
public void setKeepAliveTimeout(int timeout)
public AbstractEndpoint.Handler.SocketState process(SocketWrapper<Socket> socket)
throws IOException
IOException - error during an I/O operationpublic AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
public Executor getExecutor()
getExecutor in interface ProcessorgetExecutor in class AbstractAjpProcessor
protected void actionInternal(ActionCode actionCode,
Object param)
actionInternal in class AbstractAjpProcessoractionCode - Type of the actionparam - Action parameter
protected void output(byte[] src,
int offset,
int length)
throws IOException
output in class AbstractAjpProcessorIOException
protected void finish()
throws IOException
finish in class AbstractAjpProcessorIOException
protected boolean read(byte[] buf,
int pos,
int n)
throws IOException
IOException
public boolean receive()
throws IOException
receive in class AbstractAjpProcessorIOException
protected boolean refillReadBuffer()
throws IOException
refillReadBuffer in class AbstractAjpProcessorIOException
protected boolean readMessage(AjpMessage message)
throws IOException
IOException - any other failure, including incomplete reads
protected void flush(boolean explicit)
throws IOException
flush in class AbstractAjpProcessorIOException
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||