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
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) getAttribute
(String name, int scope) getAttributeMap
(int scope) getAttributeNames
(int scope) long
getId()
long
int
void
boolean
isNew()
void
removeAttribute
(String name) void
removeAttribute
(String name, int scope) void
setAttribute
(String name, Object value) void
setAttribute
(String name, Object value, int scope) void
setMaxInactiveInterval
(int interval) void
setNew
(boolean newSession) void
void
setPortletContext
(PortletContext context)
-
Constructor Details
-
MockPortletSession
public MockPortletSession() -
MockPortletSession
-
-
Method Details
-
setPortletContext
-
setNew
-
setNew
-
getAttribute
- Specified by:
getAttribute
in interfacePortletSession
-
getAttribute
- Specified by:
getAttribute
in interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletSession
-
getCreationTime
- Specified by:
getCreationTime
in interfacePortletSession
-
getId
- Specified by:
getId
in interfacePortletSession
-
getLastAccessedTime
- Specified by:
getLastAccessedTime
in interfacePortletSession
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveInterval
in interfacePortletSession
-
getPortletContext
- Specified by:
getPortletContext
in interfacePortletSession
-
invalidate
- Specified by:
invalidate
in interfacePortletSession
-
isNew
- Specified by:
isNew
in interfacePortletSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletSession
-
setAttribute
- Specified by:
setAttribute
in interfacePortletSession
-
setAttribute
- Specified by:
setAttribute
in interfacePortletSession
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveInterval
in interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMap
in interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMap
in interfacePortletSession
-