| Modifier and Type | Field | Description |
|---|---|---|
static int |
ADAPTER_NOTES |
|
protected static boolean |
ALLOW_BACKSLASH |
|
protected static StringManager |
sm |
The string manager for this package.
|
| Constructor | Description |
|---|---|
CoyoteAdapter(Connector connector) |
Construct a new CoyoteProcessor associated with the specified connector.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
asyncDispatch(Request req,
Response res,
SocketEvent 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.
|
java.lang.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) |
This method normalizes "\", "//", "/./" and "/../".
|
protected void |
parsePathParameters(Request req,
Request request) |
Extract the path parameters from the request.
|
protected void |
parseSessionCookiesId(Request request) |
Parse session id in Cookie.
|
protected void |
parseSessionSslId(Request request) |
Look for SSL session ID if required.
|
protected boolean |
postParseRequest(Request req,
Request request,
Response res,
Response response) |
Perform the necessary processing after the HTTP headers have been parsed
to enable the request/response pair to be passed to the start of the
container pipeline for processing.
|
boolean |
prepare(Request req,
Response res) |
Prepare the given request/response for processing.
|
void |
service(Request req,
Response res) |
Call the service method, and notify all listeners
|
public static final int ADAPTER_NOTES
protected static final boolean ALLOW_BACKSLASH
protected static final StringManager sm
public CoyoteAdapter(Connector connector)
connector - CoyoteConnector that owns this processorpublic boolean asyncDispatch(Request req, Response res, SocketEvent status) throws java.lang.Exception
asyncDispatch in interface Adapterjava.lang.Exceptionpublic void service(Request req, Response res) throws java.lang.Exception
Adapterservice in interface Adapterreq - The request objectres - The response objectjava.lang.Exception - if an error happens during handling of
the request. Common errors are:
public boolean prepare(Request req, Response res) throws java.io.IOException, javax.servlet.ServletException
Adapterpublic void checkRecycled(Request req, Response res)
AdaptercheckRecycled in interface Adapterreq - Requestres - Responsepublic java.lang.String getDomain()
Adapterprotected boolean postParseRequest(Request req, Request request, Response res, Response response) throws java.io.IOException, javax.servlet.ServletException
req - The coyote request objectrequest - The catalina request objectres - The coyote response objectresponse - The catalina response objecttrue if the request should be passed on to the start
of the container pipeline, otherwise falsejava.io.IOException - If there is insufficient space in a buffer while
processing headersjavax.servlet.ServletException - If the supported methods of the target servlet
cannot be determinedprotected void parsePathParameters(Request req, Request request)
req - The Coyote request objectrequest - The Servlet request objectprotected void parseSessionSslId(Request request)
request - The Servlet request objectprotected void parseSessionCookiesId(Request request)
request - The Servlet request objectprotected void convertURI(MessageBytes uri, Request request) throws java.io.IOException
uri - MessageBytes object containing the URIrequest - The Servlet request objectjava.io.IOException - if a IO exception occurs sending an error to the clientprotected void convertMB(MessageBytes mb)
mb - The MessageBytes instance containing the bytes that should be converted to charspublic static boolean normalize(MessageBytes uriMB)
uriMB - URI to be normalizedfalse if normalizing this URI would require going
above the root, or if the URI contains a null byte, otherwise
truepublic static boolean checkNormalize(MessageBytes uriMB)
uriMB - URI to be checked (should be chars)false if sequences that are supposed to be
normalized are still present in the URI, otherwise
trueprotected static void copyBytes(byte[] b,
int dest,
int src,
int len)
b - The bytes that should be copieddest - Destination offsetsrc - Source offsetlen - LengthCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.