public final class ServerImpl extends ScopeSupport implements Server, SharedScope
Collection.Key
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 |
---|
ServerImpl(PageContext pc)
constructor of the server scope
|
Modifier and Type | Method and Description |
---|---|
Object |
g(Collection.Key key) |
Object |
g(Collection.Key key,
Object defaultValue) |
Object |
get(Collection.Key key)
return a value from the collection
|
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
void |
reload() |
void |
reload(PageContext pc) |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection
|
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
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
|
_getId, getType, getTypeAsString, initialize, isInitalized, release, release, sizeOf, toDumpData, toDumpData
clear, containsKey, containsValue, copy, duplicate, entryIterator, equals, hashCode, keyIterator, keys, keysAsStringIterator, remove, remove, removeEL, 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, release, release
clear, clone, containsKey, containsKey, duplicate, get, get, keys, remove, removeEL, set, 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 ServerImpl(PageContext pc)
pc
- public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to getpublic Object g(Collection.Key key, Object defaultValue)
g
in class StructImpl
public Object g(Collection.Key key) throws PageException
g
in class StructImpl
PageException
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to get must be lower casePageException
public void reload(PageContext pc)
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
set
in class StructImpl
key
- key of the new valuevalue
- value to setPageException
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
setEL
in class StructImpl
key
- key of the value to getvalue
- value to setpublic void touchBeforeRequest(PageContext pc)
SharedScope
touchBeforeRequest
in interface SharedScope
pc
- Page Contextpublic void touchAfterRequest(PageContext pc)
SharedScope
touchAfterRequest
in interface SharedScope
Copyright © 2015 Lucee