Class MimeResponseImpl

java.lang.Object
org.gatein.pc.portlet.impl.jsr168.api.PortletResponseImpl
org.gatein.pc.portlet.impl.jsr168.api.MimeResponseImpl
All Implemented Interfaces:
javax.portlet.MimeResponse, javax.portlet.PortletResponse
Direct Known Subclasses:
RenderResponseImpl, ResourceResponseImpl

public abstract class MimeResponseImpl extends PortletResponseImpl implements javax.portlet.MimeResponse
  • Field Details

    • bufferSize

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

      protected CacheControlImpl cacheControl
      The cache control.
  • Constructor Details

    • MimeResponseImpl

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

    • 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
    • getWriter

      public PrintWriter getWriter() throws IOException
      Specified by:
      getWriter in interface javax.portlet.MimeResponse
      Throws:
      IOException
    • 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
    • addProperty

      public void addProperty(String key, String value) throws IllegalArgumentException
      Specified by:
      addProperty in interface javax.portlet.PortletResponse
      Overrides:
      addProperty in class PortletResponseImpl
      Throws:
      IllegalArgumentException
    • setProperty

      public void setProperty(String key, String value) throws IllegalArgumentException
      Specified by:
      setProperty in interface javax.portlet.PortletResponse
      Overrides:
      setProperty in class PortletResponseImpl
      Throws:
      IllegalArgumentException
    • getCacheControl

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