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
ConstructorsConstructorDescriptionJavaxPortletMockActionRequest(byte[] requestData, String contentType) JavaxPortletMockActionRequest(ByteArrayInputStream requestData, int length, String contentType) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) intgetParameter(String key) String[]getParameterValues(String arg0) javax.portlet.PortalContextjavax.portlet.PortletModejavax.portlet.PortletSessionjavax.portlet.PortletSessiongetPortletSession(boolean arg0) javax.portlet.PortletPreferencesgetProperties(String arg0) getProperty(String arg0) intjavax.portlet.WindowStatebooleanisPortletModeAllowed(javax.portlet.PortletMode arg0) booleanbooleanisSecure()booleanisUserInRole(String arg0) booleanisWindowStateAllowed(javax.portlet.WindowState arg0) voidremoveAttribute(String key) voidsetAttribute(String key, Object value) voidsetCharacterEncoding(String characterEncoding)
-
Constructor Details
-
JavaxPortletMockActionRequest
-
JavaxPortletMockActionRequest
public JavaxPortletMockActionRequest(ByteArrayInputStream requestData, int length, String contentType)
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfacejavax.portlet.PortletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejavax.portlet.PortletRequest
-
getAuthType
- Specified by:
getAuthTypein interfacejavax.portlet.PortletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfacejavax.portlet.ActionRequest
-
getContentLength
- Specified by:
getContentLengthin interfacejavax.portlet.ActionRequest
-
getContentType
- Specified by:
getContentTypein interfacejavax.portlet.ActionRequest
-
getContextPath
- Specified by:
getContextPathin interfacejavax.portlet.PortletRequest
-
getLocale
- Specified by:
getLocalein interfacejavax.portlet.PortletRequest
-
getLocales
- Specified by:
getLocalesin interfacejavax.portlet.PortletRequest
-
getParameter
- Specified by:
getParameterin interfacejavax.portlet.PortletRequest
-
getParameterMap
- Specified by:
getParameterMapin interfacejavax.portlet.PortletRequest
-
getParameterNames
- Specified by:
getParameterNamesin interfacejavax.portlet.PortletRequest
-
getParameterValues
- Specified by:
getParameterValuesin interfacejavax.portlet.PortletRequest
-
getPortalContext
- Specified by:
getPortalContextin interfacejavax.portlet.PortletRequest
-
getPortletInputStream
- Specified by:
getPortletInputStreamin interfacejavax.portlet.ActionRequest- Throws:
IOException
-
getPortletMode
- Specified by:
getPortletModein interfacejavax.portlet.PortletRequest
-
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
-
getReader
- Specified by:
getReaderin interfacejavax.portlet.ActionRequest- Throws:
UnsupportedEncodingExceptionIOException
-
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.PortletRequest
-
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
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfacejavax.portlet.ActionRequest- Throws:
UnsupportedEncodingException
-