FormInput Class

Used to represent a form input found in the body of an http request.

Constructors

protected FormInput( javaxt.http.servlet.ServletInputStream is, javaxt.http.servlet.FormInput prevInput, String boundary )

Methods

getContentDisposition( ) returns String
Returns the "Content-Disposition" value associated with this form input. This attribute is unique to "multipart/form-data".
getFileName( ) returns String
Returns the "filename" attribute found in the "Content-Disposition" value associated with this form input. This attribute is unique to "multipart/form-data".
getMetadata( ) returns java.util.HashMap
Used to return metadata associated with this form input. This attribute is unique to "multipart/form-data". Each input may include information such as the "Content-Disposition", "Content-Type", and "Content-Transfer-Encoding".
getName( ) returns String
Used to return the name associated with this form input.
getValue( ) returns javaxt.http.servlet.FormValue
Used to return the value associated with this form input.
isFile( ) returns boolean
Convenience method used to determine whether the input is associated with a file upload. Returns true if a "filename" attribute is found in the "Content-Disposition" metadata. This attribute is unique to "multipart/form-data".