com.jalios.jstore.jsync
Class JoinMessage

java.lang.Object
  extended by com.jalios.jstore.jsync.Message
      extended by com.jalios.jstore.jsync.JoinMessage

public class JoinMessage
extends Message

This class represents a JSync JoinMessage. Example of JoinMessage

 <?xml version='1.0' encoding='UTF-8'?>
 <jsync version='1.0'>
   <join urid='r1' url='http://host/r1'>
     <stamp urid='r1' time='1234' />
     <stamp urid='r2' time='2345' />
     <stamp urid='r3' time='3456' />
   </join>
 </jsync>
 

Version:
$Revision: 27753 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
JoinMessage(org.jdom.Element root)
          Constructs a new JoinMessage from an XML element
JoinMessage(String urid, String url, StampTable progressTable)
          Constructs a new JoinMessage
 
Method Summary
 StampTable getProgressTable()
           
 String getUrl()
           
 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

JoinMessage

public JoinMessage(String urid,
                   String url,
                   StampTable progressTable)
Constructs a new JoinMessage

Parameters:
urid - the urid of the sender
url - the url of the sender
progressTable - the progressTable of the sender
Since:
jcms-4.1

JoinMessage

public JoinMessage(org.jdom.Element root)
Constructs a new JoinMessage from an XML element

Parameters:
root - the root element (i.e. the <join> tag)
Since:
jcms-4.1
Method Detail

getUrl

public String getUrl()
Returns:
the url of the sender
Since:
jcms-4.1

getProgressTable

public StampTable getProgressTable()
Returns:
the progressTable of this message
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.