| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.ajp.AjpAprProcessor
public class AjpAprProcessor
Processes HTTP requests.
| Nested Class Summary | |
|---|---|
| protected  class | AjpAprProcessor.SocketInputBufferThis class is an input buffer which will read its data from an input stream. | 
| protected  class | AjpAprProcessor.SocketOutputBufferThis class is an output buffer which will write data to an output stream. | 
| Field Summary | |
|---|---|
| protected  Adapter | adapterAssociated adapter. | 
| protected  MessageBytes | bodyBytesBody message. | 
| protected  AjpMessage | bodyMessageBody message. | 
| protected  MessageBytes | certificatesByte chunk for certs. | 
| protected  java.lang.String | clientCertProviderWhen client certificate information is presented in a form other than instances of X509Certificateit needs to be
 converted before it can be used and this property controls which JSSE
 provider is used to perform the conversion. | 
| protected  boolean | emptyBody empty flag. | 
| protected static byte[] | endMessageArrayEnd message array. | 
| protected  boolean | endOfStreamEnd of stream flag. | 
| protected  AprEndpoint | endpointAssociated endpoint. | 
| protected  boolean | errorError flag. | 
| protected  boolean | finishedFinished response. | 
| protected  boolean | firstFirst read. | 
| protected static java.nio.ByteBuffer | flushMessageBufferDirect buffer used for sending explicit flush message. | 
| protected  java.nio.ByteBuffer | getBodyMessageBufferDirect buffer used for sending right away a get body message. | 
| protected  char[] | hostNameCHost name (used to avoid useless B2C conversion on the host name). | 
| protected  java.nio.ByteBuffer | inputBufferDirect buffer used for input. | 
| protected static Log | logLogger. | 
| protected  java.nio.ByteBuffer | outputBufferDirect buffer used for output. | 
| protected  int | packetSizeThe socket timeout used when reading the first block of the request header. | 
| protected static java.nio.ByteBuffer | pongMessageBufferDirect buffer used for sending right away a pong message. | 
| protected  boolean | replayReplay read. | 
| protected  Request | requestRequest object. | 
| protected  AjpMessage | requestHeaderMessageHeader message. | 
| protected  java.lang.String | requiredSecretRequired secret. | 
| protected  Response | responseResponse object. | 
| protected  AjpMessage | responseHeaderMessageMessage used for response header composition. | 
| protected static StringManager | smThe string manager for this package. | 
| protected  long | socketSocket associated with the current connection. | 
| protected  boolean | startedState flag. | 
| protected  MessageBytes | tmpMBTemp message bytes used for processing. | 
| protected  boolean | tomcatAuthenticationUse Tomcat authentication ? | 
| Constructor Summary | |
|---|---|
| AjpAprProcessor(int packetSize,
                AprEndpoint endpoint) | |
| Method Summary | |
|---|---|
|  void | action(ActionCode actionCode,
       java.lang.Object param)Send an action to the connector. | 
| protected  void | finish()Finish AJP response. | 
| protected  void | flush()Callback to write data from the buffer. | 
|  Adapter | getAdapter()Get the associated adapter. | 
|  java.lang.String | getClientCertProvider() | 
|  int | getMaxCookieCount() | 
|  Request | getRequest()Get the request associated with this processor. | 
|  boolean | getTomcatAuthentication() | 
|  void | parseHost(MessageBytes valueMB)Parse host. | 
| protected  void | prepareRequest()After reading the request headers, we have to setup the request filters. | 
| protected  void | prepareResponse()When committing the response, we have to validate the set of headers, as well as setup the response filters. | 
|  boolean | process(long socket)Process pipelined HTTP requests using the specified input and output streams. | 
| protected  boolean | read(int n)Read at least the specified amount of bytes, and place them in the input buffer. | 
| protected  boolean | readMessage(AjpMessage message,
            boolean first,
            boolean useAvailableData)Read an AJP message. | 
| protected  boolean | readt(int n,
      boolean useAvailableData)Read at least the specified amount of bytes, and place them in the input buffer. | 
|  boolean | receive()Receive a chunk of data. | 
|  void | recycle()Recycle the processor. | 
|  void | setAdapter(Adapter adapter)Set the associated adapter. | 
|  void | setClientCertProvider(java.lang.String s) | 
|  void | setMaxCookieCount(int maxCookieCount) | 
|  void | setRequiredSecret(java.lang.String requiredSecret) | 
|  void | setTomcatAuthentication(boolean tomcatAuthentication) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static Log log
protected static StringManager sm
protected Adapter adapter
protected Request request
protected Response response
protected int packetSize
protected AjpMessage requestHeaderMessage
protected AjpMessage responseHeaderMessage
protected AjpMessage bodyMessage
protected MessageBytes bodyBytes
protected boolean started
protected boolean error
protected long socket
protected char[] hostNameC
protected AprEndpoint endpoint
protected MessageBytes tmpMB
protected MessageBytes certificates
protected boolean endOfStream
protected boolean empty
protected boolean first
protected boolean replay
protected boolean finished
protected java.nio.ByteBuffer outputBuffer
protected java.nio.ByteBuffer inputBuffer
protected final java.nio.ByteBuffer getBodyMessageBuffer
protected static final java.nio.ByteBuffer pongMessageBuffer
protected static final byte[] endMessageArray
protected static final java.nio.ByteBuffer flushMessageBuffer
protected boolean tomcatAuthentication
protected java.lang.String requiredSecret
protected java.lang.String clientCertProvider
X509Certificate it needs to be
 converted before it can be used and this property controls which JSSE
 provider is used to perform the conversion. For example it is used with
 the AJP connectors, the HTTP APR connector and with the
 SSLValve. If not specified, the
 default provider will be used.
| Constructor Detail | 
|---|
public AjpAprProcessor(int packetSize,
                       AprEndpoint endpoint)
| Method Detail | 
|---|
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public void setRequiredSecret(java.lang.String requiredSecret)
public java.lang.String getClientCertProvider()
public void setClientCertProvider(java.lang.String s)
public int getMaxCookieCount()
public void setMaxCookieCount(int maxCookieCount)
public Request getRequest()
public boolean process(long socket)
                throws java.io.IOException
java.io.IOException - error during an I/O operation
public void action(ActionCode actionCode,
                   java.lang.Object param)
action in interface ActionHookactionCode - Type of the actionparam - Action parameterpublic void setAdapter(Adapter adapter)
adapter - the new adapterpublic Adapter getAdapter()
protected void prepareRequest()
public void parseHost(MessageBytes valueMB)
protected void prepareResponse()
                        throws java.io.IOException
java.io.IOException
protected void finish()
               throws java.io.IOException
java.io.IOException
protected boolean read(int n)
                throws java.io.IOException
java.io.IOException
protected boolean readt(int n,
                        boolean useAvailableData)
                 throws java.io.IOException
java.io.IOException
public boolean receive()
                throws java.io.IOException
java.io.IOException
protected boolean readMessage(AjpMessage message,
                              boolean first,
                              boolean useAvailableData)
                       throws java.io.IOException
first - is true if the message is the first in the request, which
        will cause a short duration blocking read
java.io.IOException - any other failure, including incomplete readspublic void recycle()
protected void flush()
              throws java.io.IOException
java.io.IOException| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||