org.apache.catalina.connector
public class CoyoteAdapter extends Object implements Adapter
Version: $Revision: 896389 $ $Date: 2010-01-06 12:09:55 +0100 (Wed, 06 Jan 2010) $
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.
|
static boolean | normalize(MessageBytes uriMB)
Normalize URI.
|
protected void | parseSessionCookiesId(Request req, Request request)
Parse session id in URL. |
protected void | parseSessionId(Request req, Request request)
Parse session id in URL. |
protected boolean | postParseRequest(Request req, Request request, Response res, Response response)
Parse additional request parameters. |
void | service(Request req, Response res)
Service method. |
Parameters: connector CoyoteConnector that owns this processor
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.
Parameters: uriMB URI to be checked (should be chars)
Returns: false to indicate an error, expected or not
This method normalizes "\", "//", "/./" and "/../". This method will return false when trying to go above the root, or if the URI contains a null byte.
Parameters: uriMB URI to be normalized