|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.engine.UploadedFile
public class UploadedFile
An UploadedFile instance is created by the web engine when
files are uploaded through a multi-part request.
The uploaded files can be retrieved through the
ElementSupport#getUploadedFile method and its siblings. The
web engine does its best to dispose of the temporary file at a convenient
time, but the file is not guaranteed to persist after the request. If you
want to make sure that the file is deleted, you should call File.delete() yourself when you're finished with the uploaded file.
| Constructor Summary | |
|---|---|
UploadedFile(String filename,
String type)
|
|
| Method Summary | |
|---|---|
UploadedFile |
clone()
|
protected void |
finalize()
|
File |
getFile()
Retrieves the temporary file on the server that was created for the upload. |
String |
getName()
Retrieves the name of the file that was selected on the client when uploading. |
String |
getType()
Retrieves the content type of the file. |
void |
setSizeExceeded(boolean exceeded)
|
void |
setTempFile(File tempFile)
|
boolean |
wasSizeExceeded()
Indicates whether the uploaded file exceeded the file upload
size limit. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UploadedFile(String filename,
String type)
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic void setTempFile(File tempFile)
public void setSizeExceeded(boolean exceeded)
public String getType()
public String getName()
public File getFile()
public boolean wasSizeExceeded()
upload
size limit.
If the limit was exceeded, the temporary file will be
null and deleted from the server.
true if the upload file size limit was exceeded;
or
false otherwise
public UploadedFile clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||