org.hippoecm.hst.core.component
Class HstServletResponseState

java.lang.Object
  extended by org.hippoecm.hst.core.component.AbstractHstResponseState
      extended by 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)
           
 
Method Summary
protected  void addResponseCookie(javax.servlet.http.Cookie cookie)
           
protected  void addResponseHeadElement(Element element, String keyHint)
           
protected  void addResponseHeader(String name, String value)
           
 Element createElement(String tagName)
           
protected  OutputStream getResponseOutputStream()
           
protected  PrintWriter getResponseWriter()
           
protected  void setResponseCharacterEncoding(String characterEncoding)
           
protected  void setResponseContentLength(int len)
           
protected  void setResponseContentType(String contentType)
           
protected  void setResponseHeader(String name, String value)
           
protected  void setResponseLocale(Locale locale)
           
protected  void setResponseStatus(int status)
           
 
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
 

Field Detail

response

protected javax.servlet.http.HttpServletResponse response
Constructor Detail

HstServletResponseState

public HstServletResponseState(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
Method Detail

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.