public class MockClientDataRequest extends MockPortletRequest implements javax.portlet.ClientDataRequest
ClientDataRequest interface.| Constructor and Description |
|---|
MockClientDataRequest()
Create a new MockClientDataRequest with a default
MockPortalContext and a default MockPortletContext. |
MockClientDataRequest(javax.portlet.PortalContext portalContext,
javax.portlet.PortletContext portletContext)
Create a new MockClientDataRequest.
|
MockClientDataRequest(javax.portlet.PortletContext portletContext)
Create a new MockClientDataRequest with a default
MockPortalContext. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCharacterEncoding() |
int |
getContentLength() |
long |
getContentLengthLong() |
java.lang.String |
getContentType() |
java.lang.String |
getMethod() |
Part |
getPart(java.lang.String name) |
java.util.Collection<Part> |
getParts() |
java.io.InputStream |
getPortletInputStream() |
java.io.BufferedReader |
getReader() |
void |
setCharacterEncoding(java.lang.String characterEncoding) |
void |
setContent(byte[] content) |
void |
setContentType(java.lang.String contentType) |
void |
setMethod(java.lang.String method) |
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, setPreferences, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setSession, setUserPrincipal, setWindowID, setWindowStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, 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, setAttributepublic MockClientDataRequest()
MockPortalContext and a default MockPortletContext.public MockClientDataRequest(javax.portlet.PortletContext portletContext)
MockPortalContext.portletContext - the PortletContext that the request runs inpublic MockClientDataRequest(javax.portlet.PortalContext portalContext,
javax.portlet.PortletContext portletContext)
portalContext - the PortalContext that the request runs inportletContext - the PortletContext that the request runs inpublic java.lang.String getCharacterEncoding()
getCharacterEncoding in interface javax.portlet.ClientDataRequestpublic int getContentLength()
getContentLength in interface javax.portlet.ClientDataRequestpublic long getContentLengthLong()
getContentLengthLong in interface javax.portlet.ClientDataRequestpublic java.lang.String getContentType()
getContentType in interface javax.portlet.ClientDataRequestpublic java.lang.String getMethod()
getMethod in interface javax.portlet.ClientDataRequestpublic Part getPart(java.lang.String name) throws java.io.IOException, javax.portlet.PortletException
getPart in interface javax.portlet.ClientDataRequestjava.io.IOExceptionjavax.portlet.PortletExceptionpublic java.util.Collection<Part> getParts() throws java.io.IOException, javax.portlet.PortletException
getParts in interface javax.portlet.ClientDataRequestjava.io.IOExceptionjavax.portlet.PortletExceptionpublic java.io.InputStream getPortletInputStream()
throws java.io.IOException
getPortletInputStream in interface javax.portlet.ClientDataRequestjava.io.IOExceptionpublic java.io.BufferedReader getReader()
throws java.io.UnsupportedEncodingException
getReader in interface javax.portlet.ClientDataRequestjava.io.UnsupportedEncodingExceptionpublic void setCharacterEncoding(java.lang.String characterEncoding)
setCharacterEncoding in interface javax.portlet.ClientDataRequestpublic void setContent(byte[] content)
public void setContentType(java.lang.String contentType)
public void setMethod(java.lang.String method)
Copyright © 2019 Liferay, Inc.. All Rights Reserved.