Home » sitemesh-2.4.1 » com.opensymphony.module » sitemesh » filter » [javadoc | source]
public final class: PageResponseWrapper [javadoc | source]

All Implemented Interfaces:
    HttpServletResponse, ServletResponse

Implementation of HttpServletResponseWrapper that captures page data instead of sending to the writer.

Should be used in filter-chains or when forwarding/including pages using a RequestDispatcher.

 public PageResponseWrapper(HttpServletResponse response,
    Factory factory) 
Method from com.opensymphony.module.sitemesh.filter.PageResponseWrapper Summary:
addHeader,   getOutputStream,   getPage,   getWriter,   isUsingStream,   sendError,   sendError,   sendRedirect,   setContentLength,   setContentType,   setHeader,   setStatus
Methods from javax.servlet.http.HttpServletResponseWrapper:
addCookie,   addDateHeader,   addHeader,   addIntHeader,   containsHeader,   encodeRedirectURL,   encodeRedirectUrl,   encodeURL,   encodeUrl,   sendError,   sendError,   sendRedirect,   setDateHeader,   setHeader,   setIntHeader,   setStatus,   setStatus
Methods from javax.servlet.ServletResponseWrapper:
flushBuffer,   getBufferSize,   getCharacterEncoding,   getContentType,   getLocale,   getOutputStream,   getResponse,   getWriter,   isCommitted,   reset,   resetBuffer,   setBufferSize,   setCharacterEncoding,   setContentLength,   setContentType,   setLocale,   setResponse
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.filter.PageResponseWrapper Detail:
 public  void addHeader(String name,
    String value) 
    Prevent content-length being set if page is parseable.
 public ServletOutputStream getOutputStream() 
 public Page getPage() throws IOException 
 public PrintWriter getWriter() 
 public boolean isUsingStream() 
 public  void sendError(int sc) throws IOException 
 public  void sendError(int sc,
    String msg) throws IOException 
 public  void sendRedirect(String location) throws IOException 
 public  void setContentLength(int contentLength) 
    Prevent content-length being set if page is parseable.
 public  void setContentType(String type) 
 public  void setHeader(String name,
    String value) 
    Prevent content-length being set if page is parseable.
 public  void setStatus(int sc) 
    Prevent 'not modified' (304) HTTP status from being sent if page is parseable (so web-server/browser doesn't cache contents).