net.sf.xbus.protocol
Interface XMLMessage

All Known Implementing Classes:
AS400ProgramMessage, ByteArrayListMessage, CSVMessage, EmptyMessage, RecordTypeMessage, SOAPMessage, XBUSXMLMessage, XMLMessageAbstract, XMLMessageImplementation

public interface XMLMessage

XMLMessage is the base interface for all messages in the XML format.


Method Summary
 org.w3c.dom.Document getRequestDocument(XBUSSystem system)
          Returns the request XML data as a org.w3c.dom.Document.
 org.w3c.dom.Document getResponseDocument()
          Returns the response XML data as a org.w3c.dom.Document.
 void setRequestDocument(org.w3c.dom.Document doc, XBUSSystem source)
          Sets the request XML data as a org.w3c.dom.Document.
 void setResponseDocument(org.w3c.dom.Document doc, XBUSSystem destination)
          Sets the response XML data as a org.w3c.dom.Document.
 

Method Detail

getRequestDocument

org.w3c.dom.Document getRequestDocument(XBUSSystem system)
Returns the request XML data as a org.w3c.dom.Document.

Parameters:
system - reference to the system for which the message is meant
Returns:
the content of the request

setRequestDocument

void setRequestDocument(org.w3c.dom.Document doc,
                        XBUSSystem source)
                        throws XException
Sets the request XML data as a org.w3c.dom.Document.

Parameters:
doc - the content of the request
source - system where the request is coming from
Throws:
XException

getResponseDocument

org.w3c.dom.Document getResponseDocument()
Returns the response XML data as a org.w3c.dom.Document.

Returns:
the content of the response

setResponseDocument

void setResponseDocument(org.w3c.dom.Document doc,
                         XBUSSystem destination)
                         throws XException
Sets the response XML data as a org.w3c.dom.Document.

Parameters:
doc - the content of the response
destination - system where the response is coming from
Throws:
XException