org.deegree.client.core.model
Class UploadedFile

java.lang.Object
  extended by org.deegree.client.core.model.UploadedFile
All Implemented Interfaces:
Serializable

public class UploadedFile
extends Object
implements Serializable

UploadedFile wraps the uploaded file item

Version:
$Revision: $, $Date: $
Author:
Lyn Buesching, last edited by: $Author: lyn $
See Also:
Serialized Form

Constructor Summary
UploadedFile()
           
 
Method Summary
 boolean delete()
          Deletes the file
 String getAbsolutePath()
           
 org.apache.commons.fileupload.FileItem getFileItem()
           
 String getFileName()
           
 URL getUrl()
           
 void setAbsolutePath(String absolutePath)
           
 void setFileItem(org.apache.commons.fileupload.FileItem fileItem)
           
 void setUrl(URL url)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadedFile

public UploadedFile()
Method Detail

delete

public boolean delete()
Deletes the file

Returns:

getAbsolutePath

public String getAbsolutePath()
Returns:
the absolute path of the uploaded file

getFileName

public String getFileName()
Returns:
the name of the uploaded file

getFileItem

public org.apache.commons.fileupload.FileItem getFileItem()
Returns:
the uploaded file item

getUrl

public URL getUrl()
Returns:
the web accessible url of the uploaded file

toString

public String toString()
Overrides:
toString in class Object

setFileItem

public void setFileItem(org.apache.commons.fileupload.FileItem fileItem)

setUrl

public void setUrl(URL url)

setAbsolutePath

public void setAbsolutePath(String absolutePath)


Copyright © 2011. All Rights Reserved.