| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public class | |
| pack-priv static enum | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | appCommitted
The application commit flag. |
| private boolean | |
| protected FilterChainContext | ctx
Grizzly |
| private static final Locale | DEFAULT_LOCALE
Default locale as mandated by the spec. |
| protected DelayedExecutor. | |
| protected boolean | error
The error flag. |
| private ErrorPageGenerator | |
| protected DateTimeFormatter | format
The date format we will use for creating date headers. |
| private static final String | |
| protected HttpContext | httpContext
Grizzly |
| protected static final String | info
Descriptive information about this Response implementation. |
| private static final Logger | |
| protected final ServerOutputBuffer | outputBuffer
The associated output buffer. |
| private final NIOOutputStreamImpl | outputStream
The associated output stream. |
| protected final CharChunk | redirectURLCC
Recyclable buffer to hold the redirect URL. |
| protected Request | request
The request with which this response is associated. |
| protected HttpResponsePacket | response
Coyote response. |
| private boolean | |
| private final Response. | |
| pack-priv Response. | |
| private SuspendStatus | |
| protected final UEncoder | urlEncoder
URL encoder. |
| protected boolean | usingOutputStream
Using output stream flag. |
| protected boolean | usingWriter
Using writer flag. |
| private final NIOWriterImpl | writer
The associated writer. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addDateHeader(final String
Name of the header to set name, final long Date value to be set value)Add the specified date header to the specified value. |
| public void | addDateHeader(final Header
the header, final long Header to setDate value to be set value)Add the specified date header to the specified value. |
| public void | |
| public void | addHeader(final String
Name of the header to set name, final HeaderValue Value to be set value)Add the specified header to the specified value. |
| public void | |
| public void | addHeader(final Header
the header, final HeaderValue Header to setValue to be set value)Add the specified header to the specified value. |
| public void | addIntHeader(final String
Name of the header to set name, final int Integer value to be set value)Add the specified integer header to the specified value. |
| public void | addIntHeader(final Header
the header, final int Header to setInteger value to be set value)Add the specified integer header to the specified value. |
| protected void | addSessionCookieInternal(final Cookie cookie)
Special method for adding a session cookie as we should be overriding any previous |
| public void | |
| pack-priv final void | |
| public boolean | containsHeader(final String
Name of the header to check name)Has the specified header been set already in this response? |
| public boolean | containsHeader(final Header
the header)Header to checkHas the specified header been set already in this response? |
| pack-priv static DelayedExecutor. | |
| public NIOOutputStream | createOutputStream()
Create and return a ServletOutputStream to write the content associated with this Response. |
| private static boolean | |
| public String | encodeRedirectURL(String
URL to be encoded url)Encode the session identifier associated with this response into the specified redirect URL, if necessary. |
| public String | |
| public static String | |
| public void | finish()
Perform whatever actions are required to flush and close the output stream or writer, in a single operation. |
| public void | |
| public int | |
| public String | |
| public int | |
| public long | |
| public String | getContentType()
Return the content type that was set or calculated for this response, or |
| public Cookie[] | getCookies()
Return an array of all cookies set for this response, or a zero-length array if no cookies have been set. |
| public String | |
| public ErrorPageGenerator | getErrorPageGenerator()
Returns: the |
| public String | |
| public String[] | getHeaderNames()
Return an array of all the header names set for this response, or a zero-length array if no headers have been set. |
| public String[] | getHeaderValues(final String
Header name to look up name)Return an array of all the header values associated with the specified header name, or an zero-length array if there are no such header values. |
| public String | getInfo()
Return descriptive information about this Response implementation and the corresponding version number, in the format
|
| public Locale | |
| public String | |
| public NIOOutputStream | |
| public NIOWriter | |
| public OutputBuffer | |
| public OutputStream | |
| public Request | |
| public HttpResponsePacket | |
| public int | |
| public SuspendContext | Returns: the context of the suspended Response.Get the context of the suspended Response. |
| public Supplier | |
| public Writer | |
| public void | initialize(final Request request, final HttpResponsePacket response, final FilterChainContext ctx, final DelayedExecutor.
|
| pack-priv SuspendStatus | |
| public boolean | |
| public boolean | |
| protected boolean | isEncodeable(final String
Absolute URL to be validated location)Return true if the specified URL should be encoded with a session identifier. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true/tt> if thatResponse#suspend() has been
invoked and set to trueReturn true if that |
| protected void | recycle()
Release all object references, and initialize instance variables, in preparation for reuse of this object. |
| protected void | removeSessionCookies()
Removes any Set-Cookie response headers whose value contains the string "JSESSIONID=" or "JSESSIONIDSSO=" |
| public void | |
| public void | |
| public void | |
| public void | resetBuffer(final boolean
true if the internal usingWriter,
usingOutputStream, isCharacterEncodingSet flags should also be resetReset the data buffer and the using Writer/Stream flags but not any status or header information. |
| public void | |
| public void | |
| public void | sendEarlyHints()
Send a |
| public void | sendError(int
HTTP status code to send status)Send an error response with the specified status and a default message. |
| public void | |
| public void | sendRedirect(String
Location URL to redirect to location)Send a temporary redirect to the specified redirect location URL. |
| public void | sendRedirect(String
Location URL to redirect to location, int sc, boolean clearBuffer)Send a temporary redirect to the specified redirect location URL. |
| public void | |
| public void | |
| public void | setContentLength(final int
The new content length length)Set the content length (in bytes) for this Response. |
| public void | setContentLengthLong(final long
The new content length length)Set the content length (in bytes) for this Response. |
| public void | |
| public void | |
| public void | setDateHeader(String
Name of the header to set name, long Date value to be set value)Set the specified date header to the specified value. |
| public void | setDateHeader(final Header
the header, long Header to setDate value to be set value)Set the specified date header to the specified value. |
| public void | |
| public void | |
| public void | setErrorPageGenerator(ErrorPageGenerator
the custom errorPageGenerator)ErrorPageGenerator.Sets the |
| public void | |
| public void | setHeader(final String
Name of the header to set name, final HeaderValue Value to be set value)Set the specified header to the specified value. |
| public void | |
| public void | setHeader(final Header
the header, final HeaderValue Header to setValue to be set value)Set the specified header to the specified value. |
| public void | setIntHeader(String
Name of the header to set name, int Integer value to be set value)Set the specified integer header to the specified value. |
| public void | setIntHeader(final Header
the header, final int Header to setInteger value to be set value)Set the specified integer header to the specified value. |
| public void | |
| public void | |
| public void | |
| public void | setStatus(HttpStatus
HttpStatus to setSet the HTTP status and message to be returned with this response. |
| public void | setTrailers(Supplier<Map<String, String>>
the supplier of trailer headers trailerSupplier)Set the supplier of trailer headers. |
| public void | |
| public void | suspend(final long
The maximum amount of time, a timeout, final TimeUnit Response can be suspended. When the timeout expires (because
nothing has been written or because the Response#resume() or Response#cancel()), the Response
will be automatically resumed and committed. Usage of any methods of a Response that times out will throw an
IllegalStateException.timeout units timeunit)
Deprecated
timeout parameters don't make any sense without CompletionHandler
Suspend the |
| public void | suspend(final long
The maximum amount of time the timeout, final TimeUnit Response can be suspended. When the timeout expires (because
nothing has been written or because the Response#resume() or Response#cancel()), the Response
will be automatically resumed and committed. Usage of any methods of a Response that times out will throw an
IllegalStateException.timeout units timeunit, final CompletionHandler<Response> completionHandler)Suspend the |
| public void | suspend(final long
The maximum amount of time the timeout, final TimeUnit Response can be suspended. When the timeout expires (because
nothing has been written or because the Response#resume() or Response#cancel()), the Response
will be automatically resumed and committed. Usage of any methods of a Response that times out will throw an
IllegalStateException.timeout units timeunit, final CompletionHandler<Response> completionHandler, final TimeoutHandler TimeoutHandler to customize the suspended Response timeout logic.Suspend the |
| protected String | toAbsolute(final String
URL to be (possibly) converted and then returned location, final boolean normalize)Convert (if necessary) and return the absolute URL that represents the resource referenced by this possibly relative URL. |
| protected String |