railo.runtime.type.scope
Class ServerImpl

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.type.StructImpl
          extended by railo.runtime.type.scope.ScopeSupport
              extended by railo.runtime.type.scope.ServerImpl
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, Castable, Collection, Iteratorable, Scope, Server, SharedScope, Sizeable, Struct

public final class ServerImpl
extends ScopeSupport
implements Server, SharedScope

Server Scope

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
 
Fields inherited from class railo.runtime.type.scope.ScopeSupport
APPLICATION, CGI, CLIENT, CLUSTER, COOKIE, FORM, REQUEST, SCOPE_COUNT, SCOPE_VAR, SESSION, 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_COUNT, 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
ServerImpl(PageContext pc)
          constructor of the server scope
 
Method Summary
 void reload()
           
 void reload(PageContext pc)
           
 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 touchAfterRequest(PageContext pc)
          release scope only for current request, scope will be used again
 void touchBeforeRequest(PageContext pc)
          Initalize Scope only for this request, scope was already used
 
Methods inherited from class railo.runtime.type.scope.ScopeSupport
_getId, getType, getTypeAsString, initialize, isInitalized, release, sizeOf, toDumpData, toDumpData
 
Methods inherited from class railo.runtime.type.StructImpl
clear, containsKey, containsValue, copy, duplicate, get, get, keyIterator, keys, keysAsString, remove, remove, removeEL, 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.Scope
getType, getTypeAsString, initialize, isInitalized, release
 
Methods inherited from interface railo.runtime.type.Collection
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, keysAsString, remove, removeEL, set, setEL, size
 
Methods inherited from interface railo.runtime.dump.Dumpable
toDumpData
 
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
 

Constructor Detail

ServerImpl

public ServerImpl(PageContext pc)
constructor of the server scope

Parameters:
sn -
Method Detail

reload

public void reload()
Specified by:
reload in interface Server
See Also:
railo.runtime.type.scope.Server#reload(railo.runtime.security.SerialNumber)

reload

public void reload(PageContext pc)

set

public Object set(Collection.Key key,
                  Object value)
           throws PageException
Description copied from interface: Collection
sets a value to the collection

Specified by:
set in interface Collection
Overrides:
set in class StructImpl
Parameters:
key - key of the new value
value - value to set
Returns:
value setted
Throws:
PageException
See Also:
StructImpl.set(railo.runtime.type.Collection.Key, java.lang.Object)

setEL

public Object setEL(Collection.Key key,
                    Object value)
Description copied from interface: Collection
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null

Specified by:
setEL in interface Collection
Overrides:
setEL in class StructImpl
Parameters:
key - key of the value to get
value - value to set
Returns:
value on key position or null
See Also:
StructImpl.setEL(railo.runtime.type.Collection.Key, java.lang.Object)

touchBeforeRequest

public void touchBeforeRequest(PageContext pc)
Description copied from interface: SharedScope
Initalize Scope only for this request, scope was already used

Specified by:
touchBeforeRequest in interface SharedScope
Parameters:
pc - Page Context

touchAfterRequest

public void touchAfterRequest(PageContext pc)
Description copied from interface: SharedScope
release scope only for current request, scope will be used again

Specified by:
touchAfterRequest in interface SharedScope


Copyright © 2012 Railo