org.springframework.mock.web.portlet
Class MockPortletSession
java.lang.Object
   org.springframework.mock.web.portlet.MockPortletSession
org.springframework.mock.web.portlet.MockPortletSession
- All Implemented Interfaces: 
- javax.portlet.PortletSession
- public class MockPortletSession 
- extends Object- implements javax.portlet.PortletSession
Mock implementation of the PortletSession interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
 
| Fields inherited from interface javax.portlet.PortletSession | 
| APPLICATION_SCOPE, PORTLET_SCOPE | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MockPortletSession
public MockPortletSession()
- Create a new MockPortletSession with a default MockPortletContext.
 
- See Also:
- MockPortletContext
 
MockPortletSession
public MockPortletSession(javax.portlet.PortletContext portletContext)
- Create a new MockPortletSession.
 
- Parameters:
- portletContext- the PortletContext that the session runs in
 
getAttribute
public Object getAttribute(String name)
- 
- Specified by:
- getAttributein interface- javax.portlet.PortletSession
 
- 
 
getAttribute
public Object getAttribute(String name,
                           int scope)
- 
- Specified by:
- getAttributein interface- javax.portlet.PortletSession
 
- 
 
getAttributeNames
public Enumeration getAttributeNames()
- 
- Specified by:
- getAttributeNamesin interface- javax.portlet.PortletSession
 
- 
 
getAttributeNames
public Enumeration getAttributeNames(int scope)
- 
- Specified by:
- getAttributeNamesin interface- javax.portlet.PortletSession
 
- 
 
getCreationTime
public long getCreationTime()
- 
- Specified by:
- getCreationTimein interface- javax.portlet.PortletSession
 
- 
 
getId
public String getId()
- 
- Specified by:
- getIdin interface- javax.portlet.PortletSession
 
- 
 
access
public void access()
- 
 
- 
 
getLastAccessedTime
public long getLastAccessedTime()
- 
- Specified by:
- getLastAccessedTimein interface- javax.portlet.PortletSession
 
- 
 
getMaxInactiveInterval
public int getMaxInactiveInterval()
- 
- Specified by:
- getMaxInactiveIntervalin interface- javax.portlet.PortletSession
 
- 
 
invalidate
public void invalidate()
- 
- Specified by:
- invalidatein interface- javax.portlet.PortletSession
 
- 
 
isInvalid
public boolean isInvalid()
- 
 
- 
 
setNew
public void setNew(boolean value)
- 
 
- 
 
isNew
public boolean isNew()
- 
- Specified by:
- isNewin interface- javax.portlet.PortletSession
 
- 
 
removeAttribute
public void removeAttribute(String name)
- 
- Specified by:
- removeAttributein interface- javax.portlet.PortletSession
 
- 
 
removeAttribute
public void removeAttribute(String name,
                            int scope)
- 
- Specified by:
- removeAttributein interface- javax.portlet.PortletSession
 
- 
 
setAttribute
public void setAttribute(String name,
                         Object value)
- 
- Specified by:
- setAttributein interface- javax.portlet.PortletSession
 
- 
 
setAttribute
public void setAttribute(String name,
                         Object value,
                         int scope)
- 
- Specified by:
- setAttributein interface- javax.portlet.PortletSession
 
- 
 
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)
- 
- Specified by:
- setMaxInactiveIntervalin interface- javax.portlet.PortletSession
 
- 
 
getPortletContext
public javax.portlet.PortletContext getPortletContext()
- 
- Specified by:
- getPortletContextin interface- javax.portlet.PortletSession
 
- 
 
Copyright © 2002-2008 The Spring Framework.