pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.service.request
Interface IUploadedFile

All Superinterfaces:
ITemporaryFile, java.io.Serializable, SessionBindingListener
All Known Implementing Classes:
UploadedFile

public interface IUploadedFile
extends ITemporaryFile

A wrapper for uploaded files. It contains the uploaded file and some additional information.

Version:
$Revision: 1640 $
Author:
Thomas Weber

Nested Class Summary
static class IUploadedFile.AutoDelete
          enumerates the auto delete states.
 
Method Summary
 IUploadedFile.AutoDelete getAutoDelete()
          returns the auto-delete mode.
 java.io.File getFile()
          return the File associated with this IUploadedFile.
 java.lang.String getOriginalFileName()
          get the original name of the uploaded file.
 java.lang.String getParameterName()
          uploaded files sent by HTML forms are associated to an <input /> tag.
 void setAutoDelete(IUploadedFile.AutoDelete ad)
          sets the auto-delete mode.
 
Methods inherited from interface org.torweg.pulse.service.request.SessionBindingListener
valueBound, valueUnbound
 

Method Detail

getFile

java.io.File getFile()
return the File associated with this IUploadedFile.

Returns:
the file

getParameterName

java.lang.String getParameterName()
uploaded files sent by HTML forms are associated to an <input /> tag. This method returns the name attribute of the associated <input /> tag.

Returns:
the name of the associated input tag

getOriginalFileName

java.lang.String getOriginalFileName()
get the original name of the uploaded file.

Returns:
the original name of the uploaded file.

setAutoDelete

void setAutoDelete(IUploadedFile.AutoDelete ad)
sets the auto-delete mode.

Parameters:
ad - the mode to set

getAutoDelete

IUploadedFile.AutoDelete getAutoDelete()
returns the auto-delete mode.

Returns:
the auto-delete mode