Class MockClientDataRequest

Object
com.liferay.portal.kernel.test.portlet.MockPortletRequest
com.liferay.portal.kernel.test.portlet.MockClientDataRequest
All Implemented Interfaces:
jakarta.portlet.ClientDataRequest, jakarta.portlet.PortletRequest, jakarta.portlet.RenderState
Direct Known Subclasses:
MockActionRequest, MockResourceRequest

public class MockClientDataRequest extends MockPortletRequest implements jakarta.portlet.ClientDataRequest
Author:
Dante Wang
  • Constructor Details

    • MockClientDataRequest

      public MockClientDataRequest()
    • MockClientDataRequest

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

      public MockClientDataRequest(jakarta.portlet.PortletContext portletContext)
  • Method Details

    • getCharacterEncoding

      public String getCharacterEncoding()
      Specified by:
      getCharacterEncoding in interface jakarta.portlet.ClientDataRequest
    • getContentLength

      public int getContentLength()
      Specified by:
      getContentLength in interface jakarta.portlet.ClientDataRequest
    • getContentLengthLong

      public long getContentLengthLong()
      Specified by:
      getContentLengthLong in interface jakarta.portlet.ClientDataRequest
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface jakarta.portlet.ClientDataRequest
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface jakarta.portlet.ClientDataRequest
    • getPart

      public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.portlet.PortletException
      Specified by:
      getPart in interface jakarta.portlet.ClientDataRequest
      Throws:
      IOException
      jakarta.portlet.PortletException
    • getParts

      public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.portlet.PortletException
      Specified by:
      getParts in interface jakarta.portlet.ClientDataRequest
      Throws:
      IOException
      jakarta.portlet.PortletException
    • getPortletInputStream

      public InputStream getPortletInputStream() throws IOException
      Specified by:
      getPortletInputStream in interface jakarta.portlet.ClientDataRequest
      Throws:
      IOException
    • getReader

      public BufferedReader getReader() throws UnsupportedEncodingException
      Specified by:
      getReader in interface jakarta.portlet.ClientDataRequest
      Throws:
      UnsupportedEncodingException
    • setCharacterEncoding

      public void setCharacterEncoding(String characterEncoding)
      Specified by:
      setCharacterEncoding in interface jakarta.portlet.ClientDataRequest
    • setContent

      public void setContent(byte[] content)
    • setContentType

      public void setContentType(String contentType)
    • setMethod

      public void setMethod(String method)