Class FormData

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map,

public class FormData
extends java.util.Hashtable

FormData is an object returned by FormHelper.interpretFormData when a "multipart/form-data" object is encountered. It supports String entries as well as binary entries in the form a MimeObjects.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
Constructor Summary
          Constructs an empty FormData object.
Method Summary
 MimeObject getMimeObject(java.lang.String name)
          Convenience method to get a part know to be represented as a MimeObject.
 java.lang.String getString(java.lang.String name)
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public FormData()
Constructs an empty FormData object.
Method Detail


public java.lang.String getString(java.lang.String name)


public MimeObject getMimeObject(java.lang.String name)
Convenience method to get a part know to be represented as a MimeObject. Parts which were standard "text" input fields are generally not represented in such a manner; most other things probably are. If unknown, check like this: Object o = form_data.get(key); if (o instanceof MimeObject) ; //then it is a MimeObject.
name - The name of the part on the original form.
The MimeObject representing the part, or null if it doesn't exist or isn't a MimeObject.