|
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
public abstract class AbstractAjpProcessor
Base class for AJP Processor implementations.
Nested Class Summary | |
---|---|
protected class |
AbstractAjpProcessor.SocketInputBuffer
This class is an input buffer which will read its data from an input stream. |
Field Summary | |
---|---|
protected Adapter |
adapter
Associated adapter. |
protected AsyncStateMachine |
asyncStateMachine
Track changes in state for async requests. |
protected MessageBytes |
bodyBytes
Body message. |
protected AjpMessage |
bodyMessage
Body message. |
protected long |
byteCount
Bytes written to client for the current request |
protected MessageBytes |
certificates
Byte chunk for certs. |
protected String |
clientCertProvider
When client certificate information is presented in a form other than instances of X509Certificate it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. |
protected boolean |
empty
Body empty flag. |
protected boolean |
endOfStream
End of stream flag. |
protected boolean |
error
Error flag. |
protected boolean |
finished
Finished response. |
protected boolean |
first
First read. |
protected char[] |
hostNameC
Host name (used to avoid useless B2C conversion on the host name). |
protected int |
keepAliveTimeout
The number of milliseconds Tomcat will wait for a subsequent request before closing the connection. |
protected int |
packetSize
AJP packet size. |
protected boolean |
replay
Replay read. |
protected AjpMessage |
requestHeaderMessage
Header message. |
protected String |
requiredSecret
Required secret. |
protected AjpMessage |
responseHeaderMessage
Message used for response header composition. |
protected static StringManager |
sm
The string manager for this package. |
protected MessageBytes |
tmpMB
Temp message bytes used for processing. |
protected boolean |
tomcatAuthentication
Use Tomcat authentication ? |
Fields inherited from class org.apache.coyote.AbstractProcessor |
---|
endpoint, request, response |
Constructor Summary | |
---|---|
AbstractAjpProcessor()
|
Method Summary | |
---|---|
void |
action(ActionCode actionCode,
Object param)
Send an action to the connector. |
protected abstract void |
actionInternal(ActionCode actionCode,
Object param)
|
protected AbstractEndpoint.Handler.SocketState |
asyncPostProcess()
|
protected abstract void |
finish()
|
protected abstract void |
flush(boolean tbd)
|
Adapter |
getAdapter()
Get the associated adapter. |
String |
getClientCertProvider()
|
int |
getKeepAliveTimeout()
|
protected abstract Log |
getLog()
|
boolean |
getTomcatAuthentication()
|
protected boolean |
isAsync()
|
protected abstract void |
output(byte[] src,
int offset,
int length)
|
protected 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. |
protected abstract boolean |
receive()
|
void |
recycle()
|
protected abstract boolean |
refillReadBuffer()
|
void |
setAdapter(Adapter adapter)
Set the associated adapter. |
void |
setClientCertProvider(String s)
|
void |
setKeepAliveTimeout(int timeout)
|
void |
setRequiredSecret(String requiredSecret)
|
void |
setTomcatAuthentication(boolean tomcatAuthentication)
|
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 static final StringManager sm
protected Adapter adapter
protected int packetSize
protected AjpMessage requestHeaderMessage
protected AjpMessage responseHeaderMessage
protected AjpMessage bodyMessage
protected MessageBytes bodyBytes
protected boolean error
protected char[] hostNameC
protected MessageBytes tmpMB
protected MessageBytes certificates
protected boolean endOfStream
protected boolean empty
protected boolean first
protected boolean replay
protected boolean finished
protected AsyncStateMachine asyncStateMachine
protected long byteCount
protected int keepAliveTimeout
protected boolean tomcatAuthentication
protected String requiredSecret
protected 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 AbstractAjpProcessor()
Method Detail |
---|
protected abstract Log getLog()
public int getKeepAliveTimeout()
public void setKeepAliveTimeout(int timeout)
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public void setRequiredSecret(String requiredSecret)
public String getClientCertProvider()
public void setClientCertProvider(String s)
public final void action(ActionCode actionCode, Object param)
actionCode
- Type of the actionparam
- Action parameterprotected abstract void actionInternal(ActionCode actionCode, Object param)
protected abstract void flush(boolean tbd) throws IOException
IOException
protected abstract void finish() throws IOException
IOException
public void recycle()
public void setAdapter(Adapter adapter)
adapter
- the new adapterpublic Adapter getAdapter()
protected void prepareRequest()
protected void parseHost(MessageBytes valueMB)
protected void prepareResponse() throws IOException
IOException
protected abstract void output(byte[] src, int offset, int length) throws IOException
IOException
protected boolean isAsync()
protected AbstractEndpoint.Handler.SocketState asyncPostProcess()
protected abstract boolean receive() throws IOException
IOException
protected abstract boolean refillReadBuffer() throws IOException
IOException
|
Apache Tomcat 7.0.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |