net.sf.xbus.protocol
Interface ObjectMessage

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

public interface ObjectMessage

ObjectMessage is the interface for all Messages which deals with messages that are representated as objects.


Method Summary
 java.lang.Object getRequestObject(XBUSSystem system)
          Gets the object from an incomimg message.
 java.lang.Object getResponseObject()
          Gets the object of the outgoing message.
 void setRequestObject(java.lang.Object obj, XBUSSystem source)
          Sets the object from an incomimg message.
 void setResponseObject(java.lang.Object obj, XBUSSystem destination)
          Sets the object of the outgoing message.
 

Method Detail

setRequestObject

void setRequestObject(java.lang.Object obj,
                      XBUSSystem source)
                      throws XException
Sets the object from an incomimg message.

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

setResponseObject

void setResponseObject(java.lang.Object obj,
                       XBUSSystem destination)
                       throws XException
Sets the object of the outgoing message.

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

getRequestObject

java.lang.Object getRequestObject(XBUSSystem system)
                                  throws XException
Gets the object from an incomimg message.

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

getResponseObject

java.lang.Object getResponseObject()
                                   throws XException
Gets the object of the outgoing message.

Returns:
the content of the response
Throws:
XException