Class MockPortletContext
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletContext
- All Implemented Interfaces:
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
getNamedDispatcher
(String name) getRealPath
(String path) 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 interfacePortletContext
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacePortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacePortletContext
-
getMajorVersion
- Specified by:
getMajorVersion
in interfacePortletContext
-
getMimeType
- Specified by:
getMimeType
in interfacePortletContext
-
getMinorVersion
- Specified by:
getMinorVersion
in interfacePortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcher
in interfacePortletContext
-
getPortletContextName
- Specified by:
getPortletContextName
in interfacePortletContext
-
getRealPath
- Specified by:
getRealPath
in interfacePortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacePortletContext
-
getResource
- Specified by:
getResource
in interfacePortletContext
- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfacePortletContext
-
getResourcePaths
- Specified by:
getResourcePaths
in interfacePortletContext
-
getServerInfo
- Specified by:
getServerInfo
in interfacePortletContext
-
log
- Specified by:
log
in interfacePortletContext
-
log
- Specified by:
log
in interfacePortletContext
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletContext
-
setAttribute
- Specified by:
setAttribute
in interfacePortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptions
in interfacePortletContext
-
getEffectiveMajorVersion
- Specified by:
getEffectiveMajorVersion
in interfacePortletContext
-
getEffectiveMinorVersion
- Specified by:
getEffectiveMinorVersion
in interfacePortletContext
-
getContextPath
- Specified by:
getContextPath
in interfacePortletContext
-
getClassLoader
- Specified by:
getClassLoader
in interfacePortletContext
-