public final class CGIImpl extends StructSupport implements CGI, ScriptProtected
Collection.Key
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
NO, UNDEFINED, YES
Constructor and Description |
---|
CGIImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the collection
|
boolean |
containsKey(Collection.Key key)
contains this key
|
boolean |
containsValue(Object value) |
Collection |
duplicate(boolean deepCopy) |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator() |
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
|
int |
getType() |
String |
getTypeAsString() |
void |
initialize(PageContext pc)
Initalize Scope
|
boolean |
isInitalized()
return if the scope is Initialiesd
|
boolean |
isScriptProtected() |
Iterator<Collection.Key> |
keyIterator() |
Collection.Key[] |
keys() |
void |
release()
release scope for reuse
|
void |
release(PageContext pc)
release scope for reuse
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null
|
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 |
setScriptProtecting(ApplicationContext ac,
boolean scriptProtecting)
transform the string values of the scope do a script protecting way
|
int |
size() |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
Iterator<Object> |
valueIterator() |
call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, equals, get, get, get, get, get, getIterator, invalidKey, isEmpty, keysAsStringIterator, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf, toString, values
getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, containsKey, get, get, set, setEL
keysAsStringIterator
getIterator
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, values
call, callWithNamedValues, get, get, set, setEL
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
public CGIImpl()
public boolean isInitalized()
Scope
isInitalized
in interface Scope
public void initialize(PageContext pc)
Scope
initialize
in interface Scope
pc
- Page Contextpublic void release(PageContext pc)
Scope
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class StructSupport
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public int size()
size
in interface Map
size
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic Object get(Collection.Key key)
Collection
get
in interface Collection
key
- key of the value to get must be lower casepublic Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
public int getType()
public String getTypeAsString()
getTypeAsString
in interface Scope
public boolean isScriptProtected()
isScriptProtected
in interface ScriptProtected
public void setScriptProtecting(ApplicationContext ac, boolean scriptProtecting)
ScriptProtected
setScriptProtecting
in interface ScriptProtected
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collectionPageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collectionpublic void clear()
Collection
clear
in interface Map
clear
in interface Collection
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
Copyright © 2015 Lucee