Package com.jalios.jstore.jsync
Class UpdateMessage
java.lang.Object
com.jalios.jstore.jsync.Message
com.jalios.jstore.jsync.UpdateMessage
This class represents a JSync UpdateMessage. Example of UpdateMessage
<?xml version='1.0' encoding='UTF-8'?>
<jsync version='1.0'>
<update urid='r1'>
<pt>
<stamp urid='r1' time='1234' />
<stamp urid='r2' time='2345' />
<stamp urid='r3' time='3456' />
</pt>
<ops>
<category stamp="r1_1" id="r1_1" op="create" data="my data 1" />
<generated.Article stamp="r1_2" id="r1_2" op="create" data="my data 2" />
</ops>
<files>
<file url='http://www/f1.txt' path='f1.txt' lastModified='1083915719021' size='12345' ticket='ticket1'/>
<file url='http://www/dir/f2.txt' path='dir/f2.txt' lastModified='1083915719021' size='23456' ticket='ticket2'/>
</files>
</update>
</jsync>
- Author:
- Olivier Dedieu
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateMessage(String urid, StampTable progressTable, List<StorableLogEntry> opList, Set<FileEntry> fileSet) Constructs a new UpdateMessageUpdateMessage(org.jdom.Element root) Constructs a new UpdateMessage from an XML element -
Method Summary
Methods inherited from class com.jalios.jstore.jsync.Message
getTime, getUrid, getXmlFooter, getXmlHeader, parse, stampToXml, toString
-
Constructor Details
-
UpdateMessage
public UpdateMessage(String urid, StampTable progressTable, List<StorableLogEntry> opList, Set<FileEntry> fileSet) Constructs a new UpdateMessage- Parameters:
urid- the urid of the senderopList- the list of LogEntry to sendfileSet- the set of file (URL) to send- Since:
- jcms-4.1
-
UpdateMessage
public UpdateMessage(org.jdom.Element root) Constructs a new UpdateMessage from an XML element- Parameters:
root- the root element (i.e. the<update>tag)- Since:
- jcms-4.1
-
-
Method Details