com.ibm.wbi.protocol.http.beans
Class FormData

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--com.ibm.wbi.protocol.http.beans.FormData
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

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
java.util.Map.Entry
 
Constructor Summary
FormData()
          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

FormData

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

getString

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

getMimeObject

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.
Parameters:
name - The name of the part on the original form.
Returns:
The MimeObject representing the part, or null if it doesn't exist or isn't a MimeObject.