|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.mock.web.portlet.MockPortletRequest
org.springframework.mock.web.portlet.MockClientDataRequest
public class MockClientDataRequest
Mock implementation of the ClientDataRequest
interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest |
---|
javax.portlet.PortletRequest.P3PUserInfos |
Field Summary | |
---|---|
private java.lang.String |
characterEncoding
|
private byte[] |
content
|
private java.lang.String |
contentType
|
private java.lang.String |
method
|
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, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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)
|
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, 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 |
Field Detail |
---|
private java.lang.String characterEncoding
private byte[] content
private java.lang.String contentType
private java.lang.String method
Constructor Detail |
---|
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 inMethod Detail |
---|
public void setContent(byte[] content)
public java.io.InputStream getPortletInputStream() throws java.io.IOException
getPortletInputStream
in interface javax.portlet.ClientDataRequest
java.io.IOException
public void setCharacterEncoding(java.lang.String characterEncoding)
setCharacterEncoding
in interface javax.portlet.ClientDataRequest
public java.io.BufferedReader getReader() throws java.io.UnsupportedEncodingException
getReader
in interface javax.portlet.ClientDataRequest
java.io.UnsupportedEncodingException
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface javax.portlet.ClientDataRequest
public void setContentType(java.lang.String contentType)
public java.lang.String getContentType()
getContentType
in interface javax.portlet.ClientDataRequest
public int getContentLength()
getContentLength
in interface javax.portlet.ClientDataRequest
public void setMethod(java.lang.String method)
public java.lang.String getMethod()
getMethod
in interface javax.portlet.ClientDataRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |