railo.runtime.type.scope
Class ScopeSupport
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.scope.ScopeSupport
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Dumpable, Castable, Collection, Iteratorable, Scope, Sizeable, Struct
- Direct Known Subclasses:
- ApplicationImpl, ArgumentImpl, ClusterWrap, CookieImpl, FormImpl, JSession, LocalImpl, ServerImpl, URLImpl, VariablesImpl
public abstract class ScopeSupport
- extends StructImpl
- implements Scope, Sizeable
Simple standart implementation of a Scope, for standart use.
- 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_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VARIABLES |
Constructor Summary |
ScopeSupport(boolean sync,
String name,
int type)
constructor for the Simple class |
ScopeSupport(String name,
int type,
int mapType)
constructor for ScopeSupport |
Methods inherited from class railo.runtime.type.StructImpl |
clear, containsKey, containsValue, copy, duplicate, get, get, keyIterator, keys, keysAsString, remove, remove, removeEL, set, setEL, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, toString |
Methods inherited from interface railo.runtime.type.Collection |
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, keysAsString, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface railo.runtime.op.Castable |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
APPLICATION
public static final Collection.Key APPLICATION
CGI
public static final Collection.Key CGI
COOKIE
public static final Collection.Key COOKIE
CLIENT
public static final Collection.Key CLIENT
CLUSTER
public static final Collection.Key CLUSTER
FORM
public static final Collection.Key FORM
REQUEST
public static final Collection.Key REQUEST
SESSION
public static final Collection.Key SESSION
URL
public static final Collection.Key URL
SCOPE_VAR
public static final int SCOPE_VAR
- See Also:
- Constant Field Values
SCOPE_COUNT
public static final int SCOPE_COUNT
- See Also:
- Constant Field Values
ScopeSupport
public ScopeSupport(boolean sync,
String name,
int type)
- constructor for the Simple class
- Parameters:
name
- name of the scopetype
- scope type (SCOPE_APPLICATION,SCOPE_COOKIE use)
ScopeSupport
public ScopeSupport(String name,
int type,
int mapType)
- constructor for ScopeSupport
- Parameters:
name
- name of the scopetype
- scope type (SCOPE_APPLICATION,SCOPE_COOKIE use)doubleLinked
- mean that the struct has predictable iteration order this make the input order fix
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
- See Also:
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
toDumpData
public static DumpData toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp,
Struct sct,
String dspName)
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
- See Also:
Scope.isInitalized()
initialize
public void initialize(PageContext pc)
- Description copied from interface:
Scope
- Initalize Scope
- Specified by:
initialize
in interface Scope
- Parameters:
pc
- Page Context- See Also:
Scope.initialize(railo.runtime.PageContext)
release
public void release()
- Description copied from interface:
Scope
- release scope for reuse
- Specified by:
release
in interface Scope
- See Also:
Scope.release()
_getId
public int _getId()
- Returns:
- Returns the id.
getType
public int getType()
- Specified by:
getType
in interface Scope
- Returns:
- return the scope type (SCOPE_SERVER, SCOPE_SESSION usw.)
- See Also:
Scope.getType()
getTypeAsString
public String getTypeAsString()
- Specified by:
getTypeAsString
in interface Scope
- Returns:
- return the scope type as a String (server,session usw.)
- See Also:
Scope.getTypeAsString()
sizeOf
public long sizeOf()
- Description copied from interface:
Sizeable
- return the size of the object
- Specified by:
sizeOf
in interface Sizeable
- Overrides:
sizeOf
in class StructSupport
- Returns:
- size of the object
- See Also:
Sizeable.sizeOf()
Copyright © 2012 Railo