Class MockLiferayPortletRenderResponse

Object
com.liferay.portal.kernel.test.portlet.MockLiferayPortletRenderResponse
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse, MimeResponse, PortletResponse, RenderResponse

public class MockLiferayPortletRenderResponse extends Object implements com.liferay.portal.kernel.portlet.LiferayPortletResponse, RenderResponse
Author:
Jürgen Kappler
  • Constructor Details

    • MockLiferayPortletRenderResponse

      public MockLiferayPortletRenderResponse()
  • Method Details

    • addDateHeader

      public void addDateHeader(String name, long date)
      Specified by:
      addDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • addHeader

      public void addHeader(String name, String value)
      Specified by:
      addHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • addIntHeader

      public void addIntHeader(String name, int value)
      Specified by:
      addIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • addProperty

      public void addProperty(javax.servlet.http.Cookie cookie)
      Specified by:
      addProperty in interface PortletResponse
    • addProperty

      public void addProperty(String name, Element element)
      Specified by:
      addProperty in interface PortletResponse
    • addProperty

      public void addProperty(String name, String value)
      Specified by:
      addProperty in interface PortletResponse
    • createActionURL

      public <T extends PortletURL & ActionURL> T createActionURL()
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
      Specified by:
      createActionURL in interface MimeResponse
    • createActionURL

      public ActionURL createActionURL(MimeResponse.Copy copy)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
      Specified by:
      createActionURL in interface MimeResponse
    • createActionURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createActionURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createElement

      public Element createElement(String tagName) throws DOMException
      Specified by:
      createElement in interface PortletResponse
      Throws:
      DOMException
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createRenderURL

      public MockLiferayPortletURL createRenderURL()
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
      Specified by:
      createRenderURL in interface MimeResponse
    • createRenderURL

      public RenderURL createRenderURL(MimeResponse.Copy copy)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
      Specified by:
      createRenderURL in interface MimeResponse
    • createRenderURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createRenderURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createResourceURL

      public ResourceURL createResourceURL()
      Specified by:
      createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
      Specified by:
      createResourceURL in interface MimeResponse
    • createResourceURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createResourceURL(String portletName)
      Specified by:
      createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • encodeURL

      public String encodeURL(String url)
      Specified by:
      encodeURL in interface PortletResponse
    • flushBuffer

      public void flushBuffer() throws IOException
      Specified by:
      flushBuffer in interface MimeResponse
      Throws:
      IOException
    • getBufferSize

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

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

      public String getCharacterEncoding()
      Specified by:
      getCharacterEncoding in interface MimeResponse
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface MimeResponse
    • getHttpServletResponse

      public javax.servlet.http.HttpServletResponse getHttpServletResponse()
      Specified by:
      getHttpServletResponse in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getLifecycle

      public String getLifecycle()
      Specified by:
      getLifecycle in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface MimeResponse
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface PortletResponse
    • getPortlet

      public com.liferay.portal.kernel.model.Portlet getPortlet()
      Specified by:
      getPortlet in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getPortletOutputStream

      public OutputStream getPortletOutputStream() throws IOException
      Specified by:
      getPortletOutputStream in interface MimeResponse
      Throws:
      IOException
    • getProperties

      public Map<String,String[]> getProperties()
      Specified by:
      getProperties in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getProperty

      public String getProperty(String name)
      Specified by:
      getProperty in interface PortletResponse
    • getPropertyNames

      public Collection<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface PortletResponse
    • getPropertyValues

      public Collection<String> getPropertyValues(String key)
      Specified by:
      getPropertyValues in interface PortletResponse
    • getWriter

      public PrintWriter getWriter() throws IOException
      Specified by:
      getWriter in interface MimeResponse
      Throws:
      IOException
    • isCommitted

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

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

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

      public void setBufferSize(int bufferSize)
      Specified by:
      setBufferSize in interface MimeResponse
    • setContentType

      public void setContentType(String contentType)
      Specified by:
      setContentType in interface MimeResponse
      Specified by:
      setContentType in interface RenderResponse
    • setDateHeader

      public void setDateHeader(String name, long date)
      Specified by:
      setDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • setHeader

      public void setHeader(String name, String value)
      Specified by:
      setHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • setIntHeader

      public void setIntHeader(String name, int value)
      Specified by:
      setIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • setNextPossiblePortletModes

      public void setNextPossiblePortletModes(Collection<? extends PortletMode> collection)
      Specified by:
      setNextPossiblePortletModes in interface RenderResponse
    • setProperty

      public void setProperty(String key, String value)
      Specified by:
      setProperty in interface PortletResponse
    • setTitle

      public void setTitle(String title)
      Specified by:
      setTitle in interface RenderResponse
    • setURLEncoder

      public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder)
      Specified by:
      setURLEncoder in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • transferHeaders

      public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse)
      Specified by:
      transferHeaders in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • transferMarkupHeadElements

      public void transferMarkupHeadElements()
      Specified by:
      transferMarkupHeadElements in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse