Modifier and Type | Field and Description |
---|---|
static int |
ADAPTER_NOTES |
protected static boolean |
ALLOW_BACKSLASH |
protected static StringManager |
sm
The string manager for this package.
|
protected static URLEncoder |
urlEncoder
Encoder for the Location URL in HTTP redirects.
|
Constructor and Description |
---|
CoyoteAdapter(Connector connector)
Construct a new CoyoteProcessor associated with the specified connector.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asyncDispatch(Request req,
Response res,
SocketStatus status) |
static boolean |
checkNormalize(MessageBytes uriMB)
Check that the URI is normalized following character decoding.
|
void |
checkRecycled(Request req,
Response res)
Assert that request and response have been recycled.
|
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.
|
void |
errorDispatch(Request req,
Response res) |
boolean |
event(Request req,
Response res,
SocketStatus status)
Event method.
|
String |
getDomain()
Provide the name of the domain to use to register MBeans for components
associated with the connector.
|
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 request)
Parse session id in URL.
|
protected void |
parseSessionSslId(Request request)
Look for SSL session ID if required.
|
protected boolean |
postParseRequest(Request req,
Request request,
Response res,
Response response)
Parse additional request parameters.
|
void |
service(Request req,
Response res)
Service method.
|
public static final int ADAPTER_NOTES
protected static final boolean ALLOW_BACKSLASH
protected static final StringManager sm
protected static final URLEncoder urlEncoder
public CoyoteAdapter(Connector connector)
connector
- CoyoteConnector that owns this processorpublic boolean event(Request req, Response res, SocketStatus status)
public boolean asyncDispatch(Request req, Response res, SocketStatus status) throws Exception
asyncDispatch
in interface Adapter
Exception
public void service(Request req, Response res) throws Exception
service
in interface Adapter
Exception
- if an error happens during handling of
the request. Common errors are:
public void errorDispatch(Request req, Response res)
errorDispatch
in interface Adapter
public void checkRecycled(Request req, Response res)
Adapter
checkRecycled
in interface Adapter
req
- Requestres
- Responsepublic String getDomain()
Adapter
protected boolean postParseRequest(Request req, Request request, Response res, Response response) throws Exception
Exception
protected void parsePathParameters(Request req, Request request)
req
- request
- protected void parseSessionSslId(Request request)
protected void parseSessionCookiesId(Request request)
protected void convertURI(MessageBytes uri, Request request) throws Exception
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)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.