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 |
---|---|
String |
getCharacterEncoding() |
int |
getContentLength() |
String |
getContentType() |
String |
getMethod() |
InputStream |
getPortletInputStream() |
BufferedReader |
getReader() |
void |
setCharacterEncoding(String characterEncoding) |
void |
setContent(byte[] content) |
void |
setContentType(String contentType) |
void |
setMethod(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, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, 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, setWindowState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
public MockClientDataRequest()
MockPortalContext
and a default MockPortletContext
.MockPortalContext
,
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 void setContent(byte[] content)
public InputStream getPortletInputStream() throws IOException
getPortletInputStream
in interface javax.portlet.ClientDataRequest
IOException
public void setCharacterEncoding(String characterEncoding)
setCharacterEncoding
in interface javax.portlet.ClientDataRequest
public BufferedReader getReader() throws UnsupportedEncodingException
getReader
in interface javax.portlet.ClientDataRequest
UnsupportedEncodingException
public String getCharacterEncoding()
getCharacterEncoding
in interface javax.portlet.ClientDataRequest
public void setContentType(String contentType)
public String getContentType()
getContentType
in interface javax.portlet.ClientDataRequest
public int getContentLength()
getContentLength
in interface javax.portlet.ClientDataRequest
public void setMethod(String method)
public String getMethod()
getMethod
in interface javax.portlet.ClientDataRequest
Copyright © 2015. All rights reserved.