Class MockMimeResponse

Object
com.liferay.portal.kernel.test.portlet.MockPortletResponse
com.liferay.portal.kernel.test.portlet.MockMimeResponse
All Implemented Interfaces:
jakarta.portlet.MimeResponse, jakarta.portlet.PortletResponse
Direct Known Subclasses:
MockRenderResponse

public class MockMimeResponse extends MockPortletResponse implements jakarta.portlet.MimeResponse
Author:
Dante Wang
  • Constructor Details

    • MockMimeResponse

      public MockMimeResponse()
    • MockMimeResponse

      public MockMimeResponse(jakarta.portlet.PortalContext portalContext)
    • MockMimeResponse

      public MockMimeResponse(jakarta.portlet.PortalContext portalContext, jakarta.portlet.PortletRequest portletRequest)
  • Method Details

    • createActionURL

      public <T extends jakarta.portlet.PortletURL & jakarta.portlet.ActionURL> T createActionURL()
      Specified by:
      createActionURL in interface jakarta.portlet.MimeResponse
    • createActionURL

      public jakarta.portlet.ActionURL createActionURL(jakarta.portlet.MimeResponse.Copy copy)
      Specified by:
      createActionURL in interface jakarta.portlet.MimeResponse
    • createRenderURL

      public <T extends jakarta.portlet.PortletURL & jakarta.portlet.RenderURL> T createRenderURL()
      Specified by:
      createRenderURL in interface jakarta.portlet.MimeResponse
    • createRenderURL

      public jakarta.portlet.RenderURL createRenderURL(jakarta.portlet.MimeResponse.Copy copy)
      Specified by:
      createRenderURL in interface jakarta.portlet.MimeResponse
    • createResourceURL

      public jakarta.portlet.ResourceURL createResourceURL()
      Specified by:
      createResourceURL in interface jakarta.portlet.MimeResponse
    • flushBuffer

      public void flushBuffer()
      Specified by:
      flushBuffer in interface jakarta.portlet.MimeResponse
    • getBufferSize

      public int getBufferSize()
      Specified by:
      getBufferSize in interface jakarta.portlet.MimeResponse
    • getCacheControl

      public jakarta.portlet.CacheControl getCacheControl()
      Specified by:
      getCacheControl in interface jakarta.portlet.MimeResponse
    • getCharacterEncoding

      public String getCharacterEncoding()
      Specified by:
      getCharacterEncoding in interface jakarta.portlet.MimeResponse
    • getContentAsByteArray

      public byte[] getContentAsByteArray()
    • getContentAsString

      public String getContentAsString() throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface jakarta.portlet.MimeResponse
    • getForwardedUrl

      public String getForwardedUrl()
    • getIncludedUrl

      public String getIncludedUrl()
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface jakarta.portlet.MimeResponse
    • getPortletOutputStream

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

      public PrintWriter getWriter() throws UnsupportedEncodingException
      Specified by:
      getWriter in interface jakarta.portlet.MimeResponse
      Throws:
      UnsupportedEncodingException
    • isCommitted

      public boolean isCommitted()
      Specified by:
      isCommitted in interface jakarta.portlet.MimeResponse
    • reset

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

      public void resetBuffer()
      Specified by:
      resetBuffer in interface jakarta.portlet.MimeResponse
    • setBufferSize

      public void setBufferSize(int bufferSize)
      Specified by:
      setBufferSize in interface jakarta.portlet.MimeResponse
    • setCharacterEncoding

      public void setCharacterEncoding(String characterEncoding)
    • setCommitted

      public void setCommitted(boolean committed)
    • setContentType

      public void setContentType(String contentType)
      Specified by:
      setContentType in interface jakarta.portlet.MimeResponse
    • setForwardedUrl

      public void setForwardedUrl(String forwardedUrl)
    • setIncludedUrl

      public void setIncludedUrl(String includedUrl)
    • setLocale

      public void setLocale(Locale locale)