public class PortletSessionImpl
extends java.lang.Object
implements javax.portlet.PortletSession, javax.servlet.http.HttpSession
Constructor and Description |
---|
PortletSessionImpl(PortletWindow portletWindow,
javax.servlet.http.HttpSession httpSession) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
java.lang.Object |
getAttribute(java.lang.String name,
int 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.
As of Java(tm) Servlet API 2.1 for security reasons,
with no replacement. This interface will be removed
in a future version of this API.
|
java.lang.Object |
getValue(java.lang.String name) |
java.lang.String[] |
getValueNames() |
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) |
public PortletSessionImpl(PortletWindow portletWindow, javax.servlet.http.HttpSession httpSession)
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.portlet.PortletSession
getAttribute
in interface javax.servlet.http.HttpSession
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.portlet.PortletSession
getAttributeNames
in interface javax.servlet.http.HttpSession
public long getCreationTime() throws java.lang.IllegalStateException
getCreationTime
in interface javax.portlet.PortletSession
getCreationTime
in interface javax.servlet.http.HttpSession
java.lang.IllegalStateException
public java.lang.String getId() throws java.lang.IllegalStateException
getId
in interface javax.portlet.PortletSession
getId
in interface javax.servlet.http.HttpSession
java.lang.IllegalStateException
public long getLastAccessedTime() throws java.lang.IllegalStateException
getLastAccessedTime
in interface javax.portlet.PortletSession
getLastAccessedTime
in interface javax.servlet.http.HttpSession
java.lang.IllegalStateException
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.portlet.PortletSession
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public void invalidate() throws java.lang.IllegalStateException
invalidate
in interface javax.portlet.PortletSession
invalidate
in interface javax.servlet.http.HttpSession
java.lang.IllegalStateException
public boolean isNew() throws java.lang.IllegalStateException
isNew
in interface javax.portlet.PortletSession
isNew
in interface javax.servlet.http.HttpSession
java.lang.IllegalStateException
public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.portlet.PortletSession
removeAttribute
in interface javax.servlet.http.HttpSession
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface javax.portlet.PortletSession
setAttribute
in interface javax.servlet.http.HttpSession
public void setMaxInactiveInterval(int interval)
setMaxInactiveInterval
in interface javax.portlet.PortletSession
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public java.lang.Object getAttribute(java.lang.String name, int scope) throws java.lang.IllegalStateException
getAttribute
in interface javax.portlet.PortletSession
java.lang.IllegalStateException
public java.util.Enumeration getAttributeNames(int scope)
getAttributeNames
in interface javax.portlet.PortletSession
public void removeAttribute(java.lang.String name, int scope) throws java.lang.IllegalStateException
removeAttribute
in interface javax.portlet.PortletSession
java.lang.IllegalStateException
public void setAttribute(java.lang.String name, java.lang.Object value, int scope) throws java.lang.IllegalStateException
setAttribute
in interface javax.portlet.PortletSession
java.lang.IllegalStateException
public javax.portlet.PortletContext getPortletContext()
getPortletContext
in interface javax.portlet.PortletSession
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
Copyright © 2003-2013 . All Rights Reserved.