|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.request.TemporaryFile
org.torweg.pulse.service.request.UploadedFile
public class UploadedFile
A container for an uploaded file with a static method to process all file
uploads in a ServiceRequestImpl.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.torweg.pulse.service.request.IUploadedFile |
|---|
IUploadedFile.AutoDelete |
| Constructor Summary | |
|---|---|
UploadedFile(org.apache.commons.fileupload.FileItem item, User user)
creates a new uploaded file. |
|
UploadedFile(java.io.InputStream in,
java.lang.String fn,
java.lang.String pn)
creates an uploaded file from a given InputStream. |
|
| Method Summary | |
|---|---|
IUploadedFile.AutoDelete |
getAutoDelete()
returns the auto-delete mode. |
java.lang.String |
getOriginalFileName()
get the original name of the uploaded file. |
java.lang.String |
getParameterName()
get the name of the form field this file was uploaded from. |
void |
setAutoDelete(IUploadedFile.AutoDelete ad)
sets the auto-delete mode. |
java.lang.String |
toString()
returns a string representation of the DownloadEvent. |
void |
valueBound()
set the auto-delete mode to AutoDelete#OFF and calls the
super-method. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent e)
set the auto-delete mode to AutoDelete#OFF and calls the
super-method. |
| Methods inherited from class org.torweg.pulse.service.request.TemporaryFile |
|---|
getFile, setFile, valueUnbound, valueUnbound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.service.request.IUploadedFile |
|---|
getFile |
| Methods inherited from interface org.torweg.pulse.service.request.SessionBindingListener |
|---|
valueUnbound |
| Constructor Detail |
|---|
public UploadedFile(java.io.InputStream in,
java.lang.String fn,
java.lang.String pn)
InputStream.
in - the input streamfn - the file namepn - the parameter name
public UploadedFile(org.apache.commons.fileupload.FileItem item, User user)
throws java.io.IOException
item - a Fileuser - the user performing the upload
java.io.IOException - on errors creating the temporary file for the upload| Method Detail |
|---|
public final java.lang.String getOriginalFileName()
getOriginalFileName in interface IUploadedFilepublic final java.lang.String getParameterName()
getParameterName in interface IUploadedFilepublic IUploadedFile.AutoDelete getAutoDelete()
getAutoDelete in interface IUploadedFilepublic final void setAutoDelete(IUploadedFile.AutoDelete ad)
setAutoDelete in interface IUploadedFilead - the mode to setpublic void valueBound()
AutoDelete#OFF and calls the
super-method.
valueBound in interface SessionBindingListenervalueBound in class TemporaryFileTemporaryFile.valueBound()public void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
AutoDelete#OFF and calls the
super-method.
valueBound in interface javax.servlet.http.HttpSessionBindingListenervalueBound in class TemporaryFilee - is passed upwardsTemporaryFile.valueBound()public java.lang.String toString()
DownloadEvent.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||