Class MockClientDataRequest
Object
com.liferay.portal.kernel.test.portlet.MockPortletRequest
com.liferay.portal.kernel.test.portlet.MockClientDataRequest
- All Implemented Interfaces:
ClientDataRequest
,PortletRequest
,RenderState
- Direct Known Subclasses:
MockActionRequest
,MockResourceRequest
- Author:
- Dante Wang
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
PortletRequest.P3PUserInfos
-
Field Summary
Fields inherited from interface javax.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
(PortalContext portalContext, PortletContext portletContext) MockClientDataRequest
(PortletContext portletContext) -
Method Summary
Modifier and TypeMethodDescriptionint
long
javax.servlet.http.Part
Collection<javax.servlet.http.Part>
getParts()
void
setCharacterEncoding
(String characterEncoding) void
setContent
(byte[] content) void
setContentType
(String contentType) void
Methods 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, setWindowState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.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, setAttribute
Methods inherited from interface javax.portlet.RenderState
getPortletMode, getRenderParameters, getWindowState
-
Constructor Details
-
MockClientDataRequest
public MockClientDataRequest() -
MockClientDataRequest
-
MockClientDataRequest
-
-
Method Details
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceClientDataRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLength
in interfaceClientDataRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLong
in interfaceClientDataRequest
-
getContentType
- Specified by:
getContentType
in interfaceClientDataRequest
-
getMethod
- Specified by:
getMethod
in interfaceClientDataRequest
-
getPart
- Specified by:
getPart
in interfaceClientDataRequest
- Throws:
IOException
PortletException
-
getParts
- Specified by:
getParts
in interfaceClientDataRequest
- Throws:
IOException
PortletException
-
getPortletInputStream
- Specified by:
getPortletInputStream
in interfaceClientDataRequest
- Throws:
IOException
-
getReader
- Specified by:
getReader
in interfaceClientDataRequest
- Throws:
UnsupportedEncodingException
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfaceClientDataRequest
-
setContent
public void setContent(byte[] content) -
setContentType
-
setMethod
-