|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectipworks.FileVar
public class FileVar
The file variable for the current request.
This type describes a file that is to be posted when an upload action is performed. The type contains fields which describe this variable's name, and the filename of the file being uploaded.
ContentType:
This field contains the value of the Content-Type of each form variable which corresponds to the file in the File
field.
File: This field contains the path and filename of each file to be sent.
When the bean is used as an upload client, this property must point to valid file name that will be sent to the server.
If InputData
or InputStream
is set, this field may instead be set to the desired filename which will be used in the request.
InputData: Specifies the file data to be sent.
This field may be set to the file data instead of specifying a file from disk.
If set, this field takes precedence over InputStream
.
InputStream: This field is set when a stream is to be used for the data of the current filevar.
Name:
This field contains the name of each form variable which corresponds to the file in the File
field.
Atom
,
Atom.FileVar
Constructor Summary | |
---|---|
FileVar()
|
|
FileVar(java.lang.String name,
byte[] inputData)
|
|
FileVar(java.lang.String name,
java.io.InputStream inputStream)
|
|
FileVar(java.lang.String name,
java.lang.String file)
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
|
java.lang.String |
getFile()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
void |
setContentType(java.lang.String value)
|
void |
setFile(java.lang.String value)
|
void |
setInputData(byte[] value)
|
void |
setInputStream(java.io.InputStream value)
|
void |
setName(java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileVar()
public FileVar(java.lang.String name, java.lang.String file)
public FileVar(java.lang.String name, java.io.InputStream inputStream)
public FileVar(java.lang.String name, byte[] inputData)
Method Detail |
---|
public java.lang.String getContentType()
public void setContentType(java.lang.String value)
public java.lang.String getFile()
public void setFile(java.lang.String value)
public void setInputData(byte[] value)
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream value)
public java.lang.String getName()
public void setName(java.lang.String value)
|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |