cz.muni.fi.pclis.domain
Class UploadedFile

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.commons.domain.NamedDomainObject
          extended by cz.muni.fi.pclis.domain.UploadedFile

public class UploadedFile
extends NamedDomainObject

Entity representing file uploaded to the server. User: Ľuboš Pecho Date: 27.3.2010 Time: 22:19:37


Field Summary
private  String contentType
          content type of the file
private  String location
          location of the file
 
Constructor Summary
UploadedFile()
          constructs new uplodaed file
UploadedFile(String name, String location, String contentType)
          constructs new uploaded file
 
Method Summary
 String getContentType()
           
 String getLocation()
           
 void setContentType(String contentType)
          Sets the content type of the file
 void setLocation(String location)
          Sets the location of the file
 
Methods inherited from class cz.muni.fi.pclis.commons.domain.NamedDomainObject
getName, setName
 
Methods inherited from class cz.muni.fi.pclis.commons.domain.DomainObject
equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

private String location
location of the file


contentType

private String contentType
content type of the file

Constructor Detail

UploadedFile

public UploadedFile()
constructs new uplodaed file


UploadedFile

public UploadedFile(String name,
                    String location,
                    String contentType)
constructs new uploaded file

Parameters:
name -
location -
contentType -
Method Detail

getLocation

public String getLocation()
Returns:
location

setLocation

public void setLocation(String location)
Sets the location of the file

Parameters:
location -

getContentType

public String getContentType()
Returns:
content type of the file

setContentType

public void setContentType(String contentType)
Sets the content type of the file

Parameters:
contentType -


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.