org.apache.pluto.core.impl
Class PortletSessionImpl

java.lang.Object
  extended by org.apache.pluto.core.impl.PortletSessionImpl

public class PortletSessionImpl
extends java.lang.Object


Field Summary
private  int DEFAULT_SCOPE
           
private  javax.servlet.http.HttpSession httpSession
           
private  PortletContext portletContext
           
private  PortletWindow portletWindow
           
 
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()
           
private  PortletContext getInternalPortletContext()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 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
 

Field Detail

DEFAULT_SCOPE

private final int DEFAULT_SCOPE

httpSession

private javax.servlet.http.HttpSession httpSession

portletContext

private PortletContext portletContext

portletWindow

private PortletWindow portletWindow
Constructor Detail

PortletSessionImpl

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

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

getAttributeNames

public java.util.Enumeration getAttributeNames()

getCreationTime

public long getCreationTime()
                     throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getId

public java.lang.String getId()
                       throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getLastAccessedTime

public long getLastAccessedTime()
                         throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getMaxInactiveInterval

public int getMaxInactiveInterval()

invalidate

public void invalidate()
                throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

isNew

public boolean isNew()
              throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

removeAttribute

public void removeAttribute(java.lang.String name)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     int scope)
                              throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getAttributeNames

public java.util.Enumeration getAttributeNames(int scope)

removeAttribute

public void removeAttribute(java.lang.String name,
                            int scope)
                     throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value,
                         int scope)
                  throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getPortletContext

public PortletContext getPortletContext()

getServletContext

public javax.servlet.ServletContext getServletContext()

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.


getValue

public java.lang.Object getValue(java.lang.String name)

getValueNames

public java.lang.String[] getValueNames()

putValue

public void putValue(java.lang.String name,
                     java.lang.Object value)

removeValue

public void removeValue(java.lang.String name)

getInternalPortletContext

private PortletContext getInternalPortletContext()