Class MockLiferayResourceRequest

Object
com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
com.liferay.portal.kernel.test.portlet.MockLiferayResourceRequest
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayResourceRequest, ClientDataRequest, PortletRequest, RenderState, ResourceRequest

public class MockLiferayResourceRequest extends com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest implements com.liferay.portal.kernel.portlet.LiferayResourceRequest
Author:
Cristina González
  • Constructor Details

    • MockLiferayResourceRequest

      public MockLiferayResourceRequest()
    • MockLiferayResourceRequest

      public MockLiferayResourceRequest(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
    • getContentLengthLong

      public long getContentLengthLong()
      Specified by:
      getContentLengthLong in interface ClientDataRequest
      Overrides:
      getContentLengthLong in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
    • getDispatcherType

      public javax.servlet.DispatcherType getDispatcherType()
      Specified by:
      getDispatcherType in interface ResourceRequest
      Overrides:
      getDispatcherType in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
    • 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
    • getPart

      public javax.servlet.http.Part getPart(String name) throws IOException, PortletException
      Specified by:
      getPart in interface ClientDataRequest
      Overrides:
      getPart in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
      Throws:
      IOException
      PortletException
    • getParts

      public Collection<javax.servlet.http.Part> getParts() throws IOException, PortletException
      Specified by:
      getParts in interface ClientDataRequest
      Overrides:
      getParts in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
      Throws:
      IOException
      PortletException
    • 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
    • getPortletAsyncContext

      public PortletAsyncContext getPortletAsyncContext()
      Specified by:
      getPortletAsyncContext in interface ResourceRequest
      Overrides:
      getPortletAsyncContext in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
    • 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.MockPortletRequest
    • getResourceParameters

      public ResourceParameters getResourceParameters()
      Specified by:
      getResourceParameters in interface ResourceRequest
      Overrides:
      getResourceParameters in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
    • 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
    • isAsyncStarted

      public boolean isAsyncStarted()
      Specified by:
      isAsyncStarted in interface ResourceRequest
      Overrides:
      isAsyncStarted in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
    • isAsyncSupported

      public boolean isAsyncSupported()
      Specified by:
      isAsyncSupported in interface ResourceRequest
      Overrides:
      isAsyncSupported in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
    • 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
    • setPortlet

      public void setPortlet(com.liferay.portal.kernel.model.Portlet portlet)
    • setPortletRequestDispatcherRequest

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

      public PortletAsyncContext startPortletAsync() throws IllegalStateException
      Specified by:
      startPortletAsync in interface ResourceRequest
      Overrides:
      startPortletAsync in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
      Throws:
      IllegalStateException
    • startPortletAsync

      public PortletAsyncContext startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException
      Specified by:
      startPortletAsync in interface ResourceRequest
      Overrides:
      startPortletAsync in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
      Throws:
      IllegalStateException