|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.internal.impl.PortletSessionImpl
Implementation of the javax.portlet.PortletSession
interface.
Field Summary |
Fields inherited from interface javax.portlet.PortletSession |
APPLICATION_SCOPE, PORTLET_SCOPE |
Constructor Summary | |
PortletSessionImpl(javax.portlet.PortletContext portletContext,
InternalPortletWindow internalPortletWindow,
javax.servlet.http.HttpSession httpSession)
Constructs an instance. |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Returns the attribute of the specified name under the given scope. |
java.util.Enumeration |
getAttributeNames()
|
java.util.Enumeration |
getAttributeNames(int scope)
|
long |
getCreationTime()
|
java.lang.String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
javax.portlet.PortletContext |
getPortletContext()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated. |
java.lang.Object |
getValue(java.lang.String name)
|
java.lang.String[] |
getValueNames()
Deprecated. |
void |
invalidate()
|
boolean |
isNew()
|
void |
putValue(java.lang.String name,
java.lang.Object value)
|
void |
removeAttribute(java.lang.String name)
|
void |
removeAttribute(java.lang.String name,
int scope)
|
void |
removeValue(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
|
void |
setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests, before the portlet container invalidates this session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortletSessionImpl(javax.portlet.PortletContext portletContext, InternalPortletWindow internalPortletWindow, javax.servlet.http.HttpSession httpSession)
Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.portlet.PortletSession
public java.lang.Object getAttribute(java.lang.String name, int scope)
getAttribute
in interface javax.portlet.PortletSession
name
- the attribute name.scope
- the scope under which the attribute object is stored.
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.portlet.PortletSession
public java.util.Enumeration getAttributeNames(int scope)
getAttributeNames
in interface javax.portlet.PortletSession
public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.portlet.PortletSession
public void removeAttribute(java.lang.String name, int scope)
removeAttribute
in interface javax.portlet.PortletSession
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface javax.portlet.PortletSession
public void setAttribute(java.lang.String name, java.lang.Object value, int scope)
setAttribute
in interface javax.portlet.PortletSession
public javax.portlet.PortletContext getPortletContext()
getPortletContext
in interface javax.portlet.PortletSession
public long getCreationTime()
getCreationTime
in interface javax.portlet.PortletSession
public java.lang.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 void invalidate() throws java.lang.IllegalStateException
invalidate
in interface javax.portlet.PortletSession
java.lang.IllegalStateException
public boolean isNew() throws java.lang.IllegalStateException
isNew
in interface javax.portlet.PortletSession
java.lang.IllegalStateException
public void setMaxInactiveInterval(int interval)
[Portlet Spec. PLT. 15.4.] If the PortletSession object is invalidated by a portlet, the portlet container must invalidate the associated HttpSession object.
setMaxInactiveInterval
in interface javax.portlet.PortletSession
interval
- an integer specifying the number of seconds.public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
public java.lang.Object getValue(java.lang.String name)
getValue
in interface javax.servlet.http.HttpSession
public java.lang.String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
public void putValue(java.lang.String name, java.lang.Object value)
putValue
in interface javax.servlet.http.HttpSession
public void removeValue(java.lang.String name)
removeValue
in interface javax.servlet.http.HttpSession
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |