public final class JSession extends ScopeSupport implements Session, javax.servlet.http.HttpSessionBindingListener, MemoryScope
Collection.Key
Modifier and Type | Field and Description |
---|---|
static Collection.Key |
SESSION_ID |
TYPE_UNDEFINED
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_VAR, SCOPE_VARIABLES
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
JSession()
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
long |
getCreated() |
long |
getLastAccess() |
long |
getTimeSpan() |
boolean |
isExpired()
is the scope expired?
|
Collection.Key[] |
pureKeys() |
void |
release()
release scope for reuse
|
void |
release(PageContext pc)
release scope for reuse
|
void |
resetEnv(PageContext pc) |
void |
touch()
sets the last access timestamp to now
|
void |
touchAfterRequest(PageContext pc)
release scope only for current request, scope will be used again
|
void |
touchBeforeRequest(PageContext pc)
Initalize Scope only for this request, scope was already used
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event) |
_getId, getType, getTypeAsString, initialize, isInitalized, sizeOf, toDumpData, toDumpData
clear, containsKey, containsValue, copy, duplicate, entryIterator, equals, g, g, get, get, hashCode, keyIterator, keys, keysAsStringIterator, remove, remove, removeEL, set, setEL, size, valueIterator, values
call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, get, get, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, toString
getType, getTypeAsString, initialize, isInitalized
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size
entryIterator, keyIterator, keysAsStringIterator, valueIterator
getIterator
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
call, callWithNamedValues, get, get, set, setEL
toDumpData
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
public static final Collection.Key SESSION_ID
public JSession()
public void touchBeforeRequest(PageContext pc)
SharedScope
touchBeforeRequest
in interface SharedScope
pc
- Page Contextpublic void touchAfterRequest(PageContext pc)
SharedScope
touchAfterRequest
in interface SharedScope
public void release()
Scope
release
in interface Scope
release
in class ScopeSupport
public void release(PageContext pc)
Scope
release
in interface Scope
release
in class ScopeSupport
public long getLastAccess()
getLastAccess
in interface Session
public long getTimeSpan()
getTimeSpan
in interface Session
public boolean isExpired()
MemoryScope
isExpired
in interface Session
isExpired
in interface MemoryScope
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public void touch()
Session
touch
in interface Session
touch
in interface MemoryScope
public long getCreated()
getCreated
in interface Session
public Collection.Key[] pureKeys()
public void resetEnv(PageContext pc)
Copyright © 2015 Lucee