|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.protocol.Message net.sf.xbus.protocol.xml.XMLMessageAbstract net.sf.xbus.protocol.xml.XBUSXMLMessage
public class XBUSXMLMessage
XBUSXMLMessage
represents messages in the xBus specific
XML-format.
Constructor Summary | |
---|---|
XBUSXMLMessage(java.lang.String function,
XBUSSystem source,
java.lang.String id)
This constructor initializes the new XBUSXMLMessage with
the given parameters. |
|
XBUSXMLMessage(XBUSSystem source)
This constructor stores the source , creates an unique
identifier for the call and initializes the requestTimestamp. |
Method Summary | |
---|---|
static org.w3c.dom.Document |
getTemplateAsDocument()
Returns a W3C document containing an empty XBUSXMLMessage |
static java.lang.String |
getTemplateAsString()
Returns a XML string containing an empty XBUSXMLMessage |
protected void |
synchronizeRequestFields(XBUSSystem system)
After setting the request data, both setRequestText and
setRequestDocument , some fields of the
Message must be synchronized with the request data. |
protected void |
synchronizeResponseFields(XBUSSystem system)
After setting the response data, both setResponseText and
setResponseDocument , some fields of the
Message must be synchronized with the response data. |
Methods inherited from class net.sf.xbus.protocol.xml.XMLMessageAbstract |
---|
getDocumentBuilder, getRequestDocument, getRequestObject, getRequestText, getResponseDocument, getResponseObject, getResponseText, parseXML, serializeXML, setRequestDocument, setRequestObject, setRequestText, setResponseDocument, setResponseObject, setResponseText |
Methods inherited from class net.sf.xbus.protocol.Message |
---|
getErrorcode, getErrortext, getFunction, getId, getRequestTimestamp, getResponseTimestamp, getReturncode, getShortname, getSource, setErrorcode, setErrortext, setFunction, setId, setResponseTimestamp, setReturncode, setShortname |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.xbus.protocol.TextMessage |
---|
getRequestText, getResponseText, setRequestText, setResponseText |
Methods inherited from interface net.sf.xbus.protocol.ObjectMessage |
---|
getRequestObject, getResponseObject, setRequestObject, setResponseObject |
Methods inherited from interface net.sf.xbus.protocol.XMLMessage |
---|
getRequestDocument, getResponseDocument, setRequestDocument, setResponseDocument |
Constructor Detail |
---|
public XBUSXMLMessage(XBUSSystem source)
source
, creates an unique
identifier for the call and initializes the requestTimestamp. It is used
when constructing a new XBUSXMLMessage
from the data of a
receiver.
public XBUSXMLMessage(java.lang.String function, XBUSSystem source, java.lang.String id)
XBUSXMLMessage
with
the given parameters. It is used when constructing a new
XBUSXMLMessage
by converting it from another
Message
.
Method Detail |
---|
public static java.lang.String getTemplateAsString() throws XException
XException
public static org.w3c.dom.Document getTemplateAsDocument() throws XException
XException
protected void synchronizeRequestFields(XBUSSystem system) throws XException
setRequestText
and
setRequestDocument
, some fields of the
Message
must be synchronized with the request data.
Message
. When it is not found, the value
from the Message
must be copied to the request data.
Message
.
Message
object
to the request data, to be sure that it is set correct.
Message
object to the request data.
synchronizeRequestFields
in class XMLMessageAbstract
XException
protected void synchronizeResponseFields(XBUSSystem system)
setResponseText
and
setResponseDocument
, some fields of the
Message
must be synchronized with the response data.
synchronizeResponseFields
in class XMLMessageAbstract
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |