railo.runtime.type.scope
Class ScopeSupport

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.type.StructImpl
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static Collection.Key APPLICATION
           
static Collection.Key CGI
           
static Collection.Key CLIENT
           
static Collection.Key CLUSTER
           
static Collection.Key COOKIE
           
static Collection.Key FORM
           
static Collection.Key REQUEST
           
static int SCOPE_COUNT
           
static int SCOPE_VAR
           
static Collection.Key SESSION
           
static Collection.Key URL
           
 
Fields inherited from class railo.runtime.type.StructImpl
TYPE_SOFT
 
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
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED
 
Constructor Summary
ScopeSupport(boolean sync, String name, int type)
          constructor for the Simple class
ScopeSupport(String name, int type, int mapType)
          constructor for ScopeSupport
 
Method Summary
 int _getId()
           
 int getType()
           
 String getTypeAsString()
           
 void initialize(PageContext pc)
          Initalize Scope
 boolean isInitalized()
          return if the scope is Initialiesd
 void release()
          release scope for reuse
 long sizeOf()
          return the size of the object
 DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
          method to print out information to a object as HTML
static DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp, Struct sct, String dspName)
           
 
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 class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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.type.Iteratorable
iterator, keyIterator, valueIterator
 
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
 

Field Detail

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
Constructor Detail

ScopeSupport

public ScopeSupport(boolean sync,
                    String name,
                    int type)
constructor for the Simple class

Parameters:
name - name of the scope
type - scope type (SCOPE_APPLICATION,SCOPE_COOKIE use)

ScopeSupport

public ScopeSupport(String name,
                    int type,
                    int mapType)
constructor for ScopeSupport

Parameters:
name - name of the scope
type - scope type (SCOPE_APPLICATION,SCOPE_COOKIE use)
doubleLinked - mean that the struct has predictable iteration order this make the input order fix
Method Detail

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