Package eu.webtoolkit.jwt.servlet
Class UploadedFile
java.lang.Object
eu.webtoolkit.jwt.servlet.UploadedFile
public class UploadedFile
extends java.lang.Object
Details about a file uploaded with a request to a resource.
-
Constructor Summary
Constructors Constructor Description UploadedFile()
-
Method Summary
Modifier and Type Method Description java.lang.String
getClientFileName()
Returns the client file name.java.lang.String
getContentType()
Returns the file content type.java.lang.String
getSpoolFileName()
Return the spool file name.void
stealSpoolFile()
Steals the uploaded spool file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UploadedFile
public UploadedFile()
-
-
Method Details
-
getSpoolFileName
public java.lang.String getSpoolFileName()Return the spool file name.This is the location on the local (server) filesystem where the uploaded file is temporarily stored. Unless you call
stealSpoolFile()
, this file is deleted automatically. -
getClientFileName
public java.lang.String getClientFileName()Returns the client file name.This is the location that was indicated by the browser.
Note: Depending on the browser this is an absolute path or only the file name.
-
getContentType
public java.lang.String getContentType()Returns the file content type.Returns the content mime-type that was sent along with the uploaded file.
-
stealSpoolFile
public void stealSpoolFile()Steals the uploaded spool file.By stealing the spooled file, it is no longer automatically deleted by JWt.
-