Class MockResourceRequest

All Implemented Interfaces:
jakarta.portlet.ClientDataRequest, jakarta.portlet.PortletRequest, jakarta.portlet.RenderState, jakarta.portlet.ResourceRequest
Direct Known Subclasses:
MockLiferayResourceRequest

public class MockResourceRequest extends MockClientDataRequest implements jakarta.portlet.ResourceRequest
Author:
Dante Wang
  • Constructor Details

    • MockResourceRequest

      public MockResourceRequest()
    • MockResourceRequest

      public MockResourceRequest(jakarta.portlet.PortalContext portalContext, jakarta.portlet.PortletContext portletContext)
    • MockResourceRequest

      public MockResourceRequest(jakarta.portlet.PortletContext portletContext)
    • MockResourceRequest

      public MockResourceRequest(jakarta.portlet.ResourceURL resourceURL)
    • MockResourceRequest

      public MockResourceRequest(String resourceID)
  • Method Details

    • addPrivateRenderParameter

      public void addPrivateRenderParameter(String key, String value)
    • addPrivateRenderParameter

      public void addPrivateRenderParameter(String key, String[] values)
    • getCacheability

      public String getCacheability()
      Specified by:
      getCacheability in interface jakarta.portlet.ResourceRequest
    • getDispatcherType

      public jakarta.servlet.DispatcherType getDispatcherType()
      Specified by:
      getDispatcherType in interface jakarta.portlet.ResourceRequest
    • getETag

      public String getETag()
      Specified by:
      getETag in interface jakarta.portlet.ResourceRequest
    • getPortletAsyncContext

      public jakarta.portlet.PortletAsyncContext getPortletAsyncContext()
      Specified by:
      getPortletAsyncContext in interface jakarta.portlet.ResourceRequest
    • getPrivateRenderParameterMap

      public Map<String,String[]> getPrivateRenderParameterMap()
      Specified by:
      getPrivateRenderParameterMap in interface jakarta.portlet.ResourceRequest
    • getResourceID

      public String getResourceID()
      Specified by:
      getResourceID in interface jakarta.portlet.ResourceRequest
    • getResourceParameters

      public jakarta.portlet.ResourceParameters getResourceParameters()
      Specified by:
      getResourceParameters in interface jakarta.portlet.ResourceRequest
    • isAsyncStarted

      public boolean isAsyncStarted()
      Specified by:
      isAsyncStarted in interface jakarta.portlet.ResourceRequest
    • isAsyncSupported

      public boolean isAsyncSupported()
      Specified by:
      isAsyncSupported in interface jakarta.portlet.ResourceRequest
    • setCacheability

      public void setCacheability(String cacheLevel)
    • setResourceID

      public void setResourceID(String resourceID)
    • startPortletAsync

      public jakarta.portlet.PortletAsyncContext startPortletAsync() throws IllegalStateException
      Specified by:
      startPortletAsync in interface jakarta.portlet.ResourceRequest
      Throws:
      IllegalStateException
    • startPortletAsync

      public jakarta.portlet.PortletAsyncContext startPortletAsync(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) throws IllegalStateException
      Specified by:
      startPortletAsync in interface jakarta.portlet.ResourceRequest
      Throws:
      IllegalStateException
    • getLifecyclePhase

      protected String getLifecyclePhase()
      Overrides:
      getLifecyclePhase in class MockPortletRequest