railo.runtime.type.scope
Class FormImpl

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.FormImpl
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, Form, Scope, ScriptProtected, Sizeable, Struct

public final class FormImpl
extends ScopeSupport
implements Form, ScriptProtected

Form 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 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
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
 
Fields inherited from interface railo.runtime.type.scope.ScriptProtected
NO, UNDEFINED, YES
 
Constructor Summary
FormImpl()
          standart class Constructor
 
Method Summary
 void addRaw(ApplicationContext ac, URLItem[] raw)
           
 String getEncoding()
           
 FormItem[] getFileItems()
           
 org.apache.commons.fileupload.disk.DiskFileItem getFileUpload(String key)
           
 PageException getInitException()
           
 javax.servlet.ServletInputStream getInputStream()
           
 URLItem[] getRaw()
           
 FormItem getUploadResource(String key)
           
 void initialize(PageContext pc)
          Initalize Scope
 boolean isScriptProtected()
           
 void release()
          release scope for reuse
 void release(PageContext pc)
          release scope for reuse
 void setEncoding(ApplicationContext ac, String encoding)
           
 void setScriptProtecting(ApplicationContext ac, boolean scriptProtected)
          transform the string values of the scope do a script protecting way
 
Methods inherited from class railo.runtime.type.scope.ScopeSupport
_getId, getType, getTypeAsString, isInitalized, sizeOf, toDumpData, toDumpData
 
Methods inherited from class railo.runtime.type.StructImpl
clear, containsKey, containsValue, copy, duplicate, entryIterator, equals, g, g, get, get, hashCode, keyIterator, keys, keysAsStringIterator, remove, removeEL, set, setEL, size, valueIterator, values
 
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, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.type.scope.Scope
getType, getTypeAsString, isInitalized
 
Methods inherited from interface railo.runtime.type.Collection
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size
 
Methods inherited from interface railo.runtime.type.Iteratorable
entryIterator, keyIterator, keysAsStringIterator, valueIterator
 
Methods inherited from interface railo.runtime.type.ForEachIteratorable
getIterator
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface railo.runtime.type.Sizeable
sizeOf
 
Methods inherited from interface railo.runtime.type.Objects
call, callWithNamedValues, get, get, set, setEL
 
Methods inherited from interface railo.runtime.dump.Dumpable
toDumpData
 
Methods inherited from interface railo.runtime.op.Castable
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
 

Constructor Detail

FormImpl

public FormImpl()
standart class Constructor

Method Detail

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface Form
Returns:
Returns the encoding.

setEncoding

public void setEncoding(ApplicationContext ac,
                        String encoding)
                 throws UnsupportedEncodingException
Specified by:
setEncoding in interface Form
Parameters:
ac - current ApplicationContext
encoding - The encoding to set.
Throws:
UnsupportedEncodingException

initialize

public void initialize(PageContext pc)
Description copied from interface: Scope
Initalize Scope

Specified by:
initialize in interface Scope
Overrides:
initialize in class ScopeSupport
Parameters:
pc - Page Context

release

public void release()
Description copied from interface: Scope
release scope for reuse

Specified by:
release in interface Scope
Overrides:
release in class ScopeSupport

release

public void release(PageContext pc)
Description copied from interface: Scope
release scope for reuse

Specified by:
release in interface Scope
Overrides:
release in class ScopeSupport

getFileItems

public FormItem[] getFileItems()
Specified by:
getFileItems in interface Form

getFileUpload

public org.apache.commons.fileupload.disk.DiskFileItem getFileUpload(String key)

getUploadResource

public FormItem getUploadResource(String key)
Specified by:
getUploadResource in interface Form

getInitException

public PageException getInitException()
Specified by:
getInitException in interface Form
Returns:
return the exception when initialised

setScriptProtecting

public void setScriptProtecting(ApplicationContext ac,
                                boolean scriptProtected)
Description copied from interface: ScriptProtected
transform the string values of the scope do a script protecting way

Specified by:
setScriptProtecting in interface Form
Specified by:
setScriptProtecting in interface ScriptProtected

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

getRaw

public URLItem[] getRaw()
Returns:
the raw

addRaw

public void addRaw(ApplicationContext ac,
                   URLItem[] raw)

getInputStream

public javax.servlet.ServletInputStream getInputStream()
Specified by:
getInputStream in interface Form
Returns:
return content as a http header input stream


Copyright © 2012 Railo