FileDocCategorySizeDatePackage
HttpServletResponseWrapper.javaAPI DocGlassfish v2 API7357Fri May 04 22:34:20 BST 2007javax.servlet.http

HttpServletResponseWrapper

public class HttpServletResponseWrapper extends ServletResponseWrapper implements HttpServletResponse
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
since
v 2.3
see
javax.servlet.http.HttpServletResponse

Fields Summary
Constructors Summary
public HttpServletResponseWrapper(HttpServletResponse response)
Constructs a response adaptor wrapping the given response.

throws
java.lang.IllegalArgumentException if the response is null

	    super(response);
    
Methods Summary
private javax.servlet.http.HttpServletResponse_getHttpServletResponse()

	return (HttpServletResponse) super.getResponse();
    
public voidaddCookie(javax.servlet.http.Cookie cookie)
The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object.

	this._getHttpServletResponse().addCookie(cookie);
    
public voidaddDateHeader(java.lang.String name, long date)
The default behavior of this method is to call addDateHeader(String name, long date) on the wrapped response object.

	this._getHttpServletResponse().addDateHeader(name, date);
    
public voidaddHeader(java.lang.String name, java.lang.String value)
The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object.

	this._getHttpServletResponse().addHeader(name, value);
    
public voidaddIntHeader(java.lang.String name, int value)
The default behavior of this method is to call addIntHeader(String name, int value) on the wrapped response object.

	this._getHttpServletResponse().addIntHeader(name, value);
    
public booleancontainsHeader(java.lang.String name)
The default behavior of this method is to call containsHeader(String name) on the wrapped response object.

	return this._getHttpServletResponse().containsHeader(name);
    
public java.lang.StringencodeRedirectURL(java.lang.String url)
The default behavior of this method is to return encodeRedirectURL(String url) on the wrapped response object.

	return this._getHttpServletResponse().encodeRedirectURL(url);
    
public java.lang.StringencodeRedirectUrl(java.lang.String url)
The default behavior of this method is to return encodeRedirectUrl(String url) on the wrapped response object.

	return this._getHttpServletResponse().encodeRedirectUrl(url);
    
public java.lang.StringencodeURL(java.lang.String url)
The default behavior of this method is to call encodeURL(String url) on the wrapped response object.

	return this._getHttpServletResponse().encodeURL(url);
    
public java.lang.StringencodeUrl(java.lang.String url)
The default behavior of this method is to call encodeUrl(String url) on the wrapped response object.

	return this._getHttpServletResponse().encodeUrl(url);
    
public voidsendError(int sc)
The default behavior of this method is to call sendError(int sc) on the wrapped response object.

	this._getHttpServletResponse().sendError(sc);
    
public voidsendError(int sc, java.lang.String msg)
The default behavior of this method is to call sendError(int sc, String msg) on the wrapped response object.

	this._getHttpServletResponse().sendError(sc, msg);
    
public voidsendRedirect(java.lang.String location)
The default behavior of this method is to return sendRedirect(String location) on the wrapped response object.

	this._getHttpServletResponse().sendRedirect(location);
    
public voidsetDateHeader(java.lang.String name, long date)
The default behavior of this method is to call setDateHeader(String name, long date) on the wrapped response object.

	this._getHttpServletResponse().setDateHeader(name, date);
    
public voidsetHeader(java.lang.String name, java.lang.String value)
The default behavior of this method is to return setHeader(String name, String value) on the wrapped response object.

	this._getHttpServletResponse().setHeader(name, value);
    
public voidsetIntHeader(java.lang.String name, int value)
The default behavior of this method is to call setIntHeader(String name, int value) on the wrapped response object.

	this._getHttpServletResponse().setIntHeader(name, value);
    
public voidsetStatus(int sc)
The default behavior of this method is to call setStatus(int sc) on the wrapped response object.

	this._getHttpServletResponse().setStatus(sc);
    
public voidsetStatus(int sc, java.lang.String sm)
The default behavior of this method is to call setStatus(int sc, String sm) on the wrapped response object.

	this._getHttpServletResponse().setStatus(sc, sm);