railo.runtime.type.scope
Class ApplicationImpl
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.scope.ScopeSupport
railo.runtime.type.scope.ApplicationImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, Application, Scope, SharedScope, Sizeable, Struct
public final class ApplicationImpl
- extends ScopeSupport
- implements Application, SharedScope
Session Scope
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface railo.runtime.type.scope.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_VAR, SCOPE_VARIABLES |
Constructor Summary |
ApplicationImpl()
default constructor of the session scope |
Methods inherited from class railo.runtime.type.StructImpl |
clear, containsKey, containsValue, copy, duplicate, entryIterator, equals, g, g, get, get, hashCode, keyIterator, keys, keysAsStringIterator, remove, removeEL, set, setEL, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
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 |
Methods inherited from interface railo.runtime.type.Collection |
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface railo.runtime.op.Castable |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
ApplicationImpl
public ApplicationImpl()
- default constructor of the session scope
getLastAccess
public long getLastAccess()
- Specified by:
getLastAccess
in interface Application
- Returns:
- returns the last access timestamp of this Application scope
getTimeSpan
public long getTimeSpan()
- Specified by:
getTimeSpan
in interface Application
- Returns:
- returns the actual timespan of the application
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
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
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interface Application
- Returns:
- is expired
setLastAccess
public void setLastAccess(long lastAccess)
- Parameters:
lastAccess
- the lastAccess to set
touch
public void touch()
- Description copied from interface:
Application
- sets the last access timestamp to now
- Specified by:
touch
in interface Application
getApplicationSettings
public Map getApplicationSettings()
- undocumented Feature in ACF
- Returns:
getCreated
public long getCreated()
- Specified by:
getCreated
in interface Application
- Returns:
- Timestamp of when the application scope was created
Copyright © 2012 Railo