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