public class MockClientDataRequest extends MockPortletRequest
javax.portlet.ClientDataRequest
interface.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
characterEncoding |
private byte[] |
content |
private java.lang.String |
contentType |
private java.lang.String |
method |
Constructor and Description |
---|
MockClientDataRequest()
Create a new MockClientDataRequest with a default
MockPortalContext
and a default MockPortletContext . |
MockClientDataRequest(PortalContext portalContext,
PortletContext portletContext)
Create a new MockClientDataRequest.
|
MockClientDataRequest(PortletContext portletContext)
Create a new MockClientDataRequest with a default
MockPortalContext . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharacterEncoding() |
int |
getContentLength() |
java.lang.String |
getContentType() |
java.lang.String |
getMethod() |
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, 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
private java.lang.String characterEncoding
private byte[] content
private java.lang.String contentType
private java.lang.String method
public MockClientDataRequest()
MockPortalContext
and a default MockPortletContext
.MockPortalContext
,
MockPortletContext
public MockClientDataRequest(PortletContext portletContext)
MockPortalContext
.portletContext
- the PortletContext that the request runs inpublic MockClientDataRequest(PortalContext portalContext, PortletContext portletContext)
portalContext
- the PortalContext that the request runs inportletContext
- the PortletContext that the request runs inpublic void setContent(byte[] content)
public java.io.InputStream getPortletInputStream() throws java.io.IOException
java.io.IOException
public void setCharacterEncoding(java.lang.String characterEncoding)
public java.io.BufferedReader getReader() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.lang.String getCharacterEncoding()
public void setContentType(java.lang.String contentType)
public java.lang.String getContentType()
public int getContentLength()
public void setMethod(java.lang.String method)
public java.lang.String getMethod()