Class MultipartFile

  extended by
      extended by org.talika.tarsis.filters.upload.MultipartFile
All Implemented Interfaces:, java.lang.Comparable<>

public final class MultipartFile

Encapsulates a file of a multipart request by extending adding content type and remote name attributes.

$Revision: 127 $
Jose M. Palomar
See Also:
Serialized Form

Field Summary
Fields inherited from class
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
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)
Creates a new 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()
Returns content type of file.

String content type of file.


public java.lang.String getRemoteName()
Returns remote name of file.

String remote name of file.

Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.