com.jalios.jstore.jsync
Class FileEntry

java.lang.Object
  extended by com.jalios.jstore.jsync.FileEntry
All Implemented Interfaces:
Comparable<FileEntry>

public class FileEntry
extends Object
implements Comparable<FileEntry>

This class contains information on the file to be downloaded

Version:
$Revision: 27753 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
FileEntry(org.jdom.Element elt)
          Constructs a FileEntry from an XML representation
FileEntry(String url, String path, long lastModified, long size, String ticket)
          Constructs a FileEntry
 
Method Summary
 int compareTo(FileEntry fileEntry)
           
 File getFileMarker()
           
 String getFilename()
          Returns the filename of the file to be downloaded.
 long getLastModified()
          Get the value of lastModified.
 String getPath()
          Get the value of path.
 long getSize()
          Get the value of size.
 String getTicket()
          Get the value of ticket.
 String getUrid()
           
 String getUrl()
          Get the value of url.
 void setFileMarker(File fileMarker)
           
 void setLastModified(long v)
          Set the value of lastModified.
 void setPath(String v)
          Set the value of path.
 void setSize(long v)
          Set the value of size.
 void setTicket(String v)
          Set the value of ticket.
 void setUrid(String urid)
           
 void setUrl(String v)
          Set the value of url.
 String toString()
           
 String toXml()
          Returns an XML representation of this FileEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

FileEntry

public FileEntry(String url,
                 String path,
                 long lastModified,
                 long size,
                 String ticket)
Constructs a FileEntry

Parameters:
url - the url of the file to be downloaded
path - the relative path of the file
lastModified - the last-modified time, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970)
size - the size of the file
Since:
jcms-4.1

FileEntry

public FileEntry(org.jdom.Element elt)
Constructs a FileEntry from an XML representation

Parameters:
elt - the XML representation
Since:
jcms-5.0.4
Method Detail

toXml

public String toXml()
Returns an XML representation of this FileEntry.

Returns:
an XML representation of this FileEntry.
Since:
jcms-5.0.4

getFilename

public String getFilename()
Returns the filename of the file to be downloaded.

Returns:
the filename of the file to be downloaded.
Since:
jcms-5.0.4

compareTo

public int compareTo(FileEntry fileEntry)
Specified by:
compareTo in interface Comparable<FileEntry>

getUrl

public String getUrl()
Get the value of url.

Returns:
Value of url.
Since:
jcms-4.1

setUrl

public void setUrl(String v)
Set the value of url.

Parameters:
v - Value to assign to url.
Since:
jcms-4.1

getPath

public String getPath()
Get the value of path.

Returns:
Value of path.
Since:
jcms-4.1

setPath

public void setPath(String v)
Set the value of path.

Parameters:
v - Value to assign to path.
Since:
jcms-4.1

getLastModified

public long getLastModified()
Get the value of lastModified.

Returns:
Value of lastModified.

setLastModified

public void setLastModified(long v)
Set the value of lastModified.

Parameters:
v - Value to assign to lastModified.

getSize

public long getSize()
Get the value of size.

Returns:
Value of size.

setSize

public void setSize(long v)
Set the value of size.

Parameters:
v - Value to assign to size.

getTicket

public String getTicket()
Get the value of ticket.

Returns:
Value of ticket.
Since:
jcms-4.1

setTicket

public void setTicket(String v)
Set the value of ticket.

Parameters:
v - Value to assign to ticket.
Since:
jcms-4.1

toString

public String toString()
Overrides:
toString in class Object
Since:
jcms-4.1

getFileMarker

public File getFileMarker()
Since:
jcms-5.0.4

setFileMarker

public void setFileMarker(File fileMarker)
Since:
jcms-5.0.4

getUrid

public String getUrid()
Since:
jcms-5.0.4

setUrid

public void setUrid(String urid)
Since:
jcms-5.0.4


Copyright © 2001-2010 Jalios SA. All Rights Reserved.