Class 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: 107554 $
    Author:
    Olivier Dedieu
    • Constructor Detail

      • UpdateMessage

        public UpdateMessage​(java.lang.String urid,
                             StampTable progressTable,
                             java.util.List<StorableLogEntry> opList,
                             java.util.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 java.util.List<StorableLogEntry> getOpList()
        Returns:
        the list of LogEntry
        Since:
        jcms-4.1
      • getFileSet

        public java.util.Set<FileEntry> getFileSet()
        Returns:
        the list of File
        Since:
        jcms-4.1
      • toXml

        public java.lang.String toXml()
        Specified by:
        toXml in class Message
        Returns:
        an XML representation of this message
        Since:
        jcms-4.1