org.apache.pluto.core.impl
Class PortletSessionImpl

java.lang.Object
  extended byorg.apache.pluto.core.impl.PortletSessionImpl
All Implemented Interfaces:
javax.servlet.http.HttpSession, javax.portlet.PortletSession

public class PortletSessionImpl
extends java.lang.Object
implements javax.portlet.PortletSession, javax.servlet.http.HttpSession


Field Summary
 
Fields inherited from interface javax.portlet.PortletSession
APPLICATION_SCOPE, PORTLET_SCOPE
 
Constructor Summary
PortletSessionImpl(PortletWindow portletWindow, javax.servlet.http.HttpSession httpSession)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletSessionImpl

public PortletSessionImpl(PortletWindow portletWindow,
                          javax.servlet.http.HttpSession httpSession)
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface javax.portlet.PortletSession

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.portlet.PortletSession

getCreationTime

public long getCreationTime()
                     throws java.lang.IllegalStateException
Specified by:
getCreationTime in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

getId

public java.lang.String getId()
                       throws java.lang.IllegalStateException
Specified by:
getId in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

getLastAccessedTime

public long getLastAccessedTime()
                         throws java.lang.IllegalStateException
Specified by:
getLastAccessedTime in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.portlet.PortletSession

invalidate

public void invalidate()
                throws java.lang.IllegalStateException
Specified by:
invalidate in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

isNew

public boolean isNew()
              throws java.lang.IllegalStateException
Specified by:
isNew in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface javax.portlet.PortletSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface javax.portlet.PortletSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface javax.portlet.PortletSession

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     int scope)
                              throws java.lang.IllegalStateException
Specified by:
getAttribute in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

getAttributeNames

public java.util.Enumeration getAttributeNames(int scope)
Specified by:
getAttributeNames in interface javax.portlet.PortletSession

removeAttribute

public void removeAttribute(java.lang.String name,
                            int scope)
                     throws java.lang.IllegalStateException
Specified by:
removeAttribute in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value,
                         int scope)
                  throws java.lang.IllegalStateException
Specified by:
setAttribute in interface javax.portlet.PortletSession
Throws:
java.lang.IllegalStateException

getPortletContext

public javax.portlet.PortletContext getPortletContext()
Specified by:
getPortletContext in interface javax.portlet.PortletSession

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface javax.servlet.http.HttpSession

getSessionContext

public 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.

Specified by:
getSessionContext in interface javax.servlet.http.HttpSession

getValue

public java.lang.Object getValue(java.lang.String name)
Specified by:
getValue in interface javax.servlet.http.HttpSession

getValueNames

public java.lang.String[] getValueNames()
Specified by:
getValueNames in interface javax.servlet.http.HttpSession

putValue

public void putValue(java.lang.String name,
                     java.lang.Object value)
Specified by:
putValue in interface javax.servlet.http.HttpSession

removeValue

public void removeValue(java.lang.String name)
Specified by:
removeValue in interface javax.servlet.http.HttpSession


Copyright © 2003-2005 . All Rights Reserved.