Class MockPortletContext
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletContext
- All Implemented Interfaces:
javax.portlet.PortletContext
Mock Object for
PortletContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInitParameter
(String name, String value) getAttribute
(String name) int
int
getInitParameter
(String name) int
getMimeType
(String path) int
javax.portlet.PortletRequestDispatcher
getNamedDispatcher
(String name) getRealPath
(String path) javax.portlet.PortletRequestDispatcher
getRequestDispatcher
(String path) getResource
(String path) getResourceAsStream
(String path) getResourcePaths
(String path) void
void
void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
setPortletContextName
(String portletContextName) void
setServerInfo
(String serverInfo)
-
Constructor Details
-
MockPortletContext
public MockPortletContext()The Default-Constructor for this class.
-
-
Method Details
-
setPortletContextName
-
setServerInfo
-
addInitParameter
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.portlet.PortletContext
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.portlet.PortletContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacejavax.portlet.PortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacejavax.portlet.PortletContext
-
getMajorVersion
- Specified by:
getMajorVersion
in interfacejavax.portlet.PortletContext
-
getMimeType
- Specified by:
getMimeType
in interfacejavax.portlet.PortletContext
-
getMinorVersion
- Specified by:
getMinorVersion
in interfacejavax.portlet.PortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcher
in interfacejavax.portlet.PortletContext
-
getPortletContextName
- Specified by:
getPortletContextName
in interfacejavax.portlet.PortletContext
-
getRealPath
- Specified by:
getRealPath
in interfacejavax.portlet.PortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejavax.portlet.PortletContext
-
getResource
- Specified by:
getResource
in interfacejavax.portlet.PortletContext
- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfacejavax.portlet.PortletContext
-
getResourcePaths
- Specified by:
getResourcePaths
in interfacejavax.portlet.PortletContext
-
getServerInfo
- Specified by:
getServerInfo
in interfacejavax.portlet.PortletContext
-
log
- Specified by:
log
in interfacejavax.portlet.PortletContext
-
log
- Specified by:
log
in interfacejavax.portlet.PortletContext
-
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.portlet.PortletContext
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.portlet.PortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptions
in interfacejavax.portlet.PortletContext
-
getEffectiveMajorVersion
- Specified by:
getEffectiveMajorVersion
in interfacejavax.portlet.PortletContext
-
getEffectiveMinorVersion
- Specified by:
getEffectiveMinorVersion
in interfacejavax.portlet.PortletContext
-
getContextPath
- Specified by:
getContextPath
in interfacejavax.portlet.PortletContext
-
getClassLoader
- Specified by:
getClassLoader
in interfacejavax.portlet.PortletContext
-