|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.coyote.tomcat5.CoyoteAdapter
Implementation of a request processor which delegates the processing to a Coyote processor.
Field Summary | |
static int |
ADAPTER_NOTES
|
protected StringManager |
sm
The string manager for this package. |
Constructor Summary | |
CoyoteAdapter(CoyoteConnector connector)
Construct a new CoyoteProcessor associated with the specified connector. |
Method Summary | |
protected void |
convertURI(MessageBytes uri,
CoyoteRequest request)
Character conversion of the URI. |
protected static void |
copyBytes(byte[] b,
int dest,
int src,
int len)
Copy an array of bytes to a different position. |
protected void |
log(java.lang.String message)
Log a message on the Logger associated with our Container (if any) |
protected void |
log(java.lang.String message,
java.lang.Throwable throwable)
Log a message on the Logger associated with our Container (if any) |
static boolean |
normalize(MessageBytes uriMB)
Normalize URI. |
protected void |
parseSessionCookiesId(Request req,
CoyoteRequest request)
Parse session id in URL. |
protected void |
parseSessionId(Request req,
CoyoteRequest request)
Parse session id in URL. |
protected boolean |
postParseRequest(Request req,
CoyoteRequest request,
Response res,
CoyoteResponse response)
Parse additional request parameters. |
void |
service(Request req,
Response res)
Service method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ADAPTER_NOTES
protected StringManager sm
Constructor Detail |
public CoyoteAdapter(CoyoteConnector connector)
connector
- CoyoteConnector that owns this processorMethod Detail |
public void service(Request req, Response res) throws java.lang.Exception
service
in interface Adapter
java.lang.Exception
- if an error happens during handling of
the request. Common errors are:
protected boolean postParseRequest(Request req, CoyoteRequest request, Response res, CoyoteResponse response) throws java.lang.Exception
java.lang.Exception
protected void parseSessionId(Request req, CoyoteRequest request)
protected void parseSessionCookiesId(Request req, CoyoteRequest request)
protected void convertURI(MessageBytes uri, CoyoteRequest request) throws java.lang.Exception
java.lang.Exception
public static boolean normalize(MessageBytes uriMB)
This method normalizes "\", "//", "/./" and "/../". This method will return false when trying to go above the root, or if the URI contains a null byte.
uriMB
- URI to be normalizedprotected static void copyBytes(byte[] b, int dest, int src, int len)
protected void log(java.lang.String message)
message
- Message to be loggedprotected void log(java.lang.String message, java.lang.Throwable throwable)
message
- Message to be loggedthrowable
- Associated exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |