public abstract class Message
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
Message(org.jdom.Element root)
Constructs a new Message from an XML element
|
Message(java.lang.String urid)
Constructs a new Message
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUrid() |
java.lang.String |
getXmlFooter() |
java.lang.String |
getXmlHeader() |
static Message |
parse(java.lang.String xml)
Parse the given XML strings and builds the corresponding JSync message
|
java.lang.String |
stampToXml(Stamp stamp) |
java.lang.String |
toString() |
abstract java.lang.String |
toXml() |
public static final java.lang.String REVISION
public Message(java.lang.String urid)
urid
- the urid of the sender (i.e. replica that sends this message)public Message(org.jdom.Element root)
root
- the root elementpublic java.lang.String getUrid()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String toXml()
public java.lang.String stampToXml(Stamp stamp)
stamp
- the stamp to represents in XMLpublic java.lang.String getXmlHeader()
public java.lang.String getXmlFooter()
public static Message parse(java.lang.String xml) throws org.jdom.JDOMException, java.io.IOException
xml
- the XML to parseorg.jdom.JDOMException
java.io.IOException
Copyright © 2001-2010 Jalios SA. All Rights Reserved.