Package ortus.boxlang.web.scopes
Class CGIScope
java.lang.Object
ortus.boxlang.runtime.types.Struct
ortus.boxlang.runtime.scopes.BaseScope
ortus.boxlang.web.scopes.CGIScope
- All Implemented Interfaces:
Serializable,Map<ortus.boxlang.runtime.scopes.Key,,Object> ortus.boxlang.runtime.dynamic.IReferenceable,ortus.boxlang.runtime.scopes.IScope,ortus.boxlang.runtime.types.IStruct,ortus.boxlang.runtime.types.IType,ortus.boxlang.runtime.types.meta.IListenable<ortus.boxlang.runtime.types.IStruct>
public class CGIScope
extends ortus.boxlang.runtime.scopes.BaseScope
CGI scope implementation in BoxLang
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ortus.boxlang.runtime.types.IStruct
ortus.boxlang.runtime.types.IStruct.TYPES -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IBoxHTTPExchangeThe Linked Exchangestatic final ortus.boxlang.runtime.scopes.Key-------------------------------------------------------------------------- Public Properties --------------------------------------------------------------------------Fields inherited from class ortus.boxlang.runtime.scopes.BaseScope
$bxFields inherited from class ortus.boxlang.runtime.types.Struct
EMPTY, INITIAL_CAPACITY, KEY_LENGTH_LONGEST_FIRST_COMPARATOR, wrappedFields inherited from interface ortus.boxlang.runtime.types.meta.IListenable
ALL_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionCGIScope(IBoxHTTPExchange exchange) -------------------------------------------------------------------------- Constructors -------------------------------------------------------------------------- -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(ortus.boxlang.runtime.scopes.Key key) Returns true if this map contains a mapping for the specified key.dereference(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.scopes.Key key, Boolean safe) Dereference this object by a key and return the value, or throw exceptionentrySet()Returns aSetview of the mappings contained in this map.Returns the value to which the specified Key is mappedSet<ortus.boxlang.runtime.scopes.Key> Get the keys that can be dumped by this scopeGet the keys that can be dumped by this scopegetRaw(ortus.boxlang.runtime.scopes.Key key) Returns the value of the key safely, nulls will be wrapped in a NullValue still.Set<ortus.boxlang.runtime.scopes.Key> keySet()Returns aSetview of the keys contained in this map.intsize()Override the size since we are a virtual scopeMethods inherited from class ortus.boxlang.runtime.scopes.BaseScope
assignFinal, getBoxMeta, getLockName, getName, put, putIfAbsent, removeMethods inherited from class ortus.boxlang.runtime.types.Struct
addAll, assign, asString, clear, computeHashCode, containsKey, containsKey, containsValue, dereferenceAndInvoke, dereferenceAndInvoke, equals, fromMap, fromMap, get, getFunctionContextThisClassForInvoke, getFunctionContextThisInterfaceForInvoke, getFunctionContextThisStaticClassForInvoke, getKeys, getKeysAsStrings, getOrDefault, getOrDefault, getType, getWrapped, hashCode, isCaseSensitive, isEmpty, isSoftReferenced, linkedOf, of, put, putAll, putIfAbsent, putInternal, registerChangeListener, registerChangeListener, remove, remove, removeChangeListener, sortedOf, sortedOf, toString, toUnmodifiable, unWrapNull, unWrapNullInternal, values, wrapAssignment, wrapNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ortus.boxlang.runtime.dynamic.IReferenceable
assign, dereferenceAndInvoke, dereferenceAndInvokeMethods inherited from interface ortus.boxlang.runtime.scopes.IScope
initializeMethods inherited from interface ortus.boxlang.runtime.types.IStruct
addAll, containsKey, getAs, getAsArray, getAsAttempt, getAsBoolean, getAsBoxInterface, getAsClassRunnable, getAsDateTime, getAsDouble, getAsFunction, getAsInteger, getAsKey, getAsLong, getAsNumber, getAsOptional, getAsQuery, getAsStream, getAsString, getAsStruct, getAsXML, getKeys, getKeysAsStrings, getOrDefault, getOrDefault, getType, getWrapped, isCaseSensitive, isSoftReferenced, put, putIfAbsent, removeMethods inherited from interface ortus.boxlang.runtime.types.IType
asString, computeHashCodeMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putAll, remove, remove, replace, replace, replaceAll, values
-
Field Details
-
name
public static final ortus.boxlang.runtime.scopes.Key name-------------------------------------------------------------------------- Public Properties -------------------------------------------------------------------------- -
exchange
The Linked Exchange
-
-
Constructor Details
-
CGIScope
-------------------------------------------------------------------------- Constructors --------------------------------------------------------------------------
-
-
Method Details
-
dereference
public Object dereference(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.scopes.Key key, Boolean safe) Dereference this object by a key and return the value, or throw exception- Specified by:
dereferencein interfaceortus.boxlang.runtime.dynamic.IReferenceable- Overrides:
dereferencein classortus.boxlang.runtime.scopes.BaseScope- Parameters:
key- The key to dereferencesafe- Whether to throw an exception if the key is not found- Returns:
- The requested object
-
get
Returns the value to which the specified Key is mapped- Specified by:
getin interfaceortus.boxlang.runtime.types.IStruct- Overrides:
getin classortus.boxlang.runtime.types.Struct- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped or null if not found
-
getRaw
Returns the value of the key safely, nulls will be wrapped in a NullValue still.- Specified by:
getRawin interfaceortus.boxlang.runtime.types.IStruct- Overrides:
getRawin classortus.boxlang.runtime.types.Struct- Parameters:
key- The key to look for- Returns:
- The value of the key or a NullValue object, null means the key didn't exist *
-
entrySet
Returns aSetview of the mappings contained in this map. -
getDumpKeys
Get the keys that can be dumped by this scope- Returns:
- The keys that can be dumped
-
getDumpKeysAsString
Get the keys that can be dumped by this scope- Returns:
- The keys that can be dumped
-
keySet
Returns aSetview of the keys contained in this map. -
size
public int size()Override the size since we are a virtual scope -
containsKey
public boolean containsKey(ortus.boxlang.runtime.scopes.Key key) Returns true if this map contains a mapping for the specified key.- Specified by:
containsKeyin interfaceortus.boxlang.runtime.types.IStruct- Overrides:
containsKeyin classortus.boxlang.runtime.types.Struct- Parameters:
key- The key whose presence in this map is to be tested- Returns:
- true if this map contains a mapping for the specified key.
-