Located in compilation unit of jakarta.
Deprecated
for removal since Servlet 6.0.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final ResourceBundle | |
| private NoBodyOutputStream | noBody
Deprecated
as a consequence of
NoBodyOutputStream being deprecated.
|
| private boolean | |
| private PrintWriter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHeader(String
the name of the header name, String the additional header value If it contains octet string, it should be encoded according to RFC 2047
(http://www.ietf.org/rfc/rfc2047.txt) value)Overrides jakarta. Implements jakarta. |
| public void | addIntHeader(String
the name of the header name, int the assigned integer value value)Overrides jakarta. Implements jakarta. |
| private void | |
| public ServletOutputStream | getOutputStream()
Overrides jakarta. Implements jakarta. ServletOutputStream suitable for writing binary data in the response.
|
| public PrintWriter | getWriter()
Overrides jakarta. Implements jakarta. PrintWriter object that can send character text to the client.
|
| public void | reset()
Overrides jakarta. Implements jakarta. |
| public void | resetBuffer()
Overrides jakarta. Implements jakarta. |
| pack-priv void | |
| public void | setContentLength(int
an integer specifying the length of the content being returned to the client; sets the Content-Length
header len)Overrides jakarta. Implements jakarta. |
| public void | setContentLengthLong(long
a long specifying the length of the content being returned to the client; sets the Content-Length header len)Overrides jakarta. Implements jakarta. |
| public void | setHeader(String
the name of the header name, String the header value If it contains octet string, it should be encoded according to RFC 2047
(http://www.ietf.org/rfc/rfc2047.txt) value)Overrides jakarta. Implements jakarta. |
| public void | setIntHeader(String
the name of the header name, int the assigned integer value value)Overrides jakarta. Implements jakarta. |
| didSetContentLength | back to summary |
|---|---|
| private boolean didSetContentLength | |
| lStrings | back to summary |
|---|---|
| private static final ResourceBundle lStrings | |
| noBody | back to summary |
|---|---|
| private NoBodyOutputStream noBody
Deprecated as a consequence of | |
| usingOutputStream | back to summary |
|---|---|
| private boolean usingOutputStream | |
| writer | back to summary |
|---|---|
| private PrintWriter writer | |
| NoBodyResponse | back to summary |
|---|---|
| pack-priv NoBodyResponse(HttpServletResponse r) | |
| addHeader | back to summary |
|---|---|
| public void addHeader(String name, String value) Overrides jakarta. Implements jakarta. Doc from jakarta. The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object.
| |
| addIntHeader | back to summary |
|---|---|
| public void addIntHeader(String name, int value) Overrides jakarta. Implements jakarta. Doc from jakarta. The default behavior of this method is to call addIntHeader(String name, int value) on the wrapped response object.
| |
| checkHeader | back to summary |
|---|---|
| private void checkHeader(String name) | |
| getOutputStream | back to summary |
|---|---|
| public ServletOutputStream getOutputStream() throws IOException Overrides jakarta. Implements jakarta. Doc from jakarta. Returns a
Calling flush() on the ServletOutputStream commits the response.
Either this method or
| |
| getWriter | back to summary |
|---|---|
| public PrintWriter getWriter() throws UnsupportedEncodingException Overrides jakarta. Implements jakarta. Doc from jakarta. Returns a
Calling flush() on the
Either this method or
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides jakarta. Implements jakarta. Doc from jakarta. Clears any data that exists in the buffer as well as the status code, headers. The state of calling
| |
| resetBuffer | back to summary |
|---|---|
| public void resetBuffer() Overrides jakarta. Implements jakarta. Doc from jakarta. Clears the content of the underlying buffer in the response without clearing headers or status code. If the response
has been committed, this method throws an
| |
| setContentLength | back to summary |
|---|---|
| pack-priv void setContentLength() | |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(int len) Overrides jakarta. Implements jakarta. Doc from jakarta. Sets the length of the content body in the response In HTTP servlets, this method sets the HTTP Content-Length header.
| |
| setContentLengthLong | back to summary |
|---|---|
| public void setContentLengthLong(long len) Overrides jakarta. Implements jakarta. Doc from jakarta. Sets the length of the content body in the response In HTTP servlets, this method sets the HTTP Content-Length header.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(String name, String value) Overrides jakarta. Implements jakarta. Doc from jakarta. The default behavior of this method is to return setHeader(String name, String value) on the wrapped response object.
| |
| setIntHeader | back to summary |
|---|---|
| public void setIntHeader(String name, int value) Overrides jakarta. Implements jakarta. Doc from jakarta. The default behavior of this method is to call setIntHeader(String name, int value) on the wrapped response object.
| |