Class MimeResponseImpl

    • Field Detail

      • bufferSize

        protected int bufferSize
        Not really used but we need it to memorize what the client set optionally.
    • Constructor Detail

      • MimeResponseImpl

        public MimeResponseImpl​(org.gatein.pc.api.invocation.PortletInvocation invocation,
                                PortletRequestImpl preq)
    • Method Detail

      • createResponse

        protected abstract org.gatein.pc.api.invocation.response.ContentResponse createResponse​(org.gatein.pc.api.invocation.response.ResponseProperties props,
                                                                                                Map<String,​Object> attrs,
                                                                                                String contentType,
                                                                                                byte[] bytes,
                                                                                                org.gatein.pc.api.cache.CacheControl cacheControl)
      • createResponse

        protected abstract org.gatein.pc.api.invocation.response.ContentResponse createResponse​(org.gatein.pc.api.invocation.response.ResponseProperties props,
                                                                                                Map<String,​Object> attrs,
                                                                                                String contentType,
                                                                                                String chars,
                                                                                                org.gatein.pc.api.cache.CacheControl cacheControl)
      • createResponse

        protected abstract org.gatein.pc.api.invocation.response.ContentResponse createResponse​(org.gatein.pc.api.invocation.response.ResponseProperties props,
                                                                                                Map<String,​Object> attrs,
                                                                                                String contentType,
                                                                                                org.gatein.pc.api.cache.CacheControl cacheControl)
      • getResponse

        public org.gatein.pc.api.invocation.response.PortletInvocationResponse getResponse()
        Specified by:
        getResponse in class PortletResponseImpl
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface javax.portlet.MimeResponse
      • setContentType

        public void setContentType​(String contentType)
        Specified by:
        setContentType in interface javax.portlet.MimeResponse
      • getPortletOutputStream

        public OutputStream getPortletOutputStream()
                                            throws IOException
        Specified by:
        getPortletOutputStream in interface javax.portlet.MimeResponse
        Throws:
        IOException
      • createRenderURL

        public javax.portlet.PortletURL createRenderURL()
        Specified by:
        createRenderURL in interface javax.portlet.MimeResponse
      • createActionURL

        public javax.portlet.PortletURL createActionURL()
        Specified by:
        createActionURL in interface javax.portlet.MimeResponse
      • getLocale

        public Locale getLocale()
        Specified by:
        getLocale in interface javax.portlet.MimeResponse
      • setBufferSize

        public void setBufferSize​(int bufferSize)
        Specified by:
        setBufferSize in interface javax.portlet.MimeResponse
      • getBufferSize

        public int getBufferSize()
        Specified by:
        getBufferSize in interface javax.portlet.MimeResponse
      • flushBuffer

        public void flushBuffer()
                         throws IOException
        Specified by:
        flushBuffer in interface javax.portlet.MimeResponse
        Throws:
        IOException
      • resetBuffer

        public void resetBuffer()
        Specified by:
        resetBuffer in interface javax.portlet.MimeResponse
      • reset

        public void reset()
        Specified by:
        reset in interface javax.portlet.MimeResponse
      • isCommitted

        public boolean isCommitted()
        Specified by:
        isCommitted in interface javax.portlet.MimeResponse
      • createResourceURL

        public javax.portlet.ResourceURL createResourceURL()
        Specified by:
        createResourceURL in interface javax.portlet.MimeResponse
      • getCacheControl

        public javax.portlet.CacheControl getCacheControl()
        Specified by:
        getCacheControl in interface javax.portlet.MimeResponse