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
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.portlet.PortletRequest
jakarta.portlet.PortletRequest.P3PUserInfos -
Field Summary
Fields inherited from interface jakarta.portlet.PortletRequest
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, HEADER_PHASE, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO -
Constructor Summary
ConstructorsConstructorDescriptionMockClientDataRequest(jakarta.portlet.PortalContext portalContext, jakarta.portlet.PortletContext portletContext) MockClientDataRequest(jakarta.portlet.PortletContext portletContext) -
Method Summary
Modifier and TypeMethodDescriptionintlongjakarta.servlet.http.PartCollection<jakarta.servlet.http.Part>getParts()voidsetCharacterEncoding(String characterEncoding) voidsetContent(byte[] content) voidsetContentType(String contentType) voidMethods inherited from class com.liferay.portal.kernel.test.portlet.MockPortletRequest
addLocale, addParameter, addParameter, addPreferredLocale, addPreferredResponseContentType, addProperty, addResponseContentType, addUserRole, checkActive, close, getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLifecyclePhase, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRenderParameters, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, getWindowState, isActive, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, registerPublicParameter, removeAttribute, setAttribute, setAuthType, setContextPath, setCookies, setParameter, setParameter, setParameters, setPortletMode, setPortletSession, setPreferences, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setUserPrincipal, setWindowID, setWindowStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.portlet.PortletRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttributeMethods inherited from interface jakarta.portlet.RenderState
getPortletMode, getRenderParameters, getWindowState
-
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
- Specified by:
getCharacterEncodingin interfacejakarta.portlet.ClientDataRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLengthin interfacejakarta.portlet.ClientDataRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLongin interfacejakarta.portlet.ClientDataRequest
-
getContentType
- Specified by:
getContentTypein interfacejakarta.portlet.ClientDataRequest
-
getMethod
- Specified by:
getMethodin interfacejakarta.portlet.ClientDataRequest
-
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.portlet.PortletException - Specified by:
getPartin interfacejakarta.portlet.ClientDataRequest- Throws:
IOExceptionjakarta.portlet.PortletException
-
getParts
public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.portlet.PortletException- Specified by:
getPartsin interfacejakarta.portlet.ClientDataRequest- Throws:
IOExceptionjakarta.portlet.PortletException
-
getPortletInputStream
- Specified by:
getPortletInputStreamin interfacejakarta.portlet.ClientDataRequest- Throws:
IOException
-
getReader
- Specified by:
getReaderin interfacejakarta.portlet.ClientDataRequest- Throws:
UnsupportedEncodingException
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfacejakarta.portlet.ClientDataRequest
-
setContent
public void setContent(byte[] content) -
setContentType
-
setMethod
-