Class MockPortletRequest
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletRequest
- All Implemented Interfaces:
javax.portlet.PortletRequest
,javax.portlet.RenderState
Mock Object for
PortletRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
javax.portlet.PortletRequest.P3PUserInfos
-
Field Summary
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, HEADER_PHASE, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
-
Constructor Summary
ConstructorDescriptionMockPortletRequest
(String contextPath, javax.portlet.PortletContext context, javax.portlet.PortletSession session) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addCookie
(javax.servlet.http.Cookie cookie) void
addParameter
(String name, String value) void
addProperty
(String name, String value) getAttribute
(String name) javax.servlet.http.Cookie[]
getParameter
(String name) Deprecated.Deprecated.Deprecated.String[]
getParameterValues
(String name) Deprecated.javax.portlet.PortalContext
javax.portlet.PortletContext
javax.portlet.PortletMode
javax.portlet.PortletSession
javax.portlet.PortletSession
getPortletSession
(boolean create) javax.portlet.PortletPreferences
Deprecated.getProperties
(String name) getProperty
(String name) Deprecated.javax.portlet.RenderParameters
int
javax.portlet.WindowState
boolean
isPortletModeAllowed
(javax.portlet.PortletMode mode) boolean
boolean
isSecure()
boolean
isUserInRole
(String role) boolean
isWindowStateAllowed
(javax.portlet.WindowState state) void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
setAuthType
(String authType) void
setContextPath
(String contextPath) void
void
setPortalContext
(javax.portlet.PortalContext portalContext) void
setPortletContext
(javax.portlet.PortletContext context) void
setPortletMode
(javax.portlet.PortletMode portletMode) void
setPortletPreferences
(javax.portlet.PortletPreferences portletPreferences) void
setPortletSession
(javax.portlet.PortletSession session) void
void
setServerName
(String serverName) void
setServerPort
(int serverPort) void
setUserPrincipal
(Principal principal) void
setUserPrincipal
(javax.portlet.WindowState windowState)
-
Constructor Details
-
MockPortletRequest
public MockPortletRequest() -
MockPortletRequest
public MockPortletRequest(String contextPath, javax.portlet.PortletContext context, javax.portlet.PortletSession session)
-
-
Method Details
-
addParameter
-
addProperty
-
addCookie
-
addCookie
-
setAuthType
-
setContextPath
-
setLocale
-
setPortalContext
-
setPortletContext
-
setPortletMode
-
setPortletPreferences
-
setPortletSession
-
setScheme
-
setServerName
-
setServerPort
-
setUserPrincipal
-
setUserPrincipal
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.portlet.PortletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.portlet.PortletRequest
-
getAuthType
- Specified by:
getAuthType
in interfacejavax.portlet.PortletRequest
-
getContextPath
- Specified by:
getContextPath
in interfacejavax.portlet.PortletRequest
-
getLocale
- Specified by:
getLocale
in interfacejavax.portlet.PortletRequest
-
getLocales
- Specified by:
getLocales
in interfacejavax.portlet.PortletRequest
-
getParameter
Deprecated.- Specified by:
getParameter
in interfacejavax.portlet.PortletRequest
-
getParameterMap
Deprecated.- Specified by:
getParameterMap
in interfacejavax.portlet.PortletRequest
-
getParameterNames
Deprecated.- Specified by:
getParameterNames
in interfacejavax.portlet.PortletRequest
-
getParameterValues
Deprecated.- Specified by:
getParameterValues
in interfacejavax.portlet.PortletRequest
-
getPortalContext
- Specified by:
getPortalContext
in interfacejavax.portlet.PortletRequest
-
getPortletMode
- Specified by:
getPortletMode
in interfacejavax.portlet.RenderState
-
getPortletSession
- Specified by:
getPortletSession
in interfacejavax.portlet.PortletRequest
-
getPortletSession
- Specified by:
getPortletSession
in interfacejavax.portlet.PortletRequest
-
getPreferences
- Specified by:
getPreferences
in interfacejavax.portlet.PortletRequest
-
getProperties
- Specified by:
getProperties
in interfacejavax.portlet.PortletRequest
-
getProperty
- Specified by:
getProperty
in interfacejavax.portlet.PortletRequest
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacejavax.portlet.PortletRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfacejavax.portlet.PortletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfacejavax.portlet.PortletRequest
-
getResponseContentType
- Specified by:
getResponseContentType
in interfacejavax.portlet.PortletRequest
-
getResponseContentTypes
- Specified by:
getResponseContentTypes
in interfacejavax.portlet.PortletRequest
-
getScheme
- Specified by:
getScheme
in interfacejavax.portlet.PortletRequest
-
getServerName
- Specified by:
getServerName
in interfacejavax.portlet.PortletRequest
-
getServerPort
- Specified by:
getServerPort
in interfacejavax.portlet.PortletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfacejavax.portlet.PortletRequest
-
getWindowState
- Specified by:
getWindowState
in interfacejavax.portlet.RenderState
-
isPortletModeAllowed
- Specified by:
isPortletModeAllowed
in interfacejavax.portlet.PortletRequest
-
isRequestedSessionIdValid
- Specified by:
isRequestedSessionIdValid
in interfacejavax.portlet.PortletRequest
-
isSecure
- Specified by:
isSecure
in interfacejavax.portlet.PortletRequest
-
isUserInRole
- Specified by:
isUserInRole
in interfacejavax.portlet.PortletRequest
-
isWindowStateAllowed
- Specified by:
isWindowStateAllowed
in interfacejavax.portlet.PortletRequest
-
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.portlet.PortletRequest
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.portlet.PortletRequest
-
getRenderParameters
- Specified by:
getRenderParameters
in interfacejavax.portlet.RenderState
-
getPortletContext
- Specified by:
getPortletContext
in interfacejavax.portlet.PortletRequest
-
getWindowID
- Specified by:
getWindowID
in interfacejavax.portlet.PortletRequest
-
getCookies
- Specified by:
getCookies
in interfacejavax.portlet.PortletRequest
-
getPrivateParameterMap
Deprecated.- Specified by:
getPrivateParameterMap
in interfacejavax.portlet.PortletRequest
-
getPublicParameterMap
Deprecated.- Specified by:
getPublicParameterMap
in interfacejavax.portlet.PortletRequest
-
getUserAgent
- Specified by:
getUserAgent
in interfacejavax.portlet.PortletRequest
-