Package com.jalios.jstore.jsync
Class FileEntry
- java.lang.Object
-
- com.jalios.jstore.jsync.FileEntry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FileEntry fileEntry)
java.io.File
getFileMarker()
java.lang.String
getFilename()
Returns the filename of the file to be downloaded.long
getLastModified()
Get the value of lastModified.java.lang.String
getPath()
Get the value of path.long
getSize()
Get the value of size.java.lang.String
getTicket()
Get the value of ticket.java.lang.String
getUrid()
java.lang.String
getUrl()
Get the value of url.void
setFileMarker(java.io.File fileMarker)
void
setLastModified(long v)
Set the value of lastModified.void
setPath(java.lang.String v)
Set the value of path.void
setSize(long v)
Set the value of size.void
setTicket(java.lang.String v)
Set the value of ticket.void
setUrid(java.lang.String urid)
void
setUrl(java.lang.String v)
Set the value of url.java.lang.String
toString()
java.lang.String
toXml()
Returns an XML representation of this FileEntry.
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileEntry
public FileEntry(java.lang.String url, java.lang.String path, long lastModified, long size, java.lang.String ticket)
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 Detail
-
toXml
public java.lang.String toXml()
Returns an XML representation of this FileEntry.- Returns:
- an XML representation of this FileEntry.
- Since:
- jcms-5.0.4
-
getFilename
public java.lang.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 interfacejava.lang.Comparable<FileEntry>
-
getUrl
public java.lang.String getUrl()
Get the value of url.- Returns:
- Value of url.
- Since:
- jcms-4.1
-
setUrl
public void setUrl(java.lang.String v)
Set the value of url.- Parameters:
v
- Value to assign to url.- Since:
- jcms-4.1
-
getPath
public java.lang.String getPath()
Get the value of path.- Returns:
- Value of path.
- Since:
- jcms-4.1
-
setPath
public void setPath(java.lang.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 java.lang.String getTicket()
Get the value of ticket.- Returns:
- Value of ticket.
- Since:
- jcms-4.1
-
setTicket
public void setTicket(java.lang.String v)
Set the value of ticket.- Parameters:
v
- Value to assign to ticket.- Since:
- jcms-4.1
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Since:
- jcms-4.1
-
getFileMarker
public java.io.File getFileMarker()
- Since:
- jcms-5.0.4
-
setFileMarker
public void setFileMarker(java.io.File fileMarker)
- Since:
- jcms-5.0.4
-
getUrid
public java.lang.String getUrid()
- Since:
- jcms-5.0.4
-
setUrid
public void setUrid(java.lang.String urid)
- Since:
- jcms-5.0.4
-
-