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
ConstructorsConstructorDescriptionMockPortletRequest(String contextPath, PortletContext context, PortletSession session) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddParameter(String name, String value) voidaddProperty(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.intbooleanbooleanbooleanisSecure()booleanisUserInRole(String role) booleanisWindowStateAllowed(WindowState state) voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetAuthType(String authType) voidsetContextPath(String contextPath) voidvoidsetPortalContext(PortalContext portalContext) voidsetPortletContext(PortletContext context) voidsetPortletMode(PortletMode portletMode) voidsetPortletPreferences(PortletPreferences portletPreferences) voidsetPortletSession(PortletSession session) voidvoidsetServerName(String serverName) voidsetServerPort(int serverPort) voidsetUserPrincipal(Principal principal) voidsetUserPrincipal(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:
getAttributein interfacePortletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletRequest
-
getAuthType
- Specified by:
getAuthTypein interfacePortletRequest
-
getContextPath
- Specified by:
getContextPathin interfacePortletRequest
-
getLocale
- Specified by:
getLocalein interfacePortletRequest
-
getLocales
- Specified by:
getLocalesin interfacePortletRequest
-
getParameter
Deprecated.- Specified by:
getParameterin interfacePortletRequest
-
getParameterMap
Deprecated.- Specified by:
getParameterMapin interfacePortletRequest
-
getParameterNames
Deprecated.- Specified by:
getParameterNamesin interfacePortletRequest
-
getParameterValues
Deprecated.- Specified by:
getParameterValuesin interfacePortletRequest
-
getPortalContext
- Specified by:
getPortalContextin interfacePortletRequest
-
getPortletMode
- Specified by:
getPortletModein interfaceRenderState
-
getPortletSession
- Specified by:
getPortletSessionin interfacePortletRequest
-
getPortletSession
- Specified by:
getPortletSessionin interfacePortletRequest
-
getPreferences
- Specified by:
getPreferencesin interfacePortletRequest
-
getProperties
- Specified by:
getPropertiesin interfacePortletRequest
-
getProperty
- Specified by:
getPropertyin interfacePortletRequest
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacePortletRequest
-
getRemoteUser
- Specified by:
getRemoteUserin interfacePortletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionIdin interfacePortletRequest
-
getResponseContentType
- Specified by:
getResponseContentTypein interfacePortletRequest
-
getResponseContentTypes
- Specified by:
getResponseContentTypesin interfacePortletRequest
-
getScheme
- Specified by:
getSchemein interfacePortletRequest
-
getServerName
- Specified by:
getServerNamein interfacePortletRequest
-
getServerPort
- Specified by:
getServerPortin interfacePortletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfacePortletRequest
-
getWindowState
- Specified by:
getWindowStatein interfaceRenderState
-
isPortletModeAllowed
- Specified by:
isPortletModeAllowedin interfacePortletRequest
-
isRequestedSessionIdValid
- Specified by:
isRequestedSessionIdValidin interfacePortletRequest
-
isSecure
- Specified by:
isSecurein interfacePortletRequest
-
isUserInRole
- Specified by:
isUserInRolein interfacePortletRequest
-
isWindowStateAllowed
- Specified by:
isWindowStateAllowedin interfacePortletRequest
-
removeAttribute
- Specified by:
removeAttributein interfacePortletRequest
-
setAttribute
- Specified by:
setAttributein interfacePortletRequest
-
getRenderParameters
- Specified by:
getRenderParametersin interfaceRenderState
-
getPortletContext
- Specified by:
getPortletContextin interfacePortletRequest
-
getWindowID
- Specified by:
getWindowIDin interfacePortletRequest
-
getCookies
- Specified by:
getCookiesin interfacePortletRequest
-
getPrivateParameterMap
Deprecated.- Specified by:
getPrivateParameterMapin interfacePortletRequest
-
getPublicParameterMap
Deprecated.- Specified by:
getPublicParameterMapin interfacePortletRequest
-
getUserAgent
- Specified by:
getUserAgentin interfacePortletRequest
-