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