| Package | Description |
|---|---|
| org.glassfish.grizzly.http.server | |
| org.glassfish.grizzly.http.server.accesslog | |
| org.glassfish.grizzly.http.server.io | |
| org.glassfish.grizzly.http.server.util |
| Modifier and Type | Field and Description |
|---|---|
protected Response |
Request.response
The response with which this request is associated.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
Request.getResponse() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.grizzly.CompletionHandler<Response> |
SuspendContext.getCompletionHandler()
Get the suspended
Response CompletionHandler. |
org.glassfish.grizzly.CompletionHandler<Response> |
Response.SuspendedContextImpl.getCompletionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
StaticHttpHandlerBase.addCachingHeaders(Response response,
File file) |
boolean |
StaticHttpHandlerBase.addToFileCache(Request req,
Response res,
File resource) |
protected abstract boolean |
StaticHttpHandlerBase.handle(String uri,
Request request,
Response response)
Lookup a resource based on the request URI, and process it.
|
protected boolean |
CLStaticHttpHandler.handle(String resourcePath,
Request request,
Response response)
Lookup a resource based on the request URI, and process it.
|
protected boolean |
StaticHttpHandler.handle(String uri,
Request request,
Response response)
Lookup a resource based on the request URI, and process it.
|
protected void |
StaticHttpHandlerBase.onMissingResource(Request request,
Response response)
The method will be called, if the static resource requested by the
Request
wasn't found, so StaticHttpHandler implementation may try to
workaround this situation. |
void |
HttpServerProbe.onRequestCompleteEvent(HttpServerFilter filter,
org.glassfish.grizzly.Connection connection,
Response response)
Method will be called, when
Request processing will be completed. |
void |
HttpServerProbe.Adapter.onRequestCompleteEvent(HttpServerFilter filter,
org.glassfish.grizzly.Connection connection,
Response response)
Method will be called, when
Request processing will be completed. |
boolean |
TimeoutHandler.onTimeout(Response response)
Method is called, when suspended
Response timeout expired. |
protected void |
HttpServerFilter.onTraceRequest(Request request,
Response response) |
protected static void |
StaticHttpHandlerBase.pickupContentType(Response response,
String path) |
protected boolean |
HttpHandler.sendAcknowledgment(Request request,
Response response)
The default implementation will acknowledge an
Expect: 100-Continue
with a response line with the status 100 followed by the final response
to this request. |
static void |
StaticHttpHandlerBase.sendFile(Response response,
File file) |
void |
StaticHttpHandlerBase.service(Request request,
Response response)
Based on the
Request URI, try to map the file from the
#getDocRoots(), and send it back to a client. |
abstract void |
HttpHandler.service(Request request,
Response response)
This method should contain the logic for any HTTP extension to the
Grizzly HTTP web server.
|
void |
HttpHandlerChain.service(Request request,
Response response)
Map the
Request to the proper HttpHandler |
| Modifier and Type | Method and Description |
|---|---|
void |
Response.suspend(long timeout,
TimeUnit timeunit,
org.glassfish.grizzly.CompletionHandler<Response> completionHandler)
Suspend the
Response. |
void |
Response.suspend(long timeout,
TimeUnit timeunit,
org.glassfish.grizzly.CompletionHandler<Response> completionHandler,
TimeoutHandler timeoutHandler)
Suspend the
Response. |
| Constructor and Description |
|---|
Request(Response response) |
| Modifier and Type | Method and Description |
|---|---|
String |
ApacheLogFormat.format(Response response,
Date timeStamp,
long responseNanos) |
String |
AccessLogFormat.format(Response response,
Date timeStamp,
long responseNanos)
|
void |
AccessLogProbe.onRequestCompleteEvent(HttpServerFilter filter,
org.glassfish.grizzly.Connection connection,
Response response)
Receive notification of the completion of a
Response an possibly
trigger an access log entry generation. |
| Modifier and Type | Method and Description |
|---|---|
void |
ServerOutputBuffer.initialize(Response response,
org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
static void |
HtmlHelper.sendErrorPage(Request request,
Response response,
ErrorPageGenerator generator,
int status,
String reasonPhrase,
String description,
Throwable exception)
Generate and send an error page for the given HTTP response status.
|
static void |
HtmlHelper.setErrorAndSendErrorPage(Request request,
Response response,
ErrorPageGenerator generator,
int status,
String reasonPhrase,
String description,
Throwable exception)
Generate and send an error page for the given HTTP response status.
|
static void |
HtmlHelper.writeTraceMessage(Request request,
Response response) |
Copyright © 2018 Oracle Corporation. All Rights Reserved.