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.PortletSessiongetAttribute in interface javax.servlet.http.HttpSessionpublic java.util.Enumeration getAttributeNames()
getAttributeNames in interface javax.portlet.PortletSessiongetAttributeNames in interface javax.servlet.http.HttpSessionpublic long getCreationTime()
throws java.lang.IllegalStateException
getCreationTime in interface javax.portlet.PortletSessiongetCreationTime in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateExceptionpublic java.lang.String getId()
throws java.lang.IllegalStateException
getId in interface javax.portlet.PortletSessiongetId in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateExceptionpublic long getLastAccessedTime()
throws java.lang.IllegalStateException
getLastAccessedTime in interface javax.portlet.PortletSessiongetLastAccessedTime in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateExceptionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.portlet.PortletSessiongetMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic void invalidate()
throws java.lang.IllegalStateException
invalidate in interface javax.portlet.PortletSessioninvalidate in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateExceptionpublic boolean isNew()
throws java.lang.IllegalStateException
isNew in interface javax.portlet.PortletSessionisNew in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateExceptionpublic void removeAttribute(java.lang.String name)
removeAttribute in interface javax.portlet.PortletSessionremoveAttribute in interface javax.servlet.http.HttpSessionpublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface javax.portlet.PortletSessionsetAttribute in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.portlet.PortletSessionsetMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic java.lang.Object getAttribute(java.lang.String name,
int scope)
throws java.lang.IllegalStateException
getAttribute in interface javax.portlet.PortletSessionjava.lang.IllegalStateExceptionpublic java.util.Enumeration getAttributeNames(int scope)
getAttributeNames in interface javax.portlet.PortletSessionpublic void removeAttribute(java.lang.String name,
int scope)
throws java.lang.IllegalStateException
removeAttribute in interface javax.portlet.PortletSessionjava.lang.IllegalStateExceptionpublic void setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
throws java.lang.IllegalStateException
setAttribute in interface javax.portlet.PortletSessionjava.lang.IllegalStateExceptionpublic javax.portlet.PortletContext getPortletContext()
getPortletContext in interface javax.portlet.PortletSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionpublic java.lang.Object getValue(java.lang.String name)
getValue in interface javax.servlet.http.HttpSessionpublic java.lang.String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSessionpublic void putValue(java.lang.String name,
java.lang.Object value)
putValue in interface javax.servlet.http.HttpSessionpublic void removeValue(java.lang.String name)
removeValue in interface javax.servlet.http.HttpSessionCopyright © 2003-2013 . All Rights Reserved.