public class

MockPortletSession

extends Object
java.lang.Object
   ↳ org.springframework.mock.web.portlet.MockPortletSession

Class Overview

Mock implementation of the javax.portlet.PortletSession interface.

Summary

Public Constructors
MockPortletSession()
Create a new MockPortletSession with a default MockPortletContext.
MockPortletSession(PortletContext portletContext)
Create a new MockPortletSession.
Public Methods
void access()
void clearAttributes()
Clear all of this session's attributes.
Object getAttribute(String name)
Object getAttribute(String name, int scope)
Map<StringObject> getAttributeMap()
Map<StringObject> getAttributeMap(int scope)
Enumeration<String> getAttributeNames()
Enumeration<String> getAttributeNames(int scope)
long getCreationTime()
String getId()
long getLastAccessedTime()
int getMaxInactiveInterval()
PortletContext getPortletContext()
void invalidate()
boolean isInvalid()
boolean isNew()
void removeAttribute(String name, int scope)
void removeAttribute(String name)
void setAttribute(String name, Object value, int scope)
void setAttribute(String name, Object value)
void setMaxInactiveInterval(int interval)
void setNew(boolean value)
Protected Methods
void doClearAttributes(Map<StringObject> attributes)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MockPortletSession ()

Create a new MockPortletSession with a default MockPortletContext.

public MockPortletSession (PortletContext portletContext)

Create a new MockPortletSession.

Parameters
portletContext the PortletContext that the session runs in

Public Methods

public void access ()

public void clearAttributes ()

Clear all of this session's attributes.

public Object getAttribute (String name)

public Object getAttribute (String name, int scope)

public Map<StringObject> getAttributeMap ()

public Map<StringObject> getAttributeMap (int scope)

public Enumeration<String> getAttributeNames ()

public Enumeration<String> getAttributeNames (int scope)

public long getCreationTime ()

public String getId ()

public long getLastAccessedTime ()

public int getMaxInactiveInterval ()

public PortletContext getPortletContext ()

public void invalidate ()

public boolean isInvalid ()

public boolean isNew ()

public void removeAttribute (String name, int scope)

public void removeAttribute (String name)

public void setAttribute (String name, Object value, int scope)

public void setAttribute (String name, Object value)

public void setMaxInactiveInterval (int interval)

public void setNew (boolean value)

Protected Methods

protected void doClearAttributes (Map<StringObject> attributes)