com.jalios.jstore.jsync
Class UpdateMessage
java.lang.Object
com.jalios.jstore.jsync.Message
com.jalios.jstore.jsync.UpdateMessage
public class UpdateMessage
- extends Message
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>
- Version:
- $Revision: 27753 $
- Author:
- Olivier Dedieu
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
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
getProgressTable
public StampTable getProgressTable()
- Returns:
- the progressTable
- Since:
- jcms-5.0.1
getOpList
public List<StorableLogEntry> getOpList()
- Returns:
- the list of LogEntry
- Since:
- jcms-4.1
getFileSet
public Set<FileEntry> getFileSet()
- Returns:
- the list of File
- Since:
- jcms-4.1
toXml
public String toXml()
- Specified by:
toXml
in class Message
- Returns:
- an XML representation of this message
- Since:
- jcms-4.1
Copyright © 2001-2010 Jalios SA. All Rights Reserved.