|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.test.mock.MockPortletSession
public class MockPortletSession
Mock implementation of PortletSession
.
Field Summary |
---|
Fields inherited from interface javax.portlet.PortletSession |
---|
APPLICATION_SCOPE, PORTLET_SCOPE |
Constructor Summary | |
---|---|
MockPortletSession()
Configure a default instance. |
|
MockPortletSession(javax.portlet.PortletContext portletContext)
Configure a session instance associated with the specified servlet context. |
Method Summary | |
---|---|
Object |
getAttribute(String name)
|
Object |
getAttribute(String name,
int scope)
|
Enumeration |
getAttributeNames()
|
Enumeration |
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 |
setId(String id)
Set the session identifier of this session. |
void |
setMaxInactiveInterval(int arg0)
|
void |
setPortletContext(javax.portlet.PortletContext portletContext)
Set the PortletContext associated with this session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockPortletSession()
Configure a default instance.
public MockPortletSession(javax.portlet.PortletContext portletContext)
Configure a session instance associated with the specified servlet context.
servletContext
- The associated servlet contextMethod Detail |
---|
public void setPortletContext(javax.portlet.PortletContext portletContext)
Set the PortletContext
associated with this session.
servletContext
- The associated servlet contextpublic void setId(String id)
Set the session identifier of this session.
id
- The new session identifierpublic Object getAttribute(String name)
getAttribute
in interface javax.portlet.PortletSession
public Object getAttribute(String name, int scope)
getAttribute
in interface javax.portlet.PortletSession
public Enumeration getAttributeNames()
getAttributeNames
in interface javax.portlet.PortletSession
public Enumeration getAttributeNames(int scope)
getAttributeNames
in interface javax.portlet.PortletSession
public long getCreationTime()
getCreationTime
in interface javax.portlet.PortletSession
public String getId()
getId
in interface javax.portlet.PortletSession
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.portlet.PortletSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.portlet.PortletSession
public javax.portlet.PortletContext getPortletContext()
getPortletContext
in interface javax.portlet.PortletSession
public void invalidate()
invalidate
in interface javax.portlet.PortletSession
public boolean isNew()
isNew
in interface javax.portlet.PortletSession
public void removeAttribute(String name)
removeAttribute
in interface javax.portlet.PortletSession
public void removeAttribute(String name, int scope)
removeAttribute
in interface javax.portlet.PortletSession
public void setAttribute(String name, Object value)
setAttribute
in interface javax.portlet.PortletSession
public void setAttribute(String name, Object value, int scope)
setAttribute
in interface javax.portlet.PortletSession
public void setMaxInactiveInterval(int arg0)
setMaxInactiveInterval
in interface javax.portlet.PortletSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |