Class MockPortletContext
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletContext
- All Implemented Interfaces:
PortletContext
Mock Object for
PortletContext-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInitParameter(String name, String value) getAttribute(String name) intintgetInitParameter(String name) intgetMimeType(String path) intgetNamedDispatcher(String name) getRealPath(String path) getRequestDispatcher(String path) getResource(String path) getResourceAsStream(String path) getResourcePaths(String path) voidvoidvoidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetPortletContextName(String portletContextName) voidsetServerInfo(String serverInfo)
-
Constructor Details
-
MockPortletContext
public MockPortletContext()The Default-Constructor for this class.
-
-
Method Details
-
setPortletContextName
-
setServerInfo
-
addInitParameter
-
getAttribute
- Specified by:
getAttributein interfacePortletContext
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletContext
-
getInitParameter
- Specified by:
getInitParameterin interfacePortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNamesin interfacePortletContext
-
getMajorVersion
- Specified by:
getMajorVersionin interfacePortletContext
-
getMimeType
- Specified by:
getMimeTypein interfacePortletContext
-
getMinorVersion
- Specified by:
getMinorVersionin interfacePortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcherin interfacePortletContext
-
getPortletContextName
- Specified by:
getPortletContextNamein interfacePortletContext
-
getRealPath
- Specified by:
getRealPathin interfacePortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfacePortletContext
-
getResource
- Specified by:
getResourcein interfacePortletContext- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStreamin interfacePortletContext
-
getResourcePaths
- Specified by:
getResourcePathsin interfacePortletContext
-
getServerInfo
- Specified by:
getServerInfoin interfacePortletContext
-
log
- Specified by:
login interfacePortletContext
-
log
- Specified by:
login interfacePortletContext
-
removeAttribute
- Specified by:
removeAttributein interfacePortletContext
-
setAttribute
- Specified by:
setAttributein interfacePortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptionsin interfacePortletContext
-
getEffectiveMajorVersion
- Specified by:
getEffectiveMajorVersionin interfacePortletContext
-
getEffectiveMinorVersion
- Specified by:
getEffectiveMinorVersionin interfacePortletContext
-
getContextPath
- Specified by:
getContextPathin interfacePortletContext
-
getClassLoader
- Specified by:
getClassLoaderin interfacePortletContext
-