railo.runtime.type.scope
Class JSession
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.scope.ScopeSupport
railo.runtime.type.scope.JSession
- All Implemented Interfaces:
- Serializable, Cloneable, EventListener, Map, javax.servlet.http.HttpSessionBindingListener, Dumpable, Castable, Collection, Iteratorable, Scope, Session, SessionPlus, MemoryScope, SharedScope, Sizeable, Struct
public final class JSession
- extends ScopeSupport
- implements SessionPlus, javax.servlet.http.HttpSessionBindingListener, MemoryScope
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from class railo.runtime.type.scope.ScopeSupport |
APPLICATION, CGI, CLIENT, CLUSTER, COOKIE, FORM, REQUEST, SCOPE_COUNT, SCOPE_VAR, SESSION, URL |
Fields inherited from interface railo.runtime.type.Scope |
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VARIABLES |
Constructor Summary |
JSession()
constructor of the class |
Methods inherited from class railo.runtime.type.StructImpl |
clear, containsKey, containsValue, copy, duplicate, get, get, keyIterator, keys, keysAsString, remove, remove, removeEL, set, setEL, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, toString |
Methods inherited from interface railo.runtime.type.Collection |
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, keysAsString, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface railo.runtime.op.Castable |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
SESSION_ID
public static final Collection.Key SESSION_ID
JSession
public JSession()
- constructor of the class
touchBeforeRequest
public void touchBeforeRequest(PageContext pc)
- Description copied from interface:
SharedScope
- Initalize Scope only for this request, scope was already used
- Specified by:
touchBeforeRequest
in interface SharedScope
- Parameters:
pc
- Page Context- See Also:
ScopeSupport.initialize(railo.runtime.PageContext)
touchAfterRequest
public void touchAfterRequest(PageContext pc)
- Description copied from interface:
SharedScope
- release scope only for current request, scope will be used again
- Specified by:
touchAfterRequest
in interface SharedScope
release
public void release()
- Description copied from interface:
Scope
- release scope for reuse
- Specified by:
release
in interface Scope
- Overrides:
release
in class ScopeSupport
- See Also:
Scope.release()
getLastAccess
public long getLastAccess()
- Specified by:
getLastAccess
in interface Session
- Returns:
- returns the last acces to this session scope
- See Also:
Session.getLastAccess()
getTimeSpan
public long getTimeSpan()
- Specified by:
getTimeSpan
in interface Session
- Returns:
- returns the actuell timespan of the session
- See Also:
Session.getTimeSpan()
isExpired
public boolean isExpired()
- Description copied from interface:
MemoryScope
- is the scope expired?
- Specified by:
isExpired
in interface Session
- Specified by:
isExpired
in interface MemoryScope
- Returns:
- is the scope expired or not
- See Also:
Session.isExpired()
valueBound
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
- Specified by:
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
- See Also:
HttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)
valueUnbound
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
- Specified by:
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
- See Also:
HttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
touch
public void touch()
- Description copied from interface:
Session
- sets the last access timestamp to now
- Specified by:
touch
in interface Session
- Specified by:
touch
in interface MemoryScope
- See Also:
Session.touch()
Copyright © 2012 Railo