|
||||||||||
| 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.MockActionRequest
public class MockActionRequest
Mock implementation of the ActionRequest interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.portlet.PortletRequest |
|---|
javax.portlet.PortletRequest.P3PUserInfos |
| Field Summary |
|---|
| Fields inherited from interface javax.portlet.ActionRequest |
|---|
ACTION_NAME |
| 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 | |
|---|---|
MockActionRequest()
Create a new MockActionRequest with a default MockPortalContext
and a default MockPortletContext. |
|
MockActionRequest(javax.portlet.PortalContext portalContext,
javax.portlet.PortletContext portletContext)
Create a new MockActionRequest. |
|
MockActionRequest(javax.portlet.PortletContext portletContext)
Create a new MockActionRequest with a default MockPortalContext. |
|
MockActionRequest(javax.portlet.PortletMode portletMode)
Create a new MockActionRequest with a default MockPortalContext
and a default MockPortletContext. |
|
| Method Summary | |
|---|---|
String |
getCharacterEncoding()
|
int |
getContentLength()
|
String |
getContentType()
|
Cookie[] |
getCookies()
|
String |
getMethod()
|
InputStream |
getPortletInputStream()
|
Map |
getPrivateParameterMap()
|
Map |
getPublicParameterMap()
|
BufferedReader |
getReader()
|
String |
getWindowID()
|
void |
setCharacterEncoding(String characterEncoding)
|
void |
setContent(byte[] content)
|
void |
setContentType(String contentType)
|
| 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, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute |
| Constructor Detail |
|---|
public MockActionRequest()
MockPortalContext
and a default MockPortletContext.
MockPortalContext,
MockPortletContextpublic MockActionRequest(javax.portlet.PortletMode portletMode)
MockPortalContext
and a default MockPortletContext.
portletMode - the mode that the portlet runs inpublic MockActionRequest(javax.portlet.PortletContext portletContext)
MockPortalContext.
portletContext - the PortletContext that the request runs in
public MockActionRequest(javax.portlet.PortalContext portalContext,
javax.portlet.PortletContext portletContext)
portalContext - the PortalContext that the request runs inportletContext - the PortletContext that the request runs in| Method Detail |
|---|
public void setContent(byte[] content)
public InputStream getPortletInputStream()
throws IOException
getPortletInputStream in interface javax.portlet.ClientDataRequestIOExceptionpublic void setCharacterEncoding(String characterEncoding)
setCharacterEncoding in interface javax.portlet.ClientDataRequest
public BufferedReader getReader()
throws UnsupportedEncodingException
getReader in interface javax.portlet.ClientDataRequestUnsupportedEncodingExceptionpublic String getCharacterEncoding()
getCharacterEncoding in interface javax.portlet.ClientDataRequestpublic void setContentType(String contentType)
public String getContentType()
getContentType in interface javax.portlet.ClientDataRequestpublic int getContentLength()
getContentLength in interface javax.portlet.ClientDataRequestpublic String getWindowID()
getWindowID in interface javax.portlet.PortletRequestgetWindowID in class MockPortletRequestpublic Cookie[] getCookies()
getCookies in interface javax.portlet.PortletRequestgetCookies in class MockPortletRequestpublic Map getPrivateParameterMap()
getPrivateParameterMap in interface javax.portlet.PortletRequestgetPrivateParameterMap in class MockPortletRequestpublic Map getPublicParameterMap()
getPublicParameterMap in interface javax.portlet.PortletRequestgetPublicParameterMap in class MockPortletRequestpublic String getMethod()
getMethod in interface javax.portlet.ClientDataRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||