Weaver 3.1.0a1-D1

com.oldlight.weaver.context
Interface WeaverUploadedFile

All Known Implementing Classes:
WeaverUploadedFileImpl

public interface WeaverUploadedFile

The WeaverUploadedFile represents a file uploaded by the user's browser. This interface represents a file uploaded by the user via multipart/form-data html form.

Author:
Paul Harvey

Method Summary
 String getContentType()
          Gets the content type (MIME type) of the uploaded file.
 File getFile()
          Gets a File object on to the uploaded file.
 boolean getKeep()
          Determines wheter this file is flagged for automatic deletion once the current request has been processed.
 String getName()
          Gets the name of the uploaded file as it appeared on the remove file system.
 void setKeep(boolean keep)
          Sest whether this file should be automatically deleted once the current request has been processed.
 String toString()
          Gets a string representation of the object (this is NOT file contents)
 

Method Detail

getKeep

public boolean getKeep()
Determines wheter this file is flagged for automatic deletion once the current request has been processed.

Returns:
Keep status.

getName

public String getName()
Gets the name of the uploaded file as it appeared on the remove file system.

Returns:
The remove file name.

setKeep

public void setKeep(boolean keep)
Sest whether this file should be automatically deleted once the current request has been processed. By default the file will be deleted. If the file is flagged to be kept then it is your responsibility to clean it up when it is nolonger needed.

Parameters:
keep - Whether to kepp the file.

getFile

public File getFile()
Gets a File object on to the uploaded file.

Returns:
The uploaded file.

getContentType

public String getContentType()
Gets the content type (MIME type) of the uploaded file.

Returns:
The content type.

toString

public String toString()
Gets a string representation of the object (this is NOT file contents)

Returns:
String representation of the object.

Copyright ©Paul Harvey