net.sf.xbus.protocol.simple
Class SimpleObjectMessage

java.lang.Object
  extended by net.sf.xbus.protocol.Message
      extended by net.sf.xbus.protocol.simple.SimpleObjectMessage
All Implemented Interfaces:
ObjectMessage

public class SimpleObjectMessage
extends Message
implements ObjectMessage


Constructor Summary
SimpleObjectMessage(java.lang.String function, XBUSSystem source, java.lang.String id)
          This constructor initializes the new SimpleObjectMessage with the given parameters.
SimpleObjectMessage(XBUSSystem source)
          Creates the SimpleObjectMessage with the given source.
 
Method Summary
 java.lang.Object getRequestObject(XBUSSystem source)
          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.
 
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
 

Constructor Detail

SimpleObjectMessage

public SimpleObjectMessage(XBUSSystem source)
Creates the SimpleObjectMessage with the given source.


SimpleObjectMessage

public SimpleObjectMessage(java.lang.String function,
                           XBUSSystem source,
                           java.lang.String id)
This constructor initializes the new SimpleObjectMessage with the given parameters. It is used when constructing a new SimpleObjectMessage by converting it from another Message.

Method Detail

setRequestObject

public void setRequestObject(java.lang.Object obj,
                             XBUSSystem source)
Description copied from interface: ObjectMessage
Sets the object from an incomimg message.

Specified by:
setRequestObject in interface ObjectMessage
Parameters:
obj - the content of the request
source - system where the request is coming from
See Also:
ObjectMessage.setRequestObject(java.lang.Object, net.sf.xbus.base.xbussystem.XBUSSystem)

setResponseObject

public void setResponseObject(java.lang.Object obj,
                              XBUSSystem destination)
Description copied from interface: ObjectMessage
Sets the object of the outgoing message.

Specified by:
setResponseObject in interface ObjectMessage
Parameters:
obj - the content of the response
destination - system where the response is coming from
See Also:
ObjectMessage.setResponseObject(java.lang.Object, net.sf.xbus.base.xbussystem.XBUSSystem)

getRequestObject

public java.lang.Object getRequestObject(XBUSSystem source)
Description copied from interface: ObjectMessage
Gets the object from an incomimg message.

Specified by:
getRequestObject in interface ObjectMessage
Parameters:
source - reference to the system for which the message is meant
Returns:
the content of the request
See Also:
ObjectMessage.getRequestObject(net.sf.xbus.base.xbussystem.XBUSSystem)

getResponseObject

public java.lang.Object getResponseObject()
Description copied from interface: ObjectMessage
Gets the object of the outgoing message.

Specified by:
getResponseObject in interface ObjectMessage
Returns:
the content of the response
See Also:
ObjectMessage.getResponseObject()