|
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
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 MessageBytes |
certificates
Byte chunk for certs. |
protected boolean |
empty
Body empty flag. |
protected boolean |
endOfStream
End of stream flag. |
protected AbstractEndpoint |
endpoint
Associated endpoint. |
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 |
packetSize
AJP packet size. |
protected boolean |
replay
Replay read. |
protected Request |
request
Request object. |
protected AjpMessage |
requestHeaderMessage
Header message. |
protected String |
requiredSecret
Required secret. |
protected Response |
response
Response object. |
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 ? |
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. |
abstract Executor |
getExecutor()
|
protected abstract Log |
getLog()
|
Request |
getRequest()
Get the request associated with this processor. |
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 |
setRequiredSecret(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 final StringManager sm
protected Adapter adapter
protected AbstractEndpoint endpoint
protected Request request
protected Response response
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 boolean tomcatAuthentication
protected String requiredSecret
Constructor Detail |
---|
public AbstractAjpProcessor()
Method Detail |
---|
protected abstract Log getLog()
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public void setRequiredSecret(String requiredSecret)
public Request getRequest()
public final void action(ActionCode actionCode, Object param)
action
in interface ActionHook
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 abstract Executor getExecutor()
getExecutor
in interface Processor
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.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |