|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.AbstractProcessor<S>
org.apache.coyote.ajp.AbstractAjpProcessor<Socket>
org.apache.coyote.ajp.AjpProcessor
public class AjpProcessor
Processes AJP requests.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
|---|
AbstractAjpProcessor.SocketInputBuffer, AbstractAjpProcessor.SocketOutputBuffer |
| Field Summary | |
|---|---|
protected InputStream |
input
Input stream. |
protected OutputStream |
output
Output stream. |
protected SocketWrapper<Socket> |
socket
Socket associated with the current connection. |
| Fields inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
|---|
bodyBytes, bodyMessage, bytesWritten, certificates, clientCertProvider, empty, endAndCloseMessageArray, endMessageArray, endOfStream, error, finished, first, flushMessageArray, getBodyMessageArray, hostNameC, keepAliveTimeout, packetSize, pongMessageArray, replay, requestHeaderMessage, requiredSecret, responseMessage, sm, tmpMB, tomcatAuthentication |
| Fields inherited from class org.apache.coyote.AbstractProcessor |
|---|
adapter, asyncStateMachine, endpoint, request, response |
| Constructor Summary | |
|---|---|
AjpProcessor(int packetSize,
JIoEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
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<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. |
void |
recycle(boolean socketClosing)
Recycle the processor, ready for the next request which may be on the same connection or a different connection. |
| Methods inherited from class org.apache.coyote.ajp.AbstractAjpProcessor |
|---|
action, asyncDispatch, event, finish, flush, getClientCertProvider, getKeepAliveTimeout, getTomcatAuthentication, getUpgradeInbound, isComet, isUpgrade, parseHost, prepareRequest, prepareResponse, refillReadBuffer, setClientCertProvider, setKeepAliveTimeout, setRequiredSecret, setSslSupport, setTomcatAuthentication, upgradeDispatch |
| Methods inherited from class org.apache.coyote.AbstractProcessor |
|---|
asyncPostProcess, getAdapter, getEndpoint, getExecutor, getRequest, isAsync, setAdapter |
| 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
| Constructor Detail |
|---|
public AjpProcessor(int packetSize,
JIoEndpoint endpoint)
| Method Detail |
|---|
protected Log getLog()
getLog in class AbstractAjpProcessor<Socket>
public AbstractEndpoint.Handler.SocketState process(SocketWrapper<Socket> socket)
throws IOException
process in interface Processor<Socket>process in class AbstractProcessor<Socket>IOException - error during an I/O operationpublic void recycle(boolean socketClosing)
AbstractAjpProcessor
recycle in interface Processor<Socket>recycle in class AbstractAjpProcessor<Socket>socketClosing - Indicates if the socket is about to be closed
allowing the processor to perform any additional
clean-up that may be required
protected void actionInternal(ActionCode actionCode,
Object param)
actionInternal in class AbstractAjpProcessor<Socket>actionCode - Type of the actionparam - Action parameter
protected void output(byte[] src,
int offset,
int length)
throws IOException
output in class AbstractAjpProcessor<Socket>IOException
protected boolean read(byte[] buf,
int pos,
int n)
throws IOException
IOException
public boolean receive()
throws IOException
receive in class AbstractAjpProcessor<Socket>IOException
protected boolean readMessage(AjpMessage message)
throws IOException
IOException - any other failure, including incomplete reads
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||