com.jalios.jstore.jsync
Class UpdateMessage

java.lang.Object
  extended by com.jalios.jstore.jsync.Message
      extended by 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

Field Summary
static String REVISION
           
 
Constructor Summary
UpdateMessage(org.jdom.Element root)
          Constructs a new UpdateMessage from an XML element
UpdateMessage(String urid, StampTable progressTable, List<StorableLogEntry> opList, Set<FileEntry> fileSet)
          Constructs a new UpdateMessage
 
Method Summary
 Set<FileEntry> getFileSet()
           
 List<StorableLogEntry> getOpList()
           
 StampTable getProgressTable()
           
 String toXml()
           
 
Methods inherited from class com.jalios.jstore.jsync.Message
getUrid, getXmlFooter, getXmlHeader, parse, stampToXml, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

UpdateMessage

public UpdateMessage(String urid,
                     StampTable progressTable,
                     List<StorableLogEntry> opList,
                     Set<FileEntry> fileSet)
Constructs a new UpdateMessage

Parameters:
urid - the urid of the sender
opList - the list of LogEntry to send
fileSet - 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 Detail

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.