public interface FileItem
multipart/form-data
POST request.Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleanup resources if needed.
|
java.lang.String |
getContentType()
Returns the content type passed by the browser or
null if
not defined. |
java.io.File |
getFile()
Returns an
File that can be used to retrieve the contents of the file. |
java.lang.String |
getFileName()
Returns the original filename in the client's filesystem, as provided by
the browser (or other client software).
|
org.apache.commons.fileupload.FileItemHeaders |
getHeaders()
Returns the file item headers.
|
java.io.InputStream |
getInputStream()
Returns an
InputStream that can be
used to retrieve the contents of the file. |
java.lang.String getFileName()
java.io.InputStream getInputStream()
InputStream
that can be
used to retrieve the contents of the file.java.io.File getFile()
File
that can be used to retrieve the contents of the file.java.lang.String getContentType()
null
if
not defined.org.apache.commons.fileupload.FileItemHeaders getHeaders()
void cleanup()
Copyright © 2016 ninjaframework. All Rights Reserved.