Class MockLiferayPortletActionResponse

Object
com.liferay.portal.kernel.test.portlet.MockLiferayPortletActionResponse
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse, ActionResponse, Mutable, MutableRenderState, PortletResponse, RenderState, StateAwareResponse

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

    • MockLiferayPortletActionResponse

      public MockLiferayPortletActionResponse()
  • 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
    • createActionURL

      public ActionURL createActionURL(MimeResponse.Copy copy)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • 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
    • createRedirectURL

      public RenderURL createRedirectURL(MimeResponse.Copy copy) throws IllegalStateException
      Specified by:
      createRedirectURL in interface ActionResponse
      Throws:
      IllegalStateException
    • createRenderURL

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

      public RenderURL createRenderURL(MimeResponse.Copy copy)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • 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
    • 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
    • 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
    • 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
    • getPortletMode

      public PortletMode getPortletMode()
      Specified by:
      getPortletMode in interface RenderState
    • 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
    • getRenderParameterMap

      public Map<String,String[]> getRenderParameterMap()
      Specified by:
      getRenderParameterMap in interface StateAwareResponse
    • getRenderParameters

      public MutableRenderParameters getRenderParameters()
      Specified by:
      getRenderParameters in interface MutableRenderState
      Specified by:
      getRenderParameters in interface RenderState
    • getWindowState

      public WindowState getWindowState()
      Specified by:
      getWindowState in interface RenderState
    • removePublicRenderParameter

      public void removePublicRenderParameter(String name)
      Specified by:
      removePublicRenderParameter in interface StateAwareResponse
    • sendRedirect

      public void sendRedirect(String location) throws IOException
      Specified by:
      sendRedirect in interface ActionResponse
      Throws:
      IOException
    • sendRedirect

      public void sendRedirect(String location, String renderUrlParamName) throws IOException
      Specified by:
      sendRedirect in interface ActionResponse
      Throws:
      IOException
    • setDateHeader

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

      public void setEvent(QName qName, Serializable serializable)
      Specified by:
      setEvent in interface StateAwareResponse
    • setEvent

      public void setEvent(String name, Serializable serializable)
      Specified by:
      setEvent in interface StateAwareResponse
    • 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
    • setPortletMode

      public void setPortletMode(PortletMode portletMode) throws PortletModeException
      Specified by:
      setPortletMode in interface MutableRenderState
      Throws:
      PortletModeException
    • setProperty

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

      public void setRenderParameter(String name, String value)
      Specified by:
      setRenderParameter in interface StateAwareResponse
    • setRenderParameter

      public void setRenderParameter(String name, String... values)
      Specified by:
      setRenderParameter in interface StateAwareResponse
    • setRenderParameters

      public void setRenderParameters(Map<String,String[]> map)
      Specified by:
      setRenderParameters in interface StateAwareResponse
    • setURLEncoder

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

      public void setWindowState(WindowState windowState) throws WindowStateException
      Specified by:
      setWindowState in interface MutableRenderState
      Throws:
      WindowStateException
    • 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