HttpHandler provides developers with a simple and consistent mechanism for extending the functionality of
the HTTP WebServer and for bridging existing HTTP based technology like JRuby-on-Rail, Servlet, Bayeux Protocol or
any HTTP based protocol.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | allowCustomStatusMessage
Are custom status messages (reason phrases) allowed? |
| private boolean | allowEncodedSlash
Allow request that uses encoded slash. |
| private boolean | decodeURL
Is the URL decoded |
| private static final RequestExecutorProvider | |
| private static final Logger | |
| private final String | name
HttpHandler name |
| private Charset | requestURIEncoding
Request URI encoding |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Invoked when the |
| pack-priv boolean | |
| protected ErrorPageGenerator | getErrorPageGenerator(final Request request)
Returns the |
| public String | |
| public RequestExecutorProvider | getRequestExecutorProvider()
Returns: the |
| public Charset | Returns: the request URI encoding used by this HttpHandler.Get the request URI encoding used by this HttpHandler. |
| protected String | |
| protected SessionManager | |
| public boolean | Returns: true if custom status messages (reason phrases) are allowed for this response, or
false otherwise.Returns |
| public boolean | Returns: Is HTTP URL request allowed to contains encoded slash.Is HTTP URL request allowed to contains encoded slash. |
| private boolean | |
| protected boolean | Returns: true if request processing should continue after acknowledgment of the expectation, otherwise
return false.the request, final Response Request.the response)Response.The default implementation will acknowledge an |
| public abstract void | |
| public void | setAllowCustomStatusMessage(boolean
true if custom status messages (reason phrases) are allowed for this
response, or false otherwise.Sets if the custom status messages (reason phrases) are allowed for this response. |
| public void | setAllowEncodedSlash(boolean
true allowEncodedSlash)When true, URL that contains encoded slash will be allowed. |
| protected void | |
| protected void | |
| public void | setRequestURIEncoding(final Charset
the request URI encoding used by this HttpHandler. requestURIEncoding)Set the request URI encoding used by this HttpHandler. |
| public void | setRequestURIEncoding(final String
the request URI encoding used by this HttpHandler. requestURIEncoding)Set the request URI encoding used by this HttpHandler. |
| public void | |
| protected static void | updatePaths(final Request request, final MappingData mappingData)
Utility method to update |
| allowCustomStatusMessage | back to summary |
|---|---|
| private boolean allowCustomStatusMessage Are custom status messages (reason phrases) allowed? | |
| allowEncodedSlash | back to summary |
|---|---|
| private boolean allowEncodedSlash Allow request that uses encoded slash. | |
| decodeURL | back to summary |
|---|---|
| private boolean decodeURL Is the URL decoded | |
| DEFAULT_REQUEST_EXECUTOR_PROVIDER | back to summary |
|---|---|
| private static final RequestExecutorProvider DEFAULT_REQUEST_EXECUTOR_PROVIDER | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| name | back to summary |
|---|---|
| private final String name HttpHandler name | |
| requestURIEncoding | back to summary |
|---|---|
| private Charset requestURIEncoding Request URI encoding | |
| HttpHandler | back to summary |
|---|---|
| public HttpHandler() Create HttpHandler. | |
| HttpHandler | back to summary |
|---|---|
| public HttpHandler(String name) Create HttpHandler with the specific name. | |
| destroy | back to summary |
|---|---|
| public void destroy() Invoked when the | |
| doHandle | back to summary |
|---|---|
| pack-priv boolean doHandle(final Request request, final Response response) throws Exception Pre-processes HttpHandler | |
| getErrorPageGenerator | back to summary |
|---|---|
| protected ErrorPageGenerator getErrorPageGenerator(final Request request) Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Get the HttpHandler name.
| |
| getRequestExecutorProvider | back to summary |
|---|---|
public RequestExecutorProvider getRequestExecutorProvider()
| |
| getRequestURIEncoding | back to summary |
|---|---|
| public Charset getRequestURIEncoding() Get the request URI encoding used by this HttpHandler.
| |
| getSessionCookieName | back to summary |
|---|---|
protected String getSessionCookieName()
| |
| getSessionManager | back to summary |
|---|---|
protected SessionManager getSessionManager(final Request request)
| |
| isAllowCustomStatusMessage | back to summary |
|---|---|
| public boolean isAllowCustomStatusMessage() Returns
| |
| isAllowEncodedSlash | back to summary |
|---|---|
| public boolean isAllowEncodedSlash() Is HTTP URL request allowed to contains encoded slash.
| |
| runService | back to summary |
|---|---|
| private boolean runService(final Request request, final Response response) throws Exception | |
| sendAcknowledgment | back to summary |
|---|---|
| protected boolean sendAcknowledgment(final Request request, final Response response) throws IOException The default implementation will acknowledge an
| |
| service | back to summary |
|---|---|
| public abstract void service(Request request, Response response) throws Exception This method should contain the logic for any HTTP extension to the Grizzly HTTP web server. | |
| setAllowCustomStatusMessage | back to summary |
|---|---|
| public void setAllowCustomStatusMessage(boolean allowCustomStatusMessage) Sets if the custom status messages (reason phrases) are allowed for this response.
| |
| setAllowEncodedSlash | back to summary |
|---|---|
| public void setAllowEncodedSlash(boolean allowEncodedSlash) When true, URL that contains encoded slash will be allowed. When false, the URL will be rejected and considered as an invalid one.
| |
| setDecodeUrl | back to summary |
|---|---|
| protected void setDecodeUrl(boolean decodeURL) Should this class decode the URL | |
| setDispatcherHelper | back to summary |
|---|---|
| protected void setDispatcherHelper(final DispatcherHelper dispatcherHelper) | |
| setRequestURIEncoding | back to summary |
|---|---|
| public void setRequestURIEncoding(final Charset requestURIEncoding) Set the request URI encoding used by this HttpHandler.
| |
| setRequestURIEncoding | back to summary |
|---|---|
| public void setRequestURIEncoding(final String requestURIEncoding) Set the request URI encoding used by this HttpHandler.
| |
| start | back to summary |
|---|---|
| public void start() Called when the | |
| updatePaths | back to summary |
|---|---|
| protected static void updatePaths(final Request request, final MappingData mappingData) Utility method to update | |