|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.xsp.http.UploadedFile
public class UploadedFile
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.
| 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 |
|---|
public UploadedFile(java.lang.String cgiParameterName,
java.lang.String[] clientFileNames,
java.io.File[] serverFiles,
java.lang.String[] contentTypes,
long[] contentLengths)
| Method Detail |
|---|
public java.lang.String getContentType()
IUploadedFile
getContentType in interface IUploadedFilepublic java.lang.String[] getContentTypes()
IUploadedFile
getContentTypes in interface IUploadedFilepublic long[] getContentLengths()
IUploadedFile
getContentLengths in interface IUploadedFilepublic long getContentLength()
IUploadedFile
getContentLength in interface IUploadedFilepublic java.lang.String getCGIParameterName()
IUploadedFile
getCGIParameterName in interface IUploadedFilepublic java.lang.String getClientFileName()
IUploadedFile
getClientFileName in interface IUploadedFilepublic java.lang.String[] getClientFileNames()
IUploadedFile
getClientFileNames in interface IUploadedFilepublic java.lang.String getServerFileName()
IUploadedFile
getServerFileName in interface IUploadedFilepublic java.lang.String[] getServerFileNames()
IUploadedFile
getServerFileNames in interface IUploadedFilepublic java.io.File getServerFile()
IUploadedFile
getServerFile in interface IUploadedFilepublic java.io.File[] getServerFiles()
IUploadedFile
getServerFiles in interface IUploadedFile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||