Class BufferedResponse

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScriptResponse, org.springframework.extensions.webscripts.WrappingWebScriptResponse

    public class BufferedResponse
    extends java.lang.Object
    implements org.springframework.extensions.webscripts.WrappingWebScriptResponse
    Transactional Buffered Response
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.commons.logging.Log logger  
      • Fields inherited from interface org.springframework.extensions.webscripts.WebScriptResponse

        ATOM_FORMAT, HEADER_LOCATION, HTML_FORMAT, JSON_FORMAT, OPENSEARCH_DESCRIPTION_FORMAT, RSS_FORMAT, XML_FORMAT
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferedResponse​(org.springframework.extensions.webscripts.WebScriptResponse res, int bufferSize, org.apache.chemistry.opencmis.server.shared.TempStoreOutputStreamFactory streamFactory)
      Construct
    • Field Detail

      • logger

        protected static final org.apache.commons.logging.Log logger
    • Constructor Detail

      • BufferedResponse

        public BufferedResponse​(org.springframework.extensions.webscripts.WebScriptResponse res,
                                int bufferSize,
                                org.apache.chemistry.opencmis.server.shared.TempStoreOutputStreamFactory streamFactory)
        Construct
        Parameters:
        res - WebScriptResponse
        bufferSize - int
    • Method Detail

      • getNext

        public org.springframework.extensions.webscripts.WebScriptResponse getNext()
        Specified by:
        getNext in interface org.springframework.extensions.webscripts.WrappingWebScriptResponse
      • addHeader

        public void addHeader​(java.lang.String name,
                              java.lang.String value)
        Specified by:
        addHeader in interface org.springframework.extensions.webscripts.WebScriptResponse
      • encodeScriptUrl

        public java.lang.String encodeScriptUrl​(java.lang.String url)
        Specified by:
        encodeScriptUrl in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getEncodeScriptUrlFunction

        public java.lang.String getEncodeScriptUrlFunction​(java.lang.String name)
        Specified by:
        getEncodeScriptUrlFunction in interface org.springframework.extensions.webscripts.WebScriptResponse
      • encodeResourceUrl

        public java.lang.String encodeResourceUrl​(java.lang.String url)
        Specified by:
        encodeResourceUrl in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getEncodeResourceUrlFunction

        public java.lang.String getEncodeResourceUrlFunction​(java.lang.String name)
        Specified by:
        getEncodeResourceUrlFunction in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        Specified by:
        getOutputStream in interface org.springframework.extensions.webscripts.WebScriptResponse
        Throws:
        java.io.IOException
      • getRuntime

        public org.springframework.extensions.webscripts.Runtime getRuntime()
        Specified by:
        getRuntime in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getWriter

        public java.io.Writer getWriter()
                                 throws java.io.IOException
        Specified by:
        getWriter in interface org.springframework.extensions.webscripts.WebScriptResponse
        Throws:
        java.io.IOException
      • reset

        public void reset()
        Specified by:
        reset in interface org.springframework.extensions.webscripts.WebScriptResponse
      • reset

        public void reset​(java.lang.String preserveHeadersPattern)
        Specified by:
        reset in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setCache

        public void setCache​(org.springframework.extensions.webscripts.Cache cache)
        Specified by:
        setCache in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setContentType

        public void setContentType​(java.lang.String contentType)
        Specified by:
        setContentType in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setContentEncoding

        public void setContentEncoding​(java.lang.String contentEncoding)
        Specified by:
        setContentEncoding in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setHeader

        public void setHeader​(java.lang.String name,
                              java.lang.String value)
        Specified by:
        setHeader in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setStatus

        public void setStatus​(int status)
        Specified by:
        setStatus in interface org.springframework.extensions.webscripts.WebScriptResponse
      • writeResponse

        public void writeResponse()
        Write buffered response to underlying response