org.mortbay.j2ee.session
Class StateAdaptor
java.lang.Object
org.mortbay.j2ee.session.StateAdaptor
- All Implemented Interfaces:
- javax.servlet.http.HttpSession, Manager.Session
public class StateAdaptor
- extends Object
- implements Manager.Session
|
Field Summary |
protected static org.jboss.logging.Logger |
_log
|
_log
protected static final org.jboss.logging.Logger _log
isValid
public boolean isValid()
- Specified by:
isValid in interface Manager.Session
getCreationTime
public long getCreationTime()
throws IllegalStateException
- Specified by:
getCreationTime in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
getId
public String getId()
throws IllegalStateException
- Specified by:
getId in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
getLastAccessedTime
public long getLastAccessedTime()
throws IllegalStateException
- Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)
- Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession
getAttribute
public Object getAttribute(String name)
throws IllegalStateException
- Specified by:
getAttribute in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
getValue
public Object getValue(String name)
throws IllegalStateException
- Specified by:
getValue in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
getAttributeNames
public Enumeration getAttributeNames()
throws IllegalStateException
- Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
getValueNames
public String[] getValueNames()
throws IllegalStateException
- Specified by:
getValueNames in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
setAttribute
public void setAttribute(String name,
Object value)
throws IllegalStateException
- Specified by:
setAttribute in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
putValue
public void putValue(String name,
Object value)
throws IllegalStateException
- Specified by:
putValue in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
removeAttribute
public void removeAttribute(String name)
throws IllegalStateException
- Specified by:
removeAttribute in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
removeValue
public void removeValue(String name)
throws IllegalStateException
- Specified by:
removeValue in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
invalidate
public void invalidate()
throws IllegalStateException
- Specified by:
invalidate in interface javax.servlet.http.HttpSession
- Throws:
IllegalStateException
isNew
public boolean isNew()
throws IllegalStateException
- Returns
true if the client does not yet know about the
session or if the client chooses not to join the session. For
example, if the server used only cookie-based sessions, and
the client had disabled the use of cookies, then a session would
be new on each request.
- Specified by:
isNew in interface javax.servlet.http.HttpSession
- Returns:
true if the
server has created a session,
but the client has not yet joined
- Throws:
IllegalStateException - if this method is called on an
already invalidated session
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext in interface javax.servlet.http.HttpSession
getSessionContext
public javax.servlet.http.HttpSessionContext getSessionContext()
- Specified by:
getSessionContext in interface javax.servlet.http.HttpSession
access
public void access()
- Specified by:
access in interface Manager.Session
setLastAccessedTime
public void setLastAccessedTime(long time)
throws IllegalStateException
- Throws:
IllegalStateException
checkState
protected void checkState()
throws IllegalStateException
- Throws:
IllegalStateException
toString
public String toString()
- Overrides:
toString in class Object
migrate
public void migrate()
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.