|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.AbstractProcessor<S> org.apache.coyote.ajp.AbstractAjpProcessor<S>
public abstract class AbstractAjpProcessor<S>
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. |
protected class |
AbstractAjpProcessor.SocketOutputBuffer
This class is an output buffer which will write data to an output stream. |
Field Summary | |
---|---|
protected MessageBytes |
bodyBytes
Body message. |
protected AjpMessage |
bodyMessage
Body message. |
protected long |
bytesWritten
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 static byte[] |
endAndCloseMessageArray
|
protected static byte[] |
endMessageArray
End message array. |
protected boolean |
endOfStream
End of stream flag. |
protected boolean |
error
Error flag. |
protected boolean |
finished
Finished response. |
protected boolean |
first
First read. |
protected static byte[] |
flushMessageArray
Flush message array. |
protected byte[] |
getBodyMessageArray
GetBody message array. |
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 static byte[] |
pongMessageArray
Pong message array. |
protected boolean |
replay
Replay read. |
protected AjpMessage |
requestHeaderMessage
Header message. |
protected String |
requiredSecret
Required secret. |
protected AjpMessage |
responseMessage
Message used for response 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 |
---|
adapter, asyncStateMachine, endpoint, request, response |
Constructor Summary | |
---|---|
AbstractAjpProcessor(int packetSize,
AbstractEndpoint endpoint)
|
Method Summary | |
---|---|
void |
action(ActionCode actionCode,
Object param)
Send an action to the connector. |
protected abstract void |
actionInternal(ActionCode actionCode,
Object param)
|
AbstractEndpoint.Handler.SocketState |
asyncDispatch(SocketStatus status)
Process in-progress Servlet 3.0 Async requests. |
AbstractEndpoint.Handler.SocketState |
event(SocketStatus status)
Process in-progress Comet requests. |
protected void |
finish()
Finish AJP response. |
protected void |
flush(boolean explicit)
Callback to write data from the buffer. |
String |
getClientCertProvider()
|
int |
getKeepAliveTimeout()
|
protected abstract Log |
getLog()
|
boolean |
getTomcatAuthentication()
|
UpgradeInbound |
getUpgradeInbound()
|
boolean |
isComet()
|
boolean |
isUpgrade()
|
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(boolean socketClosing)
Recycle the processor, ready for the next request which may be on the same connection or a different connection. |
protected boolean |
refillReadBuffer()
Get more request body data from the web server and store it in the internal buffer. |
void |
setClientCertProvider(String s)
|
void |
setKeepAliveTimeout(int timeout)
|
void |
setRequiredSecret(String requiredSecret)
|
void |
setSslSupport(SSLSupport sslSupport)
|
void |
setTomcatAuthentication(boolean tomcatAuthentication)
|
AbstractEndpoint.Handler.SocketState |
upgradeDispatch()
Processes data received on a connection that has been through an HTTP upgrade. |
Methods inherited from class org.apache.coyote.AbstractProcessor |
---|
asyncPostProcess, getAdapter, getEndpoint, getExecutor, getRequest, isAsync, process, setAdapter |
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 static final byte[] endMessageArray
protected static final byte[] endAndCloseMessageArray
protected static final byte[] flushMessageArray
protected static final byte[] pongMessageArray
protected final byte[] getBodyMessageArray
protected int packetSize
protected AjpMessage requestHeaderMessage
protected AjpMessage responseMessage
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 long bytesWritten
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(int packetSize, AbstractEndpoint endpoint)
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 parameterpublic AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
AbstractProcessor
asyncDispatch
in interface Processor<S>
asyncDispatch
in class AbstractProcessor<S>
public void setSslSupport(SSLSupport sslSupport)
public AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws IOException
AbstractProcessor
event
in interface Processor<S>
event
in class AbstractProcessor<S>
IOException
public AbstractEndpoint.Handler.SocketState upgradeDispatch() throws IOException
AbstractProcessor
upgradeDispatch
in interface Processor<S>
upgradeDispatch
in class AbstractProcessor<S>
IOException
public UpgradeInbound getUpgradeInbound()
getUpgradeInbound
in interface Processor<S>
getUpgradeInbound
in class AbstractProcessor<S>
public void recycle(boolean socketClosing)
socketClosing
- Indicates if the socket is about to be closed
allowing the processor to perform any additional
clean-up that may be requiredprotected abstract void actionInternal(ActionCode actionCode, Object param)
protected abstract void output(byte[] src, int offset, int length) throws IOException
IOException
protected abstract boolean receive() throws IOException
IOException
public final boolean isComet()
isComet
in interface Processor<S>
isComet
in class AbstractProcessor<S>
public final boolean isUpgrade()
isUpgrade
in interface Processor<S>
isUpgrade
in class AbstractProcessor<S>
protected boolean refillReadBuffer() throws IOException
IOException
protected void prepareRequest()
protected void parseHost(MessageBytes valueMB)
protected void prepareResponse() throws IOException
IOException
protected void flush(boolean explicit) throws IOException
IOException
protected void finish() throws IOException
IOException
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |