Class FileEntry

java.lang.Object
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
Author:
Olivier Dedieu
  • Constructor Details

    • 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 Details

    • 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