IP*Works! V9

ipworks
Class FileVar

java.lang.Object
  extended by ipworks.FileVar

public class FileVar
extends java.lang.Object

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.

See Also:
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

FileVar

public FileVar()

FileVar

public FileVar(java.lang.String name,
               java.lang.String file)

FileVar

public FileVar(java.lang.String name,
               java.io.InputStream inputStream)

FileVar

public FileVar(java.lang.String name,
               byte[] inputData)
Method Detail

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String value)

getFile

public java.lang.String getFile()

setFile

public void setFile(java.lang.String value)

setInputData

public void setInputData(byte[] value)

getInputStream

public java.io.InputStream getInputStream()

setInputStream

public void setInputStream(java.io.InputStream value)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String value)

IP*Works! V9

Copyright (c) 2013 /n software inc. - All rights reserved.