javax.servlet.http
public class HttpServletResponseWrapper extends ServletResponseWrapper implements HttpServletResponse
Since: Servlet 2.3
Version: $Revision: 1.6 $ $Date: 2005/04/07 09:15:28 $
| Constructor Summary | |
|---|---|
| HttpServletResponseWrapper(HttpServletResponse response)
Constructs a response adaptor wrapping the given response. | |
| Method Summary | |
|---|---|
| void | addCookie(Cookie cookie)
The default behavior of this method is to call addCookie(Cookie cookie)
on the wrapped response object. |
| void | addDateHeader(String name, long date)
The default behavior of this method is to call addDateHeader(String name, long date)
on the wrapped response object. |
| void | addHeader(String name, String value)
The default behavior of this method is to return addHeader(String name, String value)
on the wrapped response object. |
| void | addIntHeader(String name, int value)
The default behavior of this method is to call addIntHeader(String name, int value)
on the wrapped response object. |
| boolean | containsHeader(String name)
The default behavior of this method is to call containsHeader(String name)
on the wrapped response object. |
| String | encodeRedirectUrl(String url)
The default behavior of this method is to return encodeRedirectUrl(String url)
on the wrapped response object. |
| String | encodeRedirectURL(String url)
The default behavior of this method is to return encodeRedirectURL(String url)
on the wrapped response object. |
| String | encodeUrl(String url)
The default behavior of this method is to call encodeUrl(String url)
on the wrapped response object. |
| String | encodeURL(String url)
The default behavior of this method is to call encodeURL(String url)
on the wrapped response object. |
| void | sendError(int sc, String msg)
The default behavior of this method is to call sendError(int sc, String msg)
on the wrapped response object. |
| void | sendError(int sc)
The default behavior of this method is to call sendError(int sc)
on the wrapped response object. |
| void | sendRedirect(String location)
The default behavior of this method is to return sendRedirect(String location)
on the wrapped response object. |
| void | setDateHeader(String name, long date)
The default behavior of this method is to call setDateHeader(String name, long date)
on the wrapped response object. |
| void | setHeader(String name, String value)
The default behavior of this method is to return setHeader(String name, String value)
on the wrapped response object. |
| void | setIntHeader(String name, int value)
The default behavior of this method is to call setIntHeader(String name, int value)
on the wrapped response object. |
| void | setStatus(int sc)
The default behavior of this method is to call setStatus(int sc)
on the wrapped response object. |
| void | setStatus(int sc, String sm)
The default behavior of this method is to call setStatus(int sc, String sm)
on the wrapped response object. |
Throws: java.lang.IllegalArgumentException if the response is null