org.apache.coyote.tomcat5
Class CoyoteAdapter
java.lang.Object
org.apache.coyote.tomcat5.CoyoteAdapter
- Adapter
public class CoyoteAdapter
extends java.lang.Object
Implementation of a request processor which delegates the processing to a
Coyote processor.
Version:
- Craig R. McClanahan
- Remy Maucherat
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(String message) - Log a message on the Logger associated with our Container (if any)
|
protected void | log(String message, 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.
|
ADAPTER_NOTES
public static final int ADAPTER_NOTES
- 1
sm
protected StringManager sm
The string manager for this package.
CoyoteAdapter
public CoyoteAdapter(CoyoteConnector connector)
Construct a new CoyoteProcessor associated with the specified connector.
connector
- CoyoteConnector that owns this processor
convertURI
protected void convertURI(MessageBytes uri,
CoyoteRequest request)
throws Exception
Character conversion of the URI.
copyBytes
protected static void copyBytes(byte[] b,
int dest,
int src,
int len)
Copy an array of bytes to a different position. Used during
normalization.
log
protected void log(String message)
Log a message on the Logger associated with our Container (if any)
message
- Message to be logged
log
protected void log(String message,
Throwable throwable)
Log a message on the Logger associated with our Container (if any)
message
- Message to be loggedthrowable
- Associated exception
normalize
public static boolean normalize(MessageBytes uriMB)
Normalize URI.
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 normalized
parseSessionCookiesId
protected void parseSessionCookiesId(Request req,
CoyoteRequest request)
Parse session id in URL.
parseSessionId
protected void parseSessionId(Request req,
CoyoteRequest request)
Parse session id in URL.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.