Class MockPortletSession
java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletSession
- All Implemented Interfaces:
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()longintvoidbooleanisNew()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(PortletContext context)
-
Constructor Details
-
MockPortletSession
public MockPortletSession() -
MockPortletSession
-
-
Method Details
-
setPortletContext
-
setNew
-
setNew
-
getAttribute
- Specified by:
getAttributein interfacePortletSession
-
getAttribute
- Specified by:
getAttributein interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletSession
-
getCreationTime
- Specified by:
getCreationTimein interfacePortletSession
-
getId
- Specified by:
getIdin interfacePortletSession
-
getLastAccessedTime
- Specified by:
getLastAccessedTimein interfacePortletSession
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveIntervalin interfacePortletSession
-
getPortletContext
- Specified by:
getPortletContextin interfacePortletSession
-
invalidate
- Specified by:
invalidatein interfacePortletSession
-
isNew
- Specified by:
isNewin interfacePortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacePortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacePortletSession
-
setAttribute
- Specified by:
setAttributein interfacePortletSession
-
setAttribute
- Specified by:
setAttributein interfacePortletSession
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveIntervalin interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacePortletSession
-