railo.runtime.type.scope
Class CGIImpl
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.ReadOnlyStruct
railo.runtime.type.scope.CGIImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, CGI, Scope, ScriptProtected, Sizeable, Struct
public final class CGIImpl
- extends ReadOnlyStruct
- implements CGI, ScriptProtected
To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
- 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 |
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, sizeOf, toString |
Methods inherited from interface railo.runtime.type.Collection |
clear, clone, containsKey, get, get, remove, removeEL, set, set, setEL, setEL |
Methods inherited from interface java.util.Map |
clear, containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, values |
Methods inherited from interface railo.runtime.op.Castable |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
CGIImpl
public CGIImpl()
containsKey
public boolean containsKey(Collection.Key key)
- Description copied from interface:
Collection
- contains this key
- Specified by:
containsKey
in interface Collection
- Overrides:
containsKey
in class StructImpl
- Returns:
- returns if collection has a key with given name
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map
- Overrides:
containsValue
in class StructImpl
duplicate
public Collection duplicate(boolean deepCopy)
- Specified by:
duplicate
in interface Collection
- Overrides:
duplicate
in class ReadOnlyStruct
size
public int size()
- Specified by:
size
in interface Map
- Specified by:
size
in interface Collection
- Overrides:
size
in class StructImpl
- Returns:
- the size of the collection
keys
public Collection.Key[] keys()
- Specified by:
keys
in interface Collection
- Overrides:
keys
in class StructImpl
- Returns:
- returns a string array of all keys in the collection
get
public Object get(Collection.Key key,
Object defaultValue)
- Description copied from interface:
Collection
- return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
- Specified by:
get
in interface Collection
- Overrides:
get
in class StructImpl
- Parameters:
key
- key of the value to get
- Returns:
- value on key position or null
get
public Object get(Collection.Key key)
- Description copied from interface:
Collection
- return a value from the collection
- Specified by:
get
in interface Collection
- Overrides:
get
in class StructImpl
- Parameters:
key
- key of the value to get must be lower case
- Returns:
- value on key position
keyIterator
public Iterator<Collection.Key> keyIterator()
- Specified by:
keyIterator
in interface Iteratorable
- Overrides:
keyIterator
in class StructImpl
- Returns:
- return a Iterator for Keys as Collection.Keys
keysAsStringIterator
public Iterator<String> keysAsStringIterator()
- Specified by:
keysAsStringIterator
in interface Iteratorable
- Overrides:
keysAsStringIterator
in class StructImpl
- Returns:
- return a Iterator for Keys as String
entryIterator
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
- Specified by:
entryIterator
in interface Iteratorable
- Overrides:
entryIterator
in class StructImpl
isInitalized
public boolean isInitalized()
- Description copied from interface:
Scope
- return if the scope is Initialiesd
- Specified by:
isInitalized
in interface Scope
- Returns:
- scope is init
initialize
public void initialize(PageContext pc)
- Description copied from interface:
Scope
- Initalize Scope
- Specified by:
initialize
in interface Scope
- Parameters:
pc
- Page Context
release
public void release()
- Description copied from interface:
Scope
- release scope for reuse
- Specified by:
release
in interface Scope
release
public void release(PageContext pc)
- Description copied from interface:
Scope
- release scope for reuse
- Specified by:
release
in interface Scope
toDumpData
public DumpData toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
- Description copied from interface:
Dumpable
- method to print out information to a object as HTML
- Specified by:
toDumpData
in interface Dumpable
- Overrides:
toDumpData
in class StructSupport
- Returns:
- HTML print out
getType
public int getType()
- Specified by:
getType
in interface Scope
- Returns:
- return the scope type (SCOPE_SERVER, SCOPE_SESSION usw.)
getTypeAsString
public String getTypeAsString()
- Specified by:
getTypeAsString
in interface Scope
- Returns:
- return the scope type as a String (server,session usw.)
isScriptProtected
public boolean isScriptProtected()
- Specified by:
isScriptProtected
in interface ScriptProtected
- Returns:
- returns if the values of the scope are already protected against cross site scripting
setScriptProtecting
public void setScriptProtecting(ApplicationContext ac,
boolean scriptProtecting)
- Description copied from interface:
ScriptProtected
- transform the string values of the scope do a script protecting way
- Specified by:
setScriptProtecting
in interface ScriptProtected
getDomain
public static String getDomain(javax.servlet.http.HttpServletRequest req)
Copyright © 2012 Railo