org.talika.tarsis.filters.upload
Class MultipartFile

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

public final class MultipartFile
extends java.io.File

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

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

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

MultipartFile

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.

Parameters:
path - String local path to file.
remoteName - String remote name of file.
contentType - String content type of file.
Method Detail

getContentType

public java.lang.String getContentType()
Returns content type of file.

Returns:
String content type of file.

getRemoteName

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

Returns:
String remote name of file.


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