Class MockPortletSession
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletSession
- All Implemented Interfaces:
javax.portlet.PortletSession
Mock Object for
PortletSession-
Field Summary
Fields inherited from interface javax.portlet.PortletSession
APPLICATION_SCOPE, PORTLET_SCOPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) getAttribute(String name, int scope) getAttributeMap(int scope) getAttributeNames(int scope) longgetId()longintjavax.portlet.PortletContextvoidbooleanisNew()voidremoveAttribute(String name) voidremoveAttribute(String name, int scope) voidsetAttribute(String name, Object value) voidsetAttribute(String name, Object value, int scope) voidsetMaxInactiveInterval(int interval) voidsetNew(boolean newSession) voidvoidsetPortletContext(javax.portlet.PortletContext context)
-
Constructor Details
-
MockPortletSession
public MockPortletSession() -
MockPortletSession
-
-
Method Details
-
setPortletContext
-
setNew
-
setNew
-
getAttribute
- Specified by:
getAttributein interfacejavax.portlet.PortletSession
-
getAttribute
- Specified by:
getAttributein interfacejavax.portlet.PortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejavax.portlet.PortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejavax.portlet.PortletSession
-
getCreationTime
- Specified by:
getCreationTimein interfacejavax.portlet.PortletSession
-
getId
- Specified by:
getIdin interfacejavax.portlet.PortletSession
-
getLastAccessedTime
- Specified by:
getLastAccessedTimein interfacejavax.portlet.PortletSession
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveIntervalin interfacejavax.portlet.PortletSession
-
getPortletContext
- Specified by:
getPortletContextin interfacejavax.portlet.PortletSession
-
invalidate
- Specified by:
invalidatein interfacejavax.portlet.PortletSession
-
isNew
- Specified by:
isNewin interfacejavax.portlet.PortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacejavax.portlet.PortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacejavax.portlet.PortletSession
-
setAttribute
- Specified by:
setAttributein interfacejavax.portlet.PortletSession
-
setAttribute
- Specified by:
setAttributein interfacejavax.portlet.PortletSession
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveIntervalin interfacejavax.portlet.PortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacejavax.portlet.PortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacejavax.portlet.PortletSession
-