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 TypeMethodDescriptionintlongjavax.servlet.http.PartCollection<javax.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 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, setAttributeMethods inherited from interface javax.portlet.RenderState
getPortletMode, getRenderParameters, getWindowState
-
Constructor Details
-
MockClientDataRequest
public MockClientDataRequest() -
MockClientDataRequest
-
MockClientDataRequest
-
-
Method Details
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceClientDataRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLengthin interfaceClientDataRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLongin interfaceClientDataRequest
-
getContentType
- Specified by:
getContentTypein interfaceClientDataRequest
-
getMethod
- Specified by:
getMethodin interfaceClientDataRequest
-
getPart
- Specified by:
getPartin interfaceClientDataRequest- Throws:
IOExceptionPortletException
-
getParts
- Specified by:
getPartsin interfaceClientDataRequest- Throws:
IOExceptionPortletException
-
getPortletInputStream
- Specified by:
getPortletInputStreamin interfaceClientDataRequest- Throws:
IOException
-
getReader
- Specified by:
getReaderin interfaceClientDataRequest- Throws:
UnsupportedEncodingException
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfaceClientDataRequest
-
setContent
public void setContent(byte[] content) -
setContentType
-
setMethod
-