Tuscany Core

org.apache.tuscany.core.message.impl
Class MessageImpl

java.lang.Object
  extended by org.apache.tuscany.core.message.impl.MessageImpl
All Implemented Interfaces:
Message, MessageChannel

public class MessageImpl
extends Object
implements Message, MessageChannel

The default implementation of a message flowed through a wire during an invocation

Version:
$Rev $Date

Constructor Summary
protected MessageImpl()
           
 
Method Summary
 Object getBody()
          Returns the body of the message, which will be the payload or parameters associated with the wire
 MessageChannel getCallbackChannel()
          Returns the callback channel
 Message getRelatedCallbackMessage()
           
 TargetInvoker getTargetInvoker()
          Sets the target invoker to dispatch to when the message passes through the request side of the invocation chain
 void send(Message message)
          Sends a message
 void setBody(Object body)
          Sets the body of the message.
 void setTargetInvoker(TargetInvoker invoker)
          Sets the target invoker to dispatch to when the message passes through the request side of the invocation chain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageImpl

protected MessageImpl()
Method Detail

getBody

public Object getBody()
Description copied from interface: Message
Returns the body of the message, which will be the payload or parameters associated with the wire

Specified by:
getBody in interface Message
See Also:
Message.getBody()

setBody

public void setBody(Object body)
Description copied from interface: Message
Sets the body of the message.

Specified by:
setBody in interface Message
See Also:
Message.setBody(java.lang.Object)

getCallbackChannel

public MessageChannel getCallbackChannel()
Description copied from interface: Message
Returns the callback channel

Specified by:
getCallbackChannel in interface Message
See Also:
Message.getCallbackChannel()

send

public void send(Message message)
Description copied from interface: MessageChannel
Sends a message

Specified by:
send in interface MessageChannel
See Also:
MessageChannel.send(org.apache.tuscany.core.message.Message)

getRelatedCallbackMessage

public Message getRelatedCallbackMessage()
Specified by:
getRelatedCallbackMessage in interface Message
See Also:
Message.getRelatedCallbackMessage()

setTargetInvoker

public void setTargetInvoker(TargetInvoker invoker)
Description copied from interface: Message
Sets the target invoker to dispatch to when the message passes through the request side of the invocation chain

Specified by:
setTargetInvoker in interface Message
See Also:
Message.setTargetInvoker(org.apache.tuscany.core.wire.TargetInvoker)

getTargetInvoker

public TargetInvoker getTargetInvoker()
Description copied from interface: Message
Sets the target invoker to dispatch to when the message passes through the request side of the invocation chain

Specified by:
getTargetInvoker in interface Message
See Also:
Message.getTargetInvoker()

Tuscany Core

-