|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.connector.CoyoteAdapter
public class CoyoteAdapter
Implementation of a request processor which delegates the processing to a Coyote processor.
Field Summary | |
---|---|
static int |
ADAPTER_NOTES
|
protected static boolean |
ALLOW_BACKSLASH
|
protected StringManager |
sm
The string manager for this package. |
protected static URLEncoder |
urlEncoder
Encoder for the Location URL in HTTP redirects. |
Constructor Summary | |
---|---|
CoyoteAdapter(Connector connector)
Construct a new CoyoteProcessor associated with the specified connector. |
Method Summary | |
---|---|
static boolean |
checkNormalize(MessageBytes uriMB)
Check that the URI is normalized following character decoding. |
protected void |
convertMB(MessageBytes mb)
Character conversion of the a US-ASCII MessageBytes. |
protected void |
convertURI(MessageBytes uri,
Request 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. |
boolean |
event(Request req,
Response res,
SocketStatus status)
Event method. |
void |
log(Request req,
Response res,
long time)
|
static boolean |
normalize(MessageBytes uriMB)
Normalize URI. |
protected void |
parsePathParameters(Request req,
Request request)
Extract the path parameters from the request. |
protected void |
parseSessionCookiesId(Request req,
Request request)
Parse session id in URL. |
protected void |
parseSessionId(Request req,
Request request)
Deprecated. Not used since 6.0.33 |
protected boolean |
postParseRequest(Request req,
Request request,
Response res,
Response 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 static final boolean ALLOW_BACKSLASH
protected StringManager sm
protected static URLEncoder urlEncoder
Constructor Detail |
---|
public CoyoteAdapter(Connector connector)
connector
- CoyoteConnector that owns this processorMethod Detail |
---|
public boolean event(Request req, Response res, SocketStatus status)
event
in interface Adapter
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:
public void log(Request req, Response res, long time)
log
in interface Adapter
protected boolean postParseRequest(Request req, Request request, Response res, Response response) throws java.lang.Exception
java.lang.Exception
protected void parsePathParameters(Request req, Request request)
req
- request
- @Deprecated protected void parseSessionId(Request req, Request request)
protected void parseSessionCookiesId(Request req, Request request)
protected void convertURI(MessageBytes uri, Request request) throws java.lang.Exception
java.lang.Exception
protected void convertMB(MessageBytes mb)
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 normalizedpublic static boolean checkNormalize(MessageBytes uriMB)
This method checks for "\", 0, "//", "/./" and "/../". This method will return false if sequences that are supposed to be normalized are still present in the URI.
uriMB
- URI to be checked (should be chars)protected static void copyBytes(byte[] b, int dest, int src, int len)
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |