org.openqa.jetty.jetty.servlet
Class AbstractSessionManager.Session

java.lang.Object
  extended by org.openqa.jetty.jetty.servlet.AbstractSessionManager.Session
All Implemented Interfaces:
javax.servlet.http.HttpSession, SessionManager.Session
Direct Known Subclasses:
HashSessionManager.Session
Enclosing class:
AbstractSessionManager

public abstract class AbstractSessionManager.Session
extends java.lang.Object
implements SessionManager.Session


Constructor Summary
protected AbstractSessionManager.Session(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 void access()
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 long getCreationTime()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSessionContext getSessionContext()
          Deprecated.  
 java.lang.Object getValue(java.lang.String name)
          Deprecated. As of Version 2.2, this method is replaced by getAttribute(java.lang.String)
 java.lang.String[] getValueNames()
          Deprecated. As of Version 2.2, this method is replaced by getAttributeNames()
 void invalidate()
           
 boolean isNew()
           
 boolean isValid()
           
protected abstract  java.util.Map newAttributeMap()
           
 void putValue(java.lang.String name, java.lang.Object value)
          Deprecated. As of Version 2.2, this method is replaced by setAttribute(java.lang.String, java.lang.Object)
 void removeAttribute(java.lang.String name)
           
 void removeValue(java.lang.String name)
          Deprecated. As of Version 2.2, this method is replaced by removeAttribute(java.lang.String)
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setMaxInactiveInterval(int secs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSessionManager.Session

protected AbstractSessionManager.Session(javax.servlet.http.HttpServletRequest request)
Method Detail

newAttributeMap

protected abstract java.util.Map newAttributeMap()

access

public void access()
Specified by:
access in interface SessionManager.Session

isValid

public boolean isValid()
Specified by:
isValid in interface SessionManager.Session

getServletContext

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

getId

public java.lang.String getId()
                       throws java.lang.IllegalStateException
Specified by:
getId in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

getCreationTime

public long getCreationTime()
                     throws java.lang.IllegalStateException
Specified by:
getCreationTime in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

getLastAccessedTime

public long getLastAccessedTime()
                         throws java.lang.IllegalStateException
Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
                                                        throws java.lang.IllegalStateException
Deprecated. 

Specified by:
getSessionContext in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

setMaxInactiveInterval

public void setMaxInactiveInterval(int secs)
Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession

invalidate

public void invalidate()
                throws java.lang.IllegalStateException
Specified by:
invalidate in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

isNew

public boolean isNew()
              throws java.lang.IllegalStateException
Specified by:
isNew in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

getAttribute

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

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession

setAttribute

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

removeAttribute

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

getValue

public java.lang.Object getValue(java.lang.String name)
                          throws java.lang.IllegalStateException
Deprecated. As of Version 2.2, this method is replaced by getAttribute(java.lang.String)

Specified by:
getValue in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

getValueNames

public java.lang.String[] getValueNames()
                                 throws java.lang.IllegalStateException
Deprecated. As of Version 2.2, this method is replaced by getAttributeNames()

Specified by:
getValueNames in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

putValue

public void putValue(java.lang.String name,
                     java.lang.Object value)
              throws java.lang.IllegalStateException
Deprecated. As of Version 2.2, this method is replaced by setAttribute(java.lang.String, java.lang.Object)

Specified by:
putValue in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException

removeValue

public void removeValue(java.lang.String name)
                 throws java.lang.IllegalStateException
Deprecated. As of Version 2.2, this method is replaced by removeAttribute(java.lang.String)

Specified by:
removeValue in interface javax.servlet.http.HttpSession
Throws:
java.lang.IllegalStateException


Copyright © 2011. All Rights Reserved.