ServletApiResponse.
Non servlet related state, is used indirectly via ServletChannel#getResponse()
which may be a wrapper of this response.
| Modifier and Type | Class and Description |
|---|---|
| protected static enum | |
| private class | ServletContextResponse.HttpFieldsWrapper
Wrapper of the response HttpFields to allow specific values to be intercepted. |
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private long | |
| private String | |
| private ServletContextResponse. | |
| private final HttpFields. | |
| private Locale | |
| private MimeTypes. | |
| private ServletContextResponse. | |
| private final ServletApiResponse | |
| private final ServletChannel | |
| private Supplier | |
| private ResponseWriter | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | ServletContextResponse(ServletChannel servletChannel, ServletContextRequest request, Response response)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public String | |
| public String | getCharacterEncoding(boolean setContentType)
Implements org. |
| pack-priv long | Returns: the number of bytes written via this classwrite(boolean, ByteBuffer, Callback) method.Returns the number of bytes written via this class |
| public long | |
| public String | |
| public ServletContextResponse. | |
| public HttpFields. | |
| public HttpOutput | |
| public Locale | |
| protected MimeTypes. | |
| public ServletContextResponse. | |
| public String | Returns: the raw character encodingGet the raw value of the Character Encoding field. |
| public Response | |
| public ServletApiResponse | |
| protected ServletContextRequest | |
| public static ServletContextResponse | |
| public ServletChannelState | |
| public Supplier | |
| public ResponseWriter | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected ServletApiResponse | |
| public void | reset()
Overrides org. Implements org. Resets this response, clearing the HTTP status code, HTTP headers and HTTP trailers. |
| public void | |
| public void | |
| public void | setCharacterEncoding(String
the character encoding encoding, ServletContextResponse.where encoding came from fromImplements org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | write(boolean
whether the ByteBuffer is the last to write last, ByteBuffer the ByteBuffer to write content, Callback the callback to notify when the write operation is complete callback)Overrides org. Implements org. Writes the given |
| _characterEncoding | back to summary |
|---|---|
| private String _characterEncoding | |
| _contentLength | back to summary |
|---|---|
| private long _contentLength | |
| _contentType | back to summary |
|---|---|
| private String _contentType | |
| _encodingFrom | back to summary |
|---|---|
| private ServletContextResponse. | |
| _headers | back to summary |
|---|---|
| private final HttpFields. | |
| _locale | back to summary |
|---|---|
| private Locale _locale | |
| _mimeType | back to summary |
|---|---|
| private MimeTypes. | |
| _outputType | back to summary |
|---|---|
| private ServletContextResponse. | |
| _servletApiResponse | back to summary |
|---|---|
| private final ServletApiResponse _servletApiResponse | |
| _servletChannel | back to summary |
|---|---|
| private final ServletChannel _servletChannel | |
| _trailers | back to summary |
|---|---|
| private Supplier<Map<String, String>> _trailers | |
| _writer | back to summary |
|---|---|
| private ResponseWriter _writer | |
| _written | back to summary |
|---|---|
| private long _written | |
| ServletContextResponse | back to summary |
|---|---|
| public ServletContextResponse(ServletChannel servletChannel, ServletContextRequest request, Response response) | |
| closeOutput | back to summary |
|---|---|
| public void closeOutput() throws IOException | |
| completeOutput | back to summary |
|---|---|
| public void completeOutput(Callback callback) | |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Implements org.
| |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding(boolean setContentType) Implements org.
| |
| getContentBytesWritten | back to summary |
|---|---|
| pack-priv long getContentBytesWritten() Returns the number of bytes written via this class The number of bytes written to the network may be different.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() | |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements org.
| |
| getEncodingFrom | back to summary |
|---|---|
| public ServletContextResponse. Implements org.
| |
| getHeaders | back to summary |
|---|---|
| public HttpFields. Overrides org. Implements org.
| |
| getHttpOutput | back to summary |
|---|---|
| public HttpOutput getHttpOutput() | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements org.
| |
| getMimeType | back to summary |
|---|---|
| protected MimeTypes. | |
| getOutputType | back to summary |
|---|---|
| public ServletContextResponse. Implements org.
| |
| getRawCharacterEncoding | back to summary |
|---|---|
| public String getRawCharacterEncoding() Get the raw value of the Character Encoding field. This is only the value as set, not from any other discovered source (eg: mimetypes, Content-Type, ServletContext, etc)
| |
| getResponse | back to summary |
|---|---|
| public Response getResponse() Implements org.
| |
| getServletApiResponse | back to summary |
|---|---|
| public ServletApiResponse getServletApiResponse() | |
| getServletContextRequest | back to summary |
|---|---|
| protected ServletContextRequest getServletContextRequest() | |
| getServletContextResponse | back to summary |
|---|---|
| public static ServletContextResponse getServletContextResponse(ServletResponse response) | |
| getServletRequestState | back to summary |
|---|---|
| public ServletChannelState getServletRequestState() | |
| getTrailers | back to summary |
|---|---|
| public Supplier Implements org.
| |
| getWriter | back to summary |
|---|---|
| public ResponseWriter getWriter() Implements org.
| |
| included | back to summary |
|---|---|
| public void included() | |
| isAllContentWritten | back to summary |
|---|---|
| public boolean isAllContentWritten(long written) | |
| isContentIncomplete | back to summary |
|---|---|
| public boolean isContentIncomplete(long written) | |
| isStreaming | back to summary |
|---|---|
| public boolean isStreaming() | |
| isWriting | back to summary |
|---|---|
| public boolean isWriting() Implements org.
| |
| isWritingOrStreaming | back to summary |
|---|---|
| public boolean isWritingOrStreaming() | |
| newServletApiResponse | back to summary |
|---|---|
| protected ServletApiResponse newServletApiResponse() | |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. Doc from org. Resets this response, clearing the HTTP status code, HTTP headers and HTTP trailers.
| |
| resetContent | back to summary |
|---|---|
| public void resetContent() | |
| resetForForward | back to summary |
|---|---|
| public void resetForForward() | |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String encoding, ServletContextResponse. Implements org. Update the Content-Type, MimeType, and headers from the provided Character Encoding and EncodingFrom.
| |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(int len) | |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(long len) | |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale locale) Implements org.
| |
| setOutputType | back to summary |
|---|---|
| public void setOutputType(ServletContextResponse. Implements org.
| |
| setTrailers | back to summary |
|---|---|
| public void setTrailers(Supplier<Map<String, String>> trailers) Implements org.
| |
| setWriter | back to summary |
|---|---|
| public void setWriter(ResponseWriter writer) Implements org.
| |
| write | back to summary |
|---|---|
| public void write(boolean last, ByteBuffer content, Callback callback) Overrides org. Implements org. Doc from org. Writes the given Implementations guarantee that calls to this method are safely reentrant so that
stack overflows are avoided in the case of mutual recursion between the execution of
the The invocation of the passed Thus a
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletContextResponse. | DEFAULT
Using the default character encoding from the context otherwise iso-8859-1. |
| public static final ServletContextResponse. | INFERRED
Character encoding was inferred from the Content-Type and will be added as a parameter to the Content-Type. |
| public static final ServletContextResponse. | NOT_SET
Character encoding was not set, or the encoding was cleared with |
| public static final ServletContextResponse. | SET_CHARACTER_ENCODING
The character encoding has been explicitly set using |
| public static final ServletContextResponse. | SET_CONTENT_TYPE
The character encoding has been explicitly set using the Content-Type charset parameter with |
| public static final ServletContextResponse. | SET_LOCALE
The default character encoding of the locale was used after a call to |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletContextResponse. | |
| public static ServletContextResponse. |
| DEFAULT | back to summary |
|---|---|
| public static final ServletContextResponse. Using the default character encoding from the context otherwise iso-8859-1. | |
| INFERRED | back to summary |
|---|---|
| public static final ServletContextResponse. Character encoding was inferred from the Content-Type and will be added as a parameter to the Content-Type. | |
| NOT_SET | back to summary |
|---|---|
| public static final ServletContextResponse. Character encoding was not set, or the encoding was cleared with | |
| SET_CHARACTER_ENCODING | back to summary |
|---|---|
| public static final ServletContextResponse. The character encoding has been explicitly set using | |
| SET_CONTENT_TYPE | back to summary |
|---|---|
| public static final ServletContextResponse. The character encoding has been explicitly set using the Content-Type charset parameter with | |
| SET_LOCALE | back to summary |
|---|---|
| public static final ServletContextResponse. The default character encoding of the locale was used after a call to | |
| EncodingFrom | back to summary |
|---|---|
| private EncodingFrom() | |
| valueOf | back to summary |
|---|---|
| public static ServletContextResponse. | |
| values | back to summary |
|---|---|
| public static ServletContextResponse. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpField | onAddField(HttpField
The field being added. field)Overrides org. |
| public boolean | onRemoveField(HttpField
The field being removed. field)Overrides org. |
| public HttpField | onReplaceField(HttpField oldField, HttpField newField)
Overrides org. |
| private HttpField | |
| private HttpField |
| HttpFieldsWrapper | back to summary |
|---|---|
| public HttpFieldsWrapper(HttpFields. | |
| onAddField | back to summary |
|---|---|
| public HttpField onAddField(HttpField field) Overrides org. Doc from org. Called when a field is added (including as part of a put). | |
| onRemoveField | back to summary |
|---|---|
| public boolean onRemoveField(HttpField field) Overrides org. Doc from org. Called when a field is removed (including as part of a put). | |
| onReplaceField | back to summary |
|---|---|
| public HttpField onReplaceField(HttpField oldField, HttpField newField) Overrides org.
| |
| setContentLength | back to summary |
|---|---|
| private HttpField setContentLength(HttpField field) | |
| setContentType | back to summary |
|---|---|
| private HttpField setContentType(HttpField field) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletContextResponse. | |
| public static final ServletContextResponse. | |
| public static final ServletContextResponse. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletContextResponse. | |
| public static ServletContextResponse. |
| NONE | back to summary |
|---|---|
| public static final ServletContextResponse. | |
| STREAM | back to summary |
|---|---|
| public static final ServletContextResponse. | |
| WRITER | back to summary |
|---|---|
| public static final ServletContextResponse. | |
| OutputType | back to summary |
|---|---|
| private OutputType() | |
| valueOf | back to summary |
|---|---|
| public static ServletContextResponse. | |
| values | back to summary |
|---|---|
| public static ServletContextResponse. | |