Class SuggestJoinMessage


  • public class SuggestJoinMessage
    extends Message
    This class represents a JSync JoinMessage. Example of JoinMessage
     
     <?xml version='1.0' encoding='UTF-8'?>
     <jsync version='1.0'>
       <suggestjoin urid='rleader' url='http://host/rleader' />
     </jsync>
     
     
    Since:
    jcms-5.7.4
    Version:
    $Revision: 107554 $
    Author:
    BenoƮt Dissert
    • Constructor Detail

      • SuggestJoinMessage

        public SuggestJoinMessage​(java.lang.String urid,
                                  java.lang.String url)
        Constructs a new JoinMessage
        Parameters:
        urid - the urid of the sender
        url - the url of the sender
      • SuggestJoinMessage

        public SuggestJoinMessage​(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 java.lang.String getUrl()
        Returns:
        the url of the sender
      • toXml

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