| java.lang.Object org.directwebremoting.extend.FormField
FormField | public class FormField (Code) | | The result of a DWR query is normally a set of name/value pairs unless we are
doing file-upload in which case there is more information with each field.
This class replaces the value part of the set of name/value pairs to
provide access to the extra information.
author: Lance Semmens [uklance at gmail dot com] |
Method Summary | |
public boolean | equals(Object obj) | public InputStream | getInputStream() Returns an InputStream that can be used to retrieve the contents of the file. | public String | getMimeType() Returns the content type passed by the browser or null if not defined. | public String | getName() Returns the original filename in the client's file-system, as provided by
the browser (or other client software). | public String | getString() Returns the contents of the file item as a String. | public int | hashCode() | public boolean | isFile() Determines whether or not a FormField instance represents a simple form
field. | public String | toString() |
FormField | public FormField(String value)(Code) | | Standard ctor for the normal non file-upload case
Parameters: value - The string value |
FormField | public FormField(String name, String mimeType, byte[] bytes)(Code) | | Ctor for when we are in the special file-upload case
Parameters: name - The file name Parameters: mimeType - The mime type sent by the browser Parameters: bytes - The bytes sent by the browser |
getInputStream | public InputStream getInputStream()(Code) | | Returns an InputStream that can be used to retrieve the contents of the file.
An InputStream that can be used to retrieve the contents of the file. |
getMimeType | public String getMimeType()(Code) | | Returns the content type passed by the browser or null if not defined.
The content type passed by the browser or null if not defined. |
getName | public String getName()(Code) | | Returns the original filename in the client's file-system, as provided by
the browser (or other client software).
In most cases, this will be the base file name, without path information.
However, some clients, such as the Opera browser, do include path
information.
The original filename in the client's file-system. |
getString | public String getString()(Code) | | Returns the contents of the file item as a String.
|
hashCode | public int hashCode()(Code) | | |
isFile | public boolean isFile()(Code) | | Determines whether or not a FormField instance represents a simple form
field.
true for an uploaded file; false for a simple form field. |
|
|