|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.File org.talika.tarsis.filters.upload.MultipartFile
public final class MultipartFile
Encapsulates a file of a multipart request by extending java.io.File
adding content type and remote name attributes.
Field Summary |
---|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
MultipartFile(java.lang.String path,
java.lang.String remoteName,
java.lang.String contentType)
Creates a new MultipartFile using given path, content type and
remote name. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns content type of file. |
java.lang.String |
getRemoteName()
Returns remote name of file. |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultipartFile(java.lang.String path, java.lang.String remoteName, java.lang.String contentType)
MultipartFile
using given path, content type and
remote name.
path
- String local path to file.remoteName
- String remote name of file.contentType
- String content type of file.Method Detail |
---|
public java.lang.String getContentType()
public java.lang.String getRemoteName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |