net.sf.xbus.protocol
Interface TextMessage

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

public interface TextMessage

TextMessage is the interface for all Messages which deals with textual messages, for example XML.


Method Summary
 java.lang.String getRequestText(XBUSSystem system)
          Gets the text from an incomimg message.
 java.lang.String getResponseText()
          Gets the text of the outgoing message.
 void setRequestText(java.lang.String text, XBUSSystem source)
          Sets the text of the incoming message.
 void setResponseText(java.lang.String text, XBUSSystem destination)
          Sets the text of the outgoing message.
 

Method Detail

setRequestText

void setRequestText(java.lang.String text,
                    XBUSSystem source)
                    throws XException
Sets the text of the incoming message.

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

setResponseText

void setResponseText(java.lang.String text,
                     XBUSSystem destination)
                     throws XException
Sets the text of the outgoing message.

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

getRequestText

java.lang.String getRequestText(XBUSSystem system)
                                throws XException
Gets the text from an incomimg message.

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

getResponseText

java.lang.String getResponseText()
                                 throws XException
Gets the text of the outgoing message.

Returns:
the content of the response
Throws:
XException