com.ibm.xsp.http
Class UploadedFile

java.lang.Object
  extended by com.ibm.xsp.http.UploadedFile
All Implemented Interfaces:
IUploadedFile, java.io.Serializable

public class UploadedFile
extends java.lang.Object
implements IUploadedFile, java.io.Serializable

This class represents an uploaded file. It contains the name of the associated cgi parameter name, the name of the file on the client and the name of the temporary file on the server.

See Also:
Serialized Form

Constructor Summary
UploadedFile(java.lang.String cgiParameterName, java.lang.String[] clientFileNames, java.io.File[] serverFiles, java.lang.String[] contentTypes, long[] contentLengths)
           
 
Method Summary
 java.lang.String getCGIParameterName()
          Returns the name of the CGI parameter associated to this file
 java.lang.String getClientFileName()
          Returns the name of the file as defined on the client
 java.lang.String[] getClientFileNames()
          Returns the file names as defined on the client
 long getContentLength()
          Returns the content length for the file
 long[] getContentLengths()
          Returns an array of content lengths for the files
 java.lang.String getContentType()
          Returns the content type of the file
 java.lang.String[] getContentTypes()
          Returns an array of content types for the files
 java.io.File getServerFile()
          Returns the temporary file created on the server
 java.lang.String getServerFileName()
          Returns the path of the temporary file created on the server
 java.lang.String[] getServerFileNames()
          Returns the path of the temporary files created on the server
 java.io.File[] getServerFiles()
          Returns the temporary files created on the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadedFile

public UploadedFile(java.lang.String cgiParameterName,
                    java.lang.String[] clientFileNames,
                    java.io.File[] serverFiles,
                    java.lang.String[] contentTypes,
                    long[] contentLengths)
Method Detail

getContentType

public java.lang.String getContentType()
Description copied from interface: IUploadedFile
Returns the content type of the file

Specified by:
getContentType in interface IUploadedFile

getContentTypes

public java.lang.String[] getContentTypes()
Description copied from interface: IUploadedFile
Returns an array of content types for the files

Specified by:
getContentTypes in interface IUploadedFile

getContentLengths

public long[] getContentLengths()
Description copied from interface: IUploadedFile
Returns an array of content lengths for the files

Specified by:
getContentLengths in interface IUploadedFile

getContentLength

public long getContentLength()
Description copied from interface: IUploadedFile
Returns the content length for the file

Specified by:
getContentLength in interface IUploadedFile

getCGIParameterName

public java.lang.String getCGIParameterName()
Description copied from interface: IUploadedFile
Returns the name of the CGI parameter associated to this file

Specified by:
getCGIParameterName in interface IUploadedFile

getClientFileName

public java.lang.String getClientFileName()
Description copied from interface: IUploadedFile
Returns the name of the file as defined on the client

Specified by:
getClientFileName in interface IUploadedFile

getClientFileNames

public java.lang.String[] getClientFileNames()
Description copied from interface: IUploadedFile
Returns the file names as defined on the client

Specified by:
getClientFileNames in interface IUploadedFile

getServerFileName

public java.lang.String getServerFileName()
Description copied from interface: IUploadedFile
Returns the path of the temporary file created on the server

Specified by:
getServerFileName in interface IUploadedFile

getServerFileNames

public java.lang.String[] getServerFileNames()
Description copied from interface: IUploadedFile
Returns the path of the temporary files created on the server

Specified by:
getServerFileNames in interface IUploadedFile

getServerFile

public java.io.File getServerFile()
Description copied from interface: IUploadedFile
Returns the temporary file created on the server

Specified by:
getServerFile in interface IUploadedFile

getServerFiles

public java.io.File[] getServerFiles()
Description copied from interface: IUploadedFile
Returns the temporary files created on the server

Specified by:
getServerFiles in interface IUploadedFile