public interface HstResponseState
HttpServletResponse
to keep the contents buffered.Modifier and Type | Method and Description |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie) |
void |
addDateHeader(String name,
long date) |
void |
addEpilogueNode(Comment comment) |
void |
addHeadElement(Element element,
String keyHint) |
void |
addHeader(String name,
String value) |
void |
addIntHeader(String name,
int value) |
void |
addPreambleNode(Comment comment) |
void |
addPreambleNode(Element element)
Preamble
Node s are written before the rest of the content of this HstResponseState . |
void |
addProcessedHeadElement(Element headElement) |
void |
clear() |
boolean |
containsHeadElement(String keyHint) |
boolean |
containsHeader(String name) |
Comment |
createComment(String comment) |
Element |
createElement(String tagName) |
void |
flush()
* Flushes the
HstResponseState including the message body (response content) |
void |
flush(boolean skipMessageBody)
Flushes the
HstResponseState but depending on skipMessageBody skips writing the actual response
message body |
void |
flush(Writer writer)
Flushes the
HstResponseState to writer including the message body (response content) |
void |
flush(Writer writer,
boolean skipMessageBody)
Flushes the
HstResponseState to writer but depending on skipMessageBody skips writing
the actual response
message body |
void |
flushBuffer() |
void |
forward(String pathInfo) |
int |
getBufferSize() |
String |
getCharacterEncoding() |
String |
getContentType() |
int |
getErrorCode() |
String |
getErrorMessage() |
String |
getForwardPathInfo() |
List<Element> |
getHeadElements() |
Locale |
getLocale() |
javax.servlet.ServletOutputStream |
getOutputStream() |
String |
getRedirectLocation() |
int |
getStatus() |
Element |
getWrapperElement() |
PrintWriter |
getWriter() |
boolean |
isActionResponse() |
boolean |
isCommitted() |
boolean |
isFlushed() |
boolean |
isMimeResponse() |
boolean |
isRenderResponse() |
boolean |
isResourceResponse() |
boolean |
isStateAwareResponse() |
void |
reset() |
void |
resetBuffer() |
void |
sendError(int errorCode) |
void |
sendError(int errorCode,
String errorMessage) |
void |
sendRedirect(String redirectLocation) |
void |
setBufferSize(int size) |
void |
setCharacterEncoding(String charset) |
void |
setContentLength(int len) |
void |
setContentType(String type) |
void |
setDateHeader(String name,
long date) |
void |
setHeader(String name,
String value) |
void |
setIntHeader(String name,
int value) |
void |
setLocale(Locale locale) |
void |
setStatus(int statusCode) |
void |
setStatus(int statusCode,
String message) |
void |
setWrapperElement(Element element) |
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
HstResponseState
including the message body (response content)IOException
void flush(Writer writer) throws IOException
HstResponseState
to writer
including the message body (response content)writer
- IOException
void flush(boolean skipMessageBody) throws IOException
HstResponseState
but depending on skipMessageBody
skips writing the actual response
message bodyskipMessageBody
- IOException
void flush(Writer writer, boolean skipMessageBody) throws IOException
HstResponseState
to writer
but depending on skipMessageBody
skips writing
the actual response
message bodywriter
- skipMessageBody
- IOException
boolean isFlushed()
Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.