public interface HstResponseState
HttpServletResponse
or PortletResponse
to keep the contents buffered.boolean isActionResponse()
boolean isRenderResponse()
boolean isResourceResponse()
boolean isMimeResponse()
boolean isStateAwareResponse()
void addCookie(javax.servlet.http.Cookie cookie)
void addDateHeader(String name, long date)
void addIntHeader(String name, int value)
boolean containsHeader(String name)
void sendError(int errorCode, String errorMessage) throws IOException
IOException
void sendError(int errorCode) throws IOException
IOException
int getErrorCode()
String getErrorMessage()
void sendRedirect(String redirectLocation) throws IOException
IOException
String getRedirectLocation()
void forward(String pathInfo) throws IOException
IOException
String getForwardPathInfo()
void setDateHeader(String name, long date)
void setIntHeader(String name, int value)
void setStatus(int statusCode, String message)
void setStatus(int statusCode)
void flushBuffer() throws IOException
IOException
int getBufferSize()
String getCharacterEncoding()
String getContentType()
Locale getLocale()
javax.servlet.ServletOutputStream getOutputStream() throws IOException
IOException
PrintWriter getWriter() throws IOException
IOException
boolean isCommitted()
void reset()
void resetBuffer()
void setBufferSize(int size)
void setCharacterEncoding(String charset)
void setContentLength(int len)
void setContentType(String type)
void setLocale(Locale locale)
boolean containsHeadElement(String keyHint)
void addPreambleNode(Comment comment)
void addPreambleNode(Element element)
Node
s are written before the rest of the content of this HstResponseState
. Note that
from this element
only the attributes and text of the element
are printed, and *not*
any descendant @link org.w3c.dom.Node}s of element
element
- the element that is a preamblevoid setWrapperElement(Element element)
Element getWrapperElement()
void clear()
void flush() throws IOException
IOException
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.