public class FormData.FieldData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
is |
protected boolean |
isFile |
protected java.lang.String |
name |
protected java.lang.Object |
value |
| Constructor and Description |
|---|
FormData.FieldData(org.springframework.extensions.webscripts.servlet.FormData.FormField field)
Constructs a FieldData object from a WebScript FormField object
|
FormData.FieldData(java.lang.String name,
java.lang.Object value,
boolean isFile)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Returns an InputStream onto the content of the file,
throws IllegalStateException if this is called for
non file field data
|
java.lang.String |
getName()
Returns the name of the form field that data represents
|
java.lang.Object |
getValue()
Returns the value of the form field that data represents
|
boolean |
isFile()
Determines whether the data represents a file
|
java.lang.String |
toString() |
protected java.lang.String name
protected java.lang.Object value
protected boolean isFile
protected java.io.InputStream is
public FormData.FieldData(java.lang.String name,
java.lang.Object value,
boolean isFile)
name - The name of the form fieldvalue - The value of the form fieldisFile - Whether the field data represents an uploaded filepublic FormData.FieldData(org.springframework.extensions.webscripts.servlet.FormData.FormField field)
field - The WebScript FormData object to create the field frompublic java.lang.String getName()
public java.lang.Object getValue()
public boolean isFile()
public java.io.InputStream getInputStream()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.