| javax.servlet.http.HttpServletResponseWrapper org.apache.jetspeed.resource.BufferedHttpServletResponse
BufferedHttpServletResponse | public class BufferedHttpServletResponse extends HttpServletResponseWrapper (Code) | |
BufferedHttpServletResponse fully captures all HttpServletResponse interactions to be flushed out later.
This wrapper is specifically written to allow included servlets to set headers, cookies, encoding etc. which isn't allowed by
the servlet specification on included responses.
Call flush(HttpServletResponse) after the include has returned to flush out the buffered data, headers and state.
Note: the only method not fully supported by this buffered version is getCharacterEncoding(). Setting characterEncoding through
setContentType or setLocale on this class won't be reflected in the return value from getCharacterEncoding(), and calling getWriter()
won't set it either although calling setLocale, setContentType or setCharacterEncoding (servlet api 2.4+) after that will be ignored.
But, when this object is flused to a (real) response, the contentType, locale and/or characterEncoding recorded will be set on the
target response then.
author: Ate Douma version: $Id: BufferedHttpServletResponse.java 544024 2007-06-04 00:59:09Z ate $ |
addDateHeader | public void addDateHeader(String name, long date)(Code) | | |
addIntHeader | public void addIntHeader(String name, int value)(Code) | | |
containsHeader | public boolean containsHeader(String name)(Code) | | |
getBufferSize | public int getBufferSize()(Code) | | |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
isCommitted | public boolean isCommitted()(Code) | | |
reset | public void reset()(Code) | | |
resetBuffer | public void resetBuffer()(Code) | | |
setBufferSize | public void setBufferSize(int size)(Code) | | |
setCharacterEncoding | public void setCharacterEncoding(String charset)(Code) | | |
setContentLength | public void setContentLength(int len)(Code) | | |
setDateHeader | public void setDateHeader(String name, long date)(Code) | | |
setIntHeader | public void setIntHeader(String name, int value)(Code) | | |
setStatus | public void setStatus(int statusCode, String message)(Code) | | |
setStatus | public void setStatus(int statusCode)(Code) | | |
|
|