jakarta.servlet.http.HttpServletResponse
| Access | Constructor and Description |
|---|---|
| public | HttpServletResponseWrapper(HttpServletResponse
The response to be wrapped response)Constructs a response adaptor wrapping the given response. |
| Modifier and Type | Method and Description |
|---|---|
| private HttpServletResponse | |
| public void | addCookie(Cookie
the Cookie to return to the client cookie)Implements jakarta. The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object. |
| public void | addDateHeader(String
the name of the header to set name, long the additional date value date)Implements jakarta. The default behavior of this method is to call addDateHeader(String name, long date) on the wrapped response object. |
| 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)Implements jakarta. The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object. |
| public void | addIntHeader(String
the name of the header name, int the assigned integer value value)Implements jakarta. The default behavior of this method is to call addIntHeader(String name, int value) on the wrapped response object. |
| public boolean | containsHeader(String
the header name name)Implements jakarta. The default behavior of this method is to call containsHeader(String name) on the wrapped response object. |
| public String | encodeRedirectURL(String
the url to be encoded. url)Implements jakarta. The default behavior of this method is to return encodeRedirectURL(String url) on the wrapped response object. |
| public String | encodeURL(String
the url to be encoded. url)Implements jakarta. The default behavior of this method is to call encodeURL(String url) on the wrapped response object. |
| public String | getHeader(String
Header name to look up name)Implements jakarta. Return the value for the specified header, or |
| public Collection | getHeaderNames()
Implements jakarta. Get the header names set for this HTTP response. |
| public Collection | getHeaders(String
Header name to look up name)Implements jakarta. Return a Collection of all the header values associated with the specified header name. |
| public int | getStatus()
Implements jakarta. Get the HTTP status code for this Response. |
| public Supplier | getTrailerFields()
Overrides default jakarta. Obtain the supplier of the trailer headers. |
| public void | sendError(int
the error status code sc, String the descriptive message msg)Implements jakarta. The default behavior of this method is to call sendError(int sc, String msg) on the wrapped response object. |
| public void | sendError(int
the error status code sc)Implements jakarta. The default behavior of this method is to call sendError(int sc) on the wrapped response object. |
| public void | sendRedirect(String
the redirect location URL (may be absolute or relative) location)Implements jakarta. The default behavior of this method is to call sendRedirect(String location) on the wrapped response object. |
| public void | setDateHeader(String
the name of the header to set name, long the assigned date value date)Implements jakarta. The default behavior of this method is to call setDateHeader(String name, long date) on the wrapped response object. |
| 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)Implements jakarta. The default behavior of this method is to return setHeader(String name, String value) on the wrapped response object. |
| public void | setIntHeader(String
the name of the header name, int the assigned integer value value)Implements jakarta. The default behavior of this method is to call setIntHeader(String name, int value) on the wrapped response object. |
| public void | setStatus(int
the status code sc)Implements jakarta. The default behavior of this method is to call setStatus(int sc) on the wrapped response object. |
| public void | setTrailerFields(Supplier<Map<String, String>>
The supplier for the trailer headers supplier)Overrides default jakarta. Configure the supplier of the trailer headers. |
| HttpServletResponseWrapper | back to summary |
|---|---|
| public HttpServletResponseWrapper(HttpServletResponse response) Constructs a response adaptor wrapping the given response.
| |
| _getHttpServletResponse | back to summary |
|---|---|
| private HttpServletResponse _getHttpServletResponse() | |
| addCookie | back to summary |
|---|---|
| public void addCookie(Cookie cookie) Implements jakarta. The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object.
| |
| addDateHeader | back to summary |
|---|---|
| public void addDateHeader(String name, long date) Implements jakarta. The default behavior of this method is to call addDateHeader(String name, long date) on the wrapped response object.
| |
| addHeader | back to summary |
|---|---|
| public void addHeader(String name, String value) Implements 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) Implements jakarta. The default behavior of this method is to call addIntHeader(String name, int value) on the wrapped response object.
| |
| containsHeader | back to summary |
|---|---|
| public boolean containsHeader(String name) Implements jakarta. The default behavior of this method is to call containsHeader(String name) on the wrapped response object.
| |
| encodeRedirectURL | back to summary |
|---|---|
| public String encodeRedirectURL(String url) Implements jakarta. The default behavior of this method is to return encodeRedirectURL(String url) on the wrapped response object.
| |
| encodeURL | back to summary |
|---|---|
| public String encodeURL(String url) Implements jakarta. The default behavior of this method is to call encodeURL(String url) on the wrapped response object.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) Implements jakarta. Doc from jakarta. Return the value for the specified header, or
The default implementation is to call | |
| getHeaderNames | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Get the header names set for this HTTP response.
The default implementation is to call
| |
| getHeaders | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Return a Collection of all the header values associated with the specified header name.
The default implementation is to call
| |
| getStatus | back to summary |
|---|---|
| public int getStatus() Implements jakarta. Doc from jakarta. Get the HTTP status code for this Response.
The default implementation is to call
| |
| getTrailerFields | back to summary |
|---|---|
| public Supplier Overrides default jakarta. Doc from jakarta. Obtain the supplier of the trailer headers.
The default implementation is to call | |
| sendError | back to summary |
|---|---|
| public void sendError(int sc, String msg) throws IOException Implements jakarta. The default behavior of this method is to call sendError(int sc, String msg) on the wrapped response object.
| |
| sendError | back to summary |
|---|---|
| public void sendError(int sc) throws IOException Implements jakarta. The default behavior of this method is to call sendError(int sc) on the wrapped response object.
| |
| sendRedirect | back to summary |
|---|---|
| public void sendRedirect(String location) throws IOException Implements jakarta. The default behavior of this method is to call sendRedirect(String location) on the wrapped response object.
| |
| setDateHeader | back to summary |
|---|---|
| public void setDateHeader(String name, long date) Implements jakarta. The default behavior of this method is to call setDateHeader(String name, long date) on the wrapped response object.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(String name, String value) Implements 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) Implements jakarta. The default behavior of this method is to call setIntHeader(String name, int value) on the wrapped response object.
| |
| setStatus | back to summary |
|---|---|
| public void setStatus(int sc) Implements jakarta. The default behavior of this method is to call setStatus(int sc) on the wrapped response object.
| |
| setTrailerFields | back to summary |
|---|---|
| public void setTrailerFields(Supplier<Map<String, String>> supplier) Overrides default jakarta. Doc from jakarta. Configure the supplier of the trailer headers. The supplier will be called in the scope of the thread that
completes the response.
The default implementation is to call | |