public interface HstResponseState
HttpServletResponse
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)
int getStatus()
setStatus(int)
and 0 if not setvoid 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 addProcessedHeadElement(Element headElement)
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 addEpilogueNode(Comment comment)
void setWrapperElement(Element element)
Element getWrapperElement()
void clear()
void flush() throws IOException
IOException
void flush(Writer writer) throws IOException
IOException
boolean isFlushed()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.