Class JavaxPortletMockActionRequest
java.lang.Object
org.apache.commons.fileupload2.portlet.JavaxPortletMockActionRequest
- All Implemented Interfaces:
javax.portlet.ActionRequest
,javax.portlet.PortletRequest
Mock class for tests. Implements an
ActionRequest
.- See Also:
-
Field Summary
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
-
Constructor Summary
ConstructorDescriptionJavaxPortletMockActionRequest
(byte[] requestData, String contentType) JavaxPortletMockActionRequest
(ByteArrayInputStream requestData, int length, String contentType) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) int
getParameter
(String key) String[]
getParameterValues
(String arg0) javax.portlet.PortalContext
javax.portlet.PortletMode
javax.portlet.PortletSession
javax.portlet.PortletSession
getPortletSession
(boolean arg0) javax.portlet.PortletPreferences
getProperties
(String arg0) getProperty
(String arg0) int
javax.portlet.WindowState
boolean
isPortletModeAllowed
(javax.portlet.PortletMode arg0) boolean
boolean
isSecure()
boolean
isUserInRole
(String arg0) boolean
isWindowStateAllowed
(javax.portlet.WindowState arg0) void
removeAttribute
(String key) void
setAttribute
(String key, Object value) void
setCharacterEncoding
(String characterEncoding)
-
Constructor Details
-
JavaxPortletMockActionRequest
-
JavaxPortletMockActionRequest
public JavaxPortletMockActionRequest(ByteArrayInputStream requestData, int length, String contentType)
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.portlet.PortletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.portlet.PortletRequest
-
getAuthType
- Specified by:
getAuthType
in interfacejavax.portlet.PortletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfacejavax.portlet.ActionRequest
-
getContentLength
- Specified by:
getContentLength
in interfacejavax.portlet.ActionRequest
-
getContentType
- Specified by:
getContentType
in interfacejavax.portlet.ActionRequest
-
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
- Specified by:
getParameter
in interfacejavax.portlet.PortletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfacejavax.portlet.PortletRequest
-
getParameterNames
- Specified by:
getParameterNames
in interfacejavax.portlet.PortletRequest
-
getParameterValues
- Specified by:
getParameterValues
in interfacejavax.portlet.PortletRequest
-
getPortalContext
- Specified by:
getPortalContext
in interfacejavax.portlet.PortletRequest
-
getPortletInputStream
- Specified by:
getPortletInputStream
in interfacejavax.portlet.ActionRequest
- Throws:
IOException
-
getPortletMode
- Specified by:
getPortletMode
in interfacejavax.portlet.PortletRequest
-
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
-
getReader
- Specified by:
getReader
in interfacejavax.portlet.ActionRequest
- Throws:
UnsupportedEncodingException
IOException
-
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.PortletRequest
-
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
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfacejavax.portlet.ActionRequest
- Throws:
UnsupportedEncodingException
-