www.dextsolution.com
DEXTUPLOAD
NJ
menu toggleReference > devpia > dextuploadnj > MultipartFormItem

devpia.dextuploadnj
Class MultipartFormItem

Minimum version supported
1.0.0
Minimum support environment
JRE 1.6
Description

The MultipartFormItem class is a class that implements the FormItem interface, and indicates a String field among multipart data.

FileUpload dextnj = new FileUpload(request, env);
dextnj.prepare();
...
// Returns the number of MultipartFormItem objects.
int formCount = dextnj.getFormItemCount();

// Returns the iterator of the field name that points to the MultipartFormItem object.
Iterator<String> iterator = dextnj.getFormItemNames();

// Returns the 0th MultipartFormItem object.
FormItem item = dextnj.getFormItem(0);

// Returns the first MultipartFormItem object with the field name is "name". 
FormItem item = dextnj.getFormItem("name");

// Returns the value of the 0th MultipartFormItem object.
String value = dextnj.getFormItemValue(0);

// Returns the value of the first MultipartFormItem object with the field name is "name".
String value = dextnj.getFormItemValue("name");

// Returns all MultipartFormItem objects with "orders" Name.
List<FormItem> orders = dextnj.getFormItems("orders");

// Returns all MultipartFormItem objects.
List<FormItem> orders = dextnj.getFormItems();
Constructor

MultipartFormItem

  • Create an object of the MultipartFormItem class.

  • Signatures

    public MultipartFormItem(MultipartItem item)
Methods

getFieldName

See the getFieldName method of the FieldItem interface.

getItemType

See the getItemType method of the FieldItem interface.

getValue

See the getValue method of the FormItem interface.