dextuploadjk.engine
Inteface FormItem
- Minimum version
- 1.0.0
- Minimum environment
- Java 17, Jakarta EE 9+
- Description
-
FormItem is an interface that inherits from the FieldItem interface and deals with information about string elements in multipart data.
FormItem is most often utilized in environments that use the FileUpload class.
// Returns the number of FormItem objects. int formCount = fileUpload.getFormItemCount(); // Returns the field names pointing to the FormItem objects. Iterator<String> iterator = fileUpload.getFormItemNames(); // Returns the 0th FormItem object. FormItem itemFirst = fileUpload.getFormItem(0); // Returns the first FormItem object with the field name "name". FormItem itemName = fileUpload.getFormItem("name"); // Returns the value of the 0th FormItem object. String valueFirst = fileUpload.getFormItemValue(0); // Returns the value of the first FormItem object with the field name "name". String valueName = fileUpload.getFormItemValue("name"); // Returns all FormItem objects with the name "orders". List<FormItem> orders = fileUpload.getFormItems("orders"); // Returns all FormItem objects. List<FormItem> items = fileUpload.getFormItems(); - Methods
-
See the getFieldName method of the FieldItem interface.
See the getItemType method of the FieldItem interface.
getValue
- Returns the string value of the element.
-
Signatures
String getValue()
-
Return
The string value of the element