org.hippoecm.hst.core.component
Class HstServletResponseState
java.lang.Object
org.hippoecm.hst.core.component.AbstractHstResponseState
org.hippoecm.hst.core.component.HstServletResponseState
- All Implemented Interfaces:
- HstResponseState
public class HstServletResponseState
- extends AbstractHstResponseState
Temporarily holds the current state of a HST response
Field Summary |
protected javax.servlet.http.HttpServletResponse |
response
|
Fields inherited from class org.hippoecm.hst.core.component.AbstractHstResponseState |
addedHeaders, byteOutputBuffer, characterEncoding, charOutputBuffer, closed, committed, contentLength, contentType, cookies, defaultLocale, errorCode, errorMessage, flushed, hasError, hasStatus, headElements, isActionResponse, isMimeResponse, isRenderResponse, isResourceResponse, isStateAwareResponse, locale, outputStream, preambleNodes, printWriter, setContentTypeAfterEncoding, setHeaders, statusCode, wrapperElement |
Constructor Summary |
HstServletResponseState(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class org.hippoecm.hst.core.component.AbstractHstResponseState |
addCookie, addDateHeader, addHeadElement, addHeader, addIntHeader, addPreambleNode, clear, containsHeadElement, containsHeader, createComment, failIfCommitted, flush, flushBuffer, forward, getAddedHeaderList, getBufferSize, getCharacterEncoding, getContentType, getErrorCode, getErrorMessage, getForwardPathInfo, getHeadElements, getLocale, getOutputStream, getRedirectLocation, getSetHeaderList, getWrapperElement, getWriter, isActionResponse, isCommitted, isMimeResponse, isRenderResponse, isResourceResponse, isStateAwareResponse, reset, resetBuffer, sendError, sendError, sendRedirect, setBufferSize, setCharacterEncoding, setContentLength, setContentType, setDateHeader, setHeader, setIntHeader, setLocale, setStatus, setStatus, setWrapperElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
response
protected javax.servlet.http.HttpServletResponse response
HstServletResponseState
public HstServletResponseState(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
createElement
public Element createElement(String tagName)
setResponseLocale
protected void setResponseLocale(Locale locale)
- Specified by:
setResponseLocale
in class AbstractHstResponseState
addResponseCookie
protected void addResponseCookie(javax.servlet.http.Cookie cookie)
- Specified by:
addResponseCookie
in class AbstractHstResponseState
setResponseCharacterEncoding
protected void setResponseCharacterEncoding(String characterEncoding)
- Specified by:
setResponseCharacterEncoding
in class AbstractHstResponseState
setResponseContentType
protected void setResponseContentType(String contentType)
- Specified by:
setResponseContentType
in class AbstractHstResponseState
addResponseHeader
protected void addResponseHeader(String name,
String value)
- Specified by:
addResponseHeader
in class AbstractHstResponseState
setResponseHeader
protected void setResponseHeader(String name,
String value)
- Specified by:
setResponseHeader
in class AbstractHstResponseState
addResponseHeadElement
protected void addResponseHeadElement(Element element,
String keyHint)
- Specified by:
addResponseHeadElement
in class AbstractHstResponseState
setResponseStatus
protected void setResponseStatus(int status)
- Specified by:
setResponseStatus
in class AbstractHstResponseState
setResponseContentLength
protected void setResponseContentLength(int len)
- Specified by:
setResponseContentLength
in class AbstractHstResponseState
getResponseOutputStream
protected OutputStream getResponseOutputStream()
throws IOException
- Specified by:
getResponseOutputStream
in class AbstractHstResponseState
- Throws:
IOException
getResponseWriter
protected PrintWriter getResponseWriter()
throws IOException
- Specified by:
getResponseWriter
in class AbstractHstResponseState
- Throws:
IOException
Copyright © 2008-2012 Hippo. All Rights Reserved.