Class MockPortletContext
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletContext
- All Implemented Interfaces:
javax.portlet.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) intjavax.portlet.PortletRequestDispatchergetNamedDispatcher(String name) getRealPath(String path) javax.portlet.PortletRequestDispatchergetRequestDispatcher(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 interfacejavax.portlet.PortletContext
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejavax.portlet.PortletContext
-
getInitParameter
- Specified by:
getInitParameterin interfacejavax.portlet.PortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNamesin interfacejavax.portlet.PortletContext
-
getMajorVersion
- Specified by:
getMajorVersionin interfacejavax.portlet.PortletContext
-
getMimeType
- Specified by:
getMimeTypein interfacejavax.portlet.PortletContext
-
getMinorVersion
- Specified by:
getMinorVersionin interfacejavax.portlet.PortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcherin interfacejavax.portlet.PortletContext
-
getPortletContextName
- Specified by:
getPortletContextNamein interfacejavax.portlet.PortletContext
-
getRealPath
- Specified by:
getRealPathin interfacejavax.portlet.PortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfacejavax.portlet.PortletContext
-
getResource
- Specified by:
getResourcein interfacejavax.portlet.PortletContext- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStreamin interfacejavax.portlet.PortletContext
-
getResourcePaths
- Specified by:
getResourcePathsin interfacejavax.portlet.PortletContext
-
getServerInfo
- Specified by:
getServerInfoin interfacejavax.portlet.PortletContext
-
log
- Specified by:
login interfacejavax.portlet.PortletContext
-
log
- Specified by:
login interfacejavax.portlet.PortletContext
-
removeAttribute
- Specified by:
removeAttributein interfacejavax.portlet.PortletContext
-
setAttribute
- Specified by:
setAttributein interfacejavax.portlet.PortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptionsin interfacejavax.portlet.PortletContext
-
getEffectiveMajorVersion
- Specified by:
getEffectiveMajorVersionin interfacejavax.portlet.PortletContext
-
getEffectiveMinorVersion
- Specified by:
getEffectiveMinorVersionin interfacejavax.portlet.PortletContext
-
getContextPath
- Specified by:
getContextPathin interfacejavax.portlet.PortletContext
-
getClassLoader
- Specified by:
getClassLoaderin interfacejavax.portlet.PortletContext
-