public class MockPortletSession extends Object implements javax.portlet.PortletSession
| Constructor and Description |
|---|
MockPortletSession() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Object |
getAttribute(String name,
int scope) |
Map<String,Object> |
getAttributeMap() |
Map<String,Object> |
getAttributeMap(int scope) |
Enumeration<String> |
getAttributeNames() |
Enumeration<String> |
getAttributeNames(int scope) |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.portlet.PortletContext |
getPortletContext() |
void |
invalidate() |
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) |
public Object getAttribute(String name)
getAttribute in interface javax.portlet.PortletSessionpublic Object getAttribute(String name, int scope)
getAttribute in interface javax.portlet.PortletSessionpublic Enumeration<String> getAttributeNames(int scope)
getAttributeNames in interface javax.portlet.PortletSessionpublic long getCreationTime()
getCreationTime in interface javax.portlet.PortletSessionpublic String getId()
getId in interface javax.portlet.PortletSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface javax.portlet.PortletSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.portlet.PortletSessionpublic void invalidate()
invalidate in interface javax.portlet.PortletSessionpublic boolean isNew()
isNew in interface javax.portlet.PortletSessionpublic void removeAttribute(String name)
removeAttribute in interface javax.portlet.PortletSessionpublic void removeAttribute(String name, int scope)
removeAttribute in interface javax.portlet.PortletSessionpublic void setAttribute(String name, Object value)
setAttribute in interface javax.portlet.PortletSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.portlet.PortletSessionpublic void setAttribute(String name, Object value, int scope)
setAttribute in interface javax.portlet.PortletSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.portlet.PortletSessionpublic javax.portlet.PortletContext getPortletContext()
getPortletContext in interface javax.portlet.PortletSessionpublic Map<String,Object> getAttributeMap()
getAttributeMap in interface javax.portlet.PortletSessionCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.