org.mortbay.j2ee.session
Class LocalState
java.lang.Object
org.mortbay.j2ee.session.LocalState
- All Implemented Interfaces:
- Serializable, State
public class LocalState
- extends Object
- implements State, Serializable
Hold the state of an HttpSession
- Version:
- 1.0
- Author:
- Jules Gosnell
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
LocalState()
|
|
LocalState(String id,
int maxInactiveInterval,
int actualMaxInactiveInterval)
|
|
LocalState(String id,
long creationTime,
int maxInactiveInterval,
int actualMaxInactiveInterval)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
protected static final org.jboss.logging.Logger _log
_id
protected String _id
_maxInactiveInterval
protected int _maxInactiveInterval
_actualMaxInactiveInterval
protected int _actualMaxInactiveInterval
_creationTime
protected long _creationTime
_lastAccessedTime
protected long _lastAccessedTime
_attributes
protected Map _attributes
_emptyMap
protected static Map _emptyMap
_emptyEnumeration
protected static Enumeration _emptyEnumeration
_emptyStringArray
protected static String[] _emptyStringArray
LocalState
public LocalState(String id,
long creationTime,
int maxInactiveInterval,
int actualMaxInactiveInterval)
LocalState
public LocalState(String id,
int maxInactiveInterval,
int actualMaxInactiveInterval)
LocalState
protected LocalState()
getId
public String getId()
- Specified by:
getId in interface State
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime in interface State
getActualMaxInactiveInterval
public int getActualMaxInactiveInterval()
- Specified by:
getActualMaxInactiveInterval in interface State
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime in interface State
setLastAccessedTime
public void setLastAccessedTime(long time)
- Specified by:
setLastAccessedTime in interface State
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveInterval in interface State
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)
- Specified by:
setMaxInactiveInterval in interface State
ensureAttributes
protected void ensureAttributes()
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute in interface State
getAttributes
public Map getAttributes()
- Specified by:
getAttributes in interface State
getAttributeNameEnumeration
public Enumeration getAttributeNameEnumeration()
- Specified by:
getAttributeNameEnumeration in interface State
getAttributeNameStringArray
public String[] getAttributeNameStringArray()
- Specified by:
getAttributeNameStringArray in interface State
setAttribute
public Object setAttribute(String name,
Object value,
boolean returnValue)
- Specified by:
setAttribute in interface State
setAttributes
public void setAttributes(Map attributes)
- Specified by:
setAttributes in interface State
removeAttribute
public Object removeAttribute(String name,
boolean returnValue)
- Specified by:
removeAttribute in interface State
remainingTime
protected long remainingTime()
isValid
public boolean isValid(int extraTime)
isValid
public boolean isValid()
- Specified by:
isValid in interface State
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.