Package com.jalios.jstore.jsync
Class FileEntry
java.lang.Object
com.jalios.jstore.jsync.FileEntry
- All Implemented Interfaces:
Comparable<FileEntry>
This class contains information on the file to be downloaded
- Author:
- Olivier Dedieu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the filename of the file to be downloaded.longGet the value of lastModified.getPath()Get the value of path.longgetSize()Get the value of size.Get the value of ticket.getUrid()getUrl()Get the value of url.voidsetFileMarker(File fileMarker) voidsetLastModified(long v) Set the value of lastModified.voidSet the value of path.voidsetSize(long v) Set the value of size.voidSet the value of ticket.voidvoidSet the value of url.toString()toXml()Returns an XML representation of this FileEntry.
-
Constructor Details
-
FileEntry
Constructs a FileEntry- Parameters:
url- the url of the file to be downloadedpath- the relative path of the filelastModified- 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
Returns an XML representation of this FileEntry.- Returns:
- an XML representation of this FileEntry.
- Since:
- jcms-5.0.4
-
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
- Specified by:
compareToin interfaceComparable<FileEntry>
-
getUrl
Get the value of url.- Returns:
- Value of url.
- Since:
- jcms-4.1
-
setUrl
Set the value of url.- Parameters:
v- Value to assign to url.- Since:
- jcms-4.1
-
getPath
Get the value of path.- Returns:
- Value of path.
- Since:
- jcms-4.1
-
setPath
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
Get the value of ticket.- Returns:
- Value of ticket.
- Since:
- jcms-4.1
-
setTicket
Set the value of ticket.- Parameters:
v- Value to assign to ticket.- Since:
- jcms-4.1
-
toString
-
getFileMarker
- Since:
- jcms-5.0.4
-
setFileMarker
- Since:
- jcms-5.0.4
-
getUrid
- Since:
- jcms-5.0.4
-
setUrid
- Since:
- jcms-5.0.4
-