Modifier and Type | Field and Description |
---|---|
protected InputStream |
is |
protected boolean |
isFile |
protected String |
name |
protected Object |
value |
Constructor and Description |
---|
FieldData(org.springframework.extensions.webscripts.servlet.FormData.FormField field)
Constructs a FieldData object from a WebScript FormField object
|
FieldData(String name,
Object value,
boolean isFile)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Returns an InputStream onto the content of the file,
throws IllegalStateException if this is called for
non file field data
|
String |
getName()
Returns the name of the form field that data represents
|
Object |
getValue()
Returns the value of the form field that data represents
|
boolean |
isFile()
Determines whether the data represents a file
|
String |
toString() |
protected String name
protected Object value
protected boolean isFile
protected InputStream is
public FieldData(String name, 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 FieldData(org.springframework.extensions.webscripts.servlet.FormData.FormField field)
field
- The WebScript FormData object to create the field frompublic String getName()
public Object getValue()
public boolean isFile()
public InputStream getInputStream()
Copyright © 2005–2017 Alfresco Software. All rights reserved.