|
Weaver 3.1.0a1-D1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oldlight.weaver.interpreter.WeaverUploadedFileImpl
Field Summary | |
private String |
contentType
|
private File |
file
|
private boolean |
keep
|
private String |
name
|
private String |
remoteFileName
|
Constructor Summary | |
WeaverUploadedFileImpl(String name,
String contentType,
File file,
String remoteFileName)
|
Method Summary | |
void |
cleanUpIfNeeded()
|
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) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean keep
private String contentType
private File file
private String remoteFileName
private String name
Constructor Detail |
public WeaverUploadedFileImpl(String name, String contentType, File file, String remoteFileName)
Method Detail |
public boolean getKeep()
WeaverUploadedFile
getKeep
in interface WeaverUploadedFile
public String getName()
WeaverUploadedFile
getName
in interface WeaverUploadedFile
public void setKeep(boolean keep)
WeaverUploadedFile
setKeep
in interface WeaverUploadedFile
keep
- Whether to kepp the file.public void cleanUpIfNeeded()
public File getFile()
WeaverUploadedFile
getFile
in interface WeaverUploadedFile
public String getContentType()
WeaverUploadedFile
getContentType
in interface WeaverUploadedFile
public String toString()
WeaverUploadedFile
toString
in interface WeaverUploadedFile
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |