public class CoyoteAdapter
extends org.glassfish.grizzly.http.server.HttpHandler
Modifier and Type | Field and Description |
---|---|
protected static boolean |
ALLOW_BACKSLASH |
protected static org.glassfish.grizzly.http.Note<org.glassfish.grizzly.http.server.util.MappingData> |
MAPPING_DATA |
Constructor and Description |
---|
CoyoteAdapter(Connector connector)
Construct a new CoyoteProcessor associated with the specified connector.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
copyBytes(byte[] b,
int dest,
int src,
int len)
Copy an array of bytes to a different position.
|
void |
fireAdapterEvent(String type,
Object data)
Notify all container event listeners that a particular event has
occurred for this Adapter.
|
int |
getPort()
Gets the port of this CoyoteAdapter.
|
boolean |
isCompatWithTomcat()
Return true when an instance is executed the same way it does in Tomcat.
|
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(org.glassfish.grizzly.http.util.MessageBytes uriMB)
Normalize URI.
|
protected boolean |
postParseRequest(org.glassfish.grizzly.http.server.Request req,
Request request,
org.glassfish.grizzly.http.server.Response res,
Response response,
boolean v3Enabled)
Parse additional request parameters.
|
void |
service(org.glassfish.grizzly.http.server.Request req,
org.glassfish.grizzly.http.server.Response res)
Service method.
|
void |
setCompatWithTomcat(boolean compatWithTomcat)
true if this class needs to be compatible with Tomcat
Adapter class.
|
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths
protected static final boolean ALLOW_BACKSLASH
protected static final org.glassfish.grizzly.http.Note<org.glassfish.grizzly.http.server.util.MappingData> MAPPING_DATA
public CoyoteAdapter(Connector connector)
connector
- CoyoteConnector that owns this processorpublic void service(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response res) throws Exception
service
in class org.glassfish.grizzly.http.server.HttpHandler
Exception
protected boolean postParseRequest(org.glassfish.grizzly.http.server.Request req, Request request, org.glassfish.grizzly.http.server.Response res, Response response, boolean v3Enabled) throws Exception
Exception
public static boolean normalize(org.glassfish.grizzly.http.util.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 normalizedprotected static void copyBytes(byte[] b, int dest, int src, int len)
protected void log(String message)
message
- Message to be loggedprotected void log(String message, Throwable throwable)
message
- Message to be loggedthrowable
- Associated exceptionpublic void fireAdapterEvent(String type, Object data)
type
- Event typedata
- Event datapublic boolean isCompatWithTomcat()
public void setCompatWithTomcat(boolean compatWithTomcat)
public int getPort()
Copyright © 2019. All rights reserved.