Class MockLiferayPortletRenderRequest

Object
com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
com.liferay.portletmvc4spring.test.mock.web.portlet.MockRenderRequest
com.liferay.portal.kernel.test.portlet.MockLiferayPortletRenderRequest
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletRequest, PortletRequest, RenderRequest, RenderState

public class MockLiferayPortletRenderRequest extends com.liferay.portletmvc4spring.test.mock.web.portlet.MockRenderRequest implements com.liferay.portal.kernel.portlet.LiferayPortletRequest
Author:
Jürgen Kappler
  • Constructor Details

    • MockLiferayPortletRenderRequest

      public MockLiferayPortletRenderRequest()
    • MockLiferayPortletRenderRequest

      public MockLiferayPortletRenderRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest)
  • Method Details

    • addParameter

      public void addParameter(String name, String value)
      Overrides:
      addParameter in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • addParameter

      public void addParameter(String name, String[] values)
      Overrides:
      addParameter in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • cleanUp

      public void cleanUp()
      Specified by:
      cleanUp in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • clearRenderParameters

      public Map<String,String[]> clearRenderParameters()
      Specified by:
      clearRenderParameters in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • defineObjects

      public void defineObjects(PortletConfig portletConfig, PortletResponse portletResponse)
      Specified by:
      defineObjects in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface PortletRequest
      Overrides:
      getAttribute in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface PortletRequest
      Overrides:
      getAttributeNames in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • getHttpServletRequest

      public javax.servlet.http.HttpServletRequest getHttpServletRequest()
      Specified by:
      getHttpServletRequest in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • getLifecycle

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

      public javax.servlet.http.HttpServletRequest getOriginalHttpServletRequest()
      Specified by:
      getOriginalHttpServletRequest in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • getParameter

      public String getParameter(String name)
      Specified by:
      getParameter in interface PortletRequest
      Overrides:
      getParameter in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • getParameterMap

      public Map<String,String[]> getParameterMap()
      Specified by:
      getParameterMap in interface PortletRequest
      Overrides:
      getParameterMap in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • getPlid

      public long getPlid()
      Specified by:
      getPlid in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • getPortlet

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

      public PortletContext getPortletContext()
      Specified by:
      getPortletContext in interface PortletRequest
      Overrides:
      getPortletContext in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • getPortletName

      public String getPortletName()
      Specified by:
      getPortletName in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • getPortletRequestDispatcherRequest

      public javax.servlet.http.HttpServletRequest getPortletRequestDispatcherRequest()
      Specified by:
      getPortletRequestDispatcherRequest in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • getRenderParameters

      public RenderParameters getRenderParameters()
      Specified by:
      getRenderParameters in interface RenderState
      Overrides:
      getRenderParameters in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockRenderRequest
    • getUserAgent

      public String getUserAgent()
      Specified by:
      getUserAgent in interface PortletRequest
      Overrides:
      getUserAgent in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • invalidateSession

      public void invalidateSession()
      Specified by:
      invalidateSession in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
    • setAttribute

      public void setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface PortletRequest
      Overrides:
      setAttribute in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • setParameter

      public void setParameter(String key, String value)
      Overrides:
      setParameter in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • setParameter

      public void setParameter(String key, String[] values)
      Overrides:
      setParameter in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • setParameters

      public void setParameters(Map<String,String[]> parameters)
      Overrides:
      setParameters in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
    • setPortletRequestDispatcherRequest

      public void setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      setPortletRequestDispatcherRequest in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest