public final class UrlFormImpl extends StructSupport implements URLForm
Collection.Key
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
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
UrlFormImpl(FormImpl form,
URLImpl url) |
Modifier and Type | Method and Description |
---|---|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value
|
boolean |
castToBooleanValue()
cast the castable value to a boolean value
|
DateTime |
castToDateTime()
cast the castable value to a date time object
|
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object
|
double |
castToDoubleValue()
cast the castable value to a double value
|
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value
|
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception
|
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable
|
void |
clear()
clears the collection
|
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(String str) |
boolean |
containsKey(Collection.Key key)
contains this key
|
boolean |
containsValue(Object value) |
Collection |
duplicate(boolean deepCopy) |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator() |
Object |
get(Collection.Key key)
return a value from the collection
|
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
String |
getEncoding() |
FormItem[] |
getFileItems() |
org.apache.commons.fileupload.disk.DiskFileItem |
getFileUpload(String key) |
FormImpl |
getForm() |
PageException |
getInitException() |
javax.servlet.ServletInputStream |
getInputStream() |
int |
getType() |
String |
getTypeAsString() |
FormItem |
getUploadResource(String key) |
URLImpl |
getURL() |
void |
initialize(PageContext pc)
Initalize Scope
|
boolean |
isInitalized()
return if the scope is Initialiesd
|
Iterator<Collection.Key> |
keyIterator() |
Collection.Key[] |
keys() |
Iterator<String> |
keysAsStringIterator() |
void |
reinitialize(ApplicationContext ac) |
void |
release()
release scope for reuse
|
void |
release(PageContext pc)
release scope for reuse
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null
|
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 |
setEncoding(ApplicationContext ac,
String encoding) |
void |
setScriptProtecting(ApplicationContext ac,
boolean b) |
int |
size() |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
Iterator<Object> |
valueIterator() |
Collection<Object> |
values() |
call, callWithNamedValues, clone, containsKey, containsKey, entrySet, equals, get, get, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf, toString
getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, containsKey, get, get, set, setEL
getIterator
public UrlFormImpl(FormImpl form, URLImpl url)
public void initialize(PageContext pc)
Scope
initialize
in interface Scope
pc
- Page Contextpublic void reinitialize(ApplicationContext ac)
public void release(PageContext pc)
Scope
public String getEncoding()
getEncoding
in interface Form
getEncoding
in interface URL
public void setEncoding(ApplicationContext ac, String encoding) throws UnsupportedEncodingException
setEncoding
in interface Form
setEncoding
in interface URL
ac
- current ApplicationContextencoding
- The encoding to set.UnsupportedEncodingException
public int getType()
public String getTypeAsString()
getTypeAsString
in interface Scope
public boolean isInitalized()
Scope
isInitalized
in interface Scope
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower casePageException
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
keysAsStringIterator
in class StructSupport
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Collection.Key[] keys()
keys
in interface Collection
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collectionPageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collectionpublic Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic int size()
size
in interface Map
size
in interface Collection
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class StructSupport
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class StructSupport
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public org.apache.commons.fileupload.disk.DiskFileItem getFileUpload(String key)
public PageException getInitException()
getInitException
in interface Form
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public void setScriptProtecting(ApplicationContext ac, boolean b)
setScriptProtecting
in interface Form
setScriptProtecting
in interface URL
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class StructSupport
public Collection<Object> values()
values
in interface Map
values
in class StructSupport
public FormItem getUploadResource(String key)
getUploadResource
in interface Form
public FormItem[] getFileItems()
getFileItems
in interface Form
public javax.servlet.ServletInputStream getInputStream()
getInputStream
in interface Form
Copyright © 2015 Lucee