|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.utexas.its.eis.tools.qwicap.servlet.FormControlValue
edu.utexas.its.eis.tools.qwicap.servlet.FormFileUpload
public final class FormFileUpload
Represents files uploaded via "<input type='file' … />" elements in
web page forms.
FormFileUpload
is a subclass of FormControlValue
, so client code can receive and process
uploaded files in exactly the same way it processes all other control values. In cases where client code needs to
be aware that a parameter represents an uploaded file, it can use "instanceof FormFileUpload
" to
differentiate a FormFileUpload
object from a FormControlValue
object. If the parameter is an
instance of FormFileUpload
, the getFileItem()
method can be used to gain access to the underlying
FileItem
object from the Jakarta Commons FileUpload
library.
Method Summary | |
---|---|
FileItem |
getFileItem()
Returns the underlying FileItem
object that describes, and provides access to the data of, the uploaded file. |
String |
getValue()
Returns the first value in the relevant form data set that was supplied by this control, or controls. |
String[] |
getValues()
Returns all of the values in the relevant form data set that were supplied by this control, or controls. |
Iterator<String> |
iterator()
Returns an Iterator of the values in the relevant form data set that were supplied by this control,
or controls. |
Methods inherited from class edu.utexas.its.eis.tools.qwicap.servlet.FormControlValue |
---|
compareTo, equals, getName, hashCode, isQwicapControl, isQwicapParameter |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getValue()
FormControlValue
FormControlValue.getValues()
when dealing
such controls.
getValue
in class FormControlValue
FormControlValue.getValues()
public String[] getValues()
FormControlValue
getValues
in class FormControlValue
String
array. For efficiency, the array
returned is this object's own master copy, and its contents should not be modified.public Iterator<String> iterator()
FormControlValue
Iterator
of the values in the relevant form data set that were supplied by this control,
or controls. Multiple values are supplied by controls like checkboxes, or by any set of simultaneously successful
controls of the same name.
iterator
in interface Iterable<String>
iterator
in class FormControlValue
Iterator
of the strings representing the values of this control.public FileItem getFileItem()
FileItem
object that describes, and provides access to the data of, the uploaded file. For files whose contents can usefully
be treated as strings, using getValue()
will be simpler.
FileItem
object that describes, and provides access to the data of, the
uploaded file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |