uk.co.weft.maybeupload
Class UploadedFile

java.lang.Object
  extended byjava.io.File
      extended byuk.co.weft.maybeupload.UploadedFile
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class UploadedFile
extends java.io.File

An enhancement to File that supports several additional fields concerning uploaded files.

Version:
$Revision: 1.1 $ This revision: $Author: simon $
  $Log: UploadedFile.java,v $
  Revision 1.1  2002/10/08 09:22:48  simon
  A number of minor enhancements and some bug fixes proposed by Shawn Grunberger


  
Author:
Shawn Grunberger
See Also:
Serialized Form

Field Summary
protected  java.lang.String clientPathname
           
protected  java.lang.String contentType
           
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
protected UploadedFile(java.lang.String pathname)
           
 
Method Summary
 java.lang.String getClientPathname()
          Returns the client (remote) pathname for this file.
 java.lang.String getContentType()
          Returns the content type (MIME type) of the uploaded file.
protected  void setClientPathname(java.lang.String pathname)
          Sets the client (remote) pathname for this file.
protected  void setContentType(java.lang.String contentType)
          Sets the content type (MIME type) of the uploaded file.
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

clientPathname

protected java.lang.String clientPathname

contentType

protected java.lang.String contentType
Constructor Detail

UploadedFile

protected UploadedFile(java.lang.String pathname)
Method Detail

getClientPathname

public java.lang.String getClientPathname()
Returns the client (remote) pathname for this file. This is the full path as reported by the browser during the file upload.


setClientPathname

protected void setClientPathname(java.lang.String pathname)
Sets the client (remote) pathname for this file. This is the full path as reported by the browser during the file upload.


getContentType

public java.lang.String getContentType()
Returns the content type (MIME type) of the uploaded file. This was reported by the browser during the file upload. Returns null if no content type was specified.


setContentType

protected void setContentType(java.lang.String contentType)
Sets the content type (MIME type) of the uploaded file. This was reported by the browser during the file upload.