| java.lang.Object javax.servlet.ServletResponseWrapper javax.servlet.http.HttpServletResponseWrapper
All known Subclasses: org.apache.catalina.ssi.ResponseIncludeWrapper, org.apache.catalina.core.ApplicationHttpResponse, org.apache.jasper.runtime.ServletResponseWrapperInclude,
HttpServletResponseWrapper | public class HttpServletResponseWrapper extends ServletResponseWrapper implements HttpServletResponse(Code) | | Provides a convenient implementation of the HttpServletResponse interface that
can be subclassed by developers wishing to adapt the response from a Servlet.
This class implements the Wrapper or Decorator pattern. Methods default to
calling through to the wrapped response object.
author: Various version: $Version$ since: v 2.3 See Also: javax.servlet.http.HttpServletResponse |
Method Summary | |
public void | addCookie(Cookie cookie) The default behavior of this method is to call addCookie(Cookie cookie)
on the wrapped response object. | public 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. | public 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. | public 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. | public boolean | containsHeader(String name) The default behavior of this method is to call containsHeader(String name)
on the wrapped response object. | public String | encodeRedirectURL(String url) The default behavior of this method is to return encodeRedirectURL(String url)
on the wrapped response object. | public String | encodeRedirectUrl(String url) The default behavior of this method is to return encodeRedirectUrl(String url)
on the wrapped response object. | public String | encodeURL(String url) The default behavior of this method is to call encodeURL(String url)
on the wrapped response object. | public String | encodeUrl(String url) The default behavior of this method is to call encodeUrl(String url)
on the wrapped response object. | public 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. | public void | sendError(int sc) The default behavior of this method is to call sendError(int sc)
on the wrapped response object. | public void | sendRedirect(String location) The default behavior of this method is to return sendRedirect(String location)
on the wrapped response object. | public 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. | public 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. | public 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. | public void | setStatus(int sc) The default behavior of this method is to call setStatus(int sc)
on the wrapped response object. | public 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. |
addCookie | public void addCookie(Cookie cookie)(Code) | | The default behavior of this method is to call addCookie(Cookie cookie)
on the wrapped response object.
|
addDateHeader | public void addDateHeader(String name, long date)(Code) | | The default behavior of this method is to call addDateHeader(String name, long date)
on the wrapped response object.
|
addHeader | public void addHeader(String name, String value)(Code) | | The default behavior of this method is to return addHeader(String name, String value)
on the wrapped response object.
|
addIntHeader | public void addIntHeader(String name, int value)(Code) | | The default behavior of this method is to call addIntHeader(String name, int value)
on the wrapped response object.
|
containsHeader | public boolean containsHeader(String name)(Code) | | The default behavior of this method is to call containsHeader(String name)
on the wrapped response object.
|
encodeRedirectURL | public String encodeRedirectURL(String url)(Code) | | The default behavior of this method is to return encodeRedirectURL(String url)
on the wrapped response object.
|
encodeRedirectUrl | public String encodeRedirectUrl(String url)(Code) | | The default behavior of this method is to return encodeRedirectUrl(String url)
on the wrapped response object.
|
encodeURL | public String encodeURL(String url)(Code) | | The default behavior of this method is to call encodeURL(String url)
on the wrapped response object.
|
encodeUrl | public String encodeUrl(String url)(Code) | | The default behavior of this method is to call encodeUrl(String url)
on the wrapped response object.
|
sendError | public void sendError(int sc, String msg) throws IOException(Code) | | The default behavior of this method is to call sendError(int sc, String msg)
on the wrapped response object.
|
sendError | public void sendError(int sc) throws IOException(Code) | | The default behavior of this method is to call sendError(int sc)
on the wrapped response object.
|
sendRedirect | public void sendRedirect(String location) throws IOException(Code) | | The default behavior of this method is to return sendRedirect(String location)
on the wrapped response object.
|
setDateHeader | public void setDateHeader(String name, long date)(Code) | | The default behavior of this method is to call setDateHeader(String name, long date)
on the wrapped response object.
|
setHeader | public void setHeader(String name, String value)(Code) | | The default behavior of this method is to return setHeader(String name, String value)
on the wrapped response object.
|
setIntHeader | public void setIntHeader(String name, int value)(Code) | | The default behavior of this method is to call setIntHeader(String name, int value)
on the wrapped response object.
|
setStatus | public void setStatus(int sc)(Code) | | The default behavior of this method is to call setStatus(int sc)
on the wrapped response object.
|
setStatus | public void setStatus(int sc, String sm)(Code) | | The default behavior of this method is to call setStatus(int sc, String sm)
on the wrapped response object.
|
|
|