|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.spi.wire.MessageImpl
public class MessageImpl
The default implementation of a message flowed through a wire during an invocation
Constructor Summary | |
---|---|
MessageImpl()
|
Method Summary | |
---|---|
Object |
getBody()
Returns the body of the message, which will be the payload or parameters associated with the wire |
Object |
getCorrelationId()
Returns the correlation id of the message |
Object |
getFromAddress()
Returns the 'address' of the SCAObject where this message originates |
Object |
getMessageId()
Returns the id of the message |
TargetInvoker |
getTargetInvoker()
Sets the target invoker to dispatch to when the message passes through the request side of the invocation chain |
boolean |
isFault()
Test if the message represents a fault/exception |
void |
setBody(Object body)
Sets the body of the message. |
void |
setBodyWithFault(Object fault)
Set the message body with a fault object. |
void |
setCorrelationId(Object correlationId)
Sets the correlation id of the message |
void |
setFromAddress(Object fromAddress)
Sets the 'address' of the SCAObject where this message originates |
void |
setMessageId(Object messageId)
Sets the id 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 |
---|
public MessageImpl()
Method Detail |
---|
public Object getBody()
Message
getBody
in interface Message
public void setBody(Object body)
Message
setBody
in interface Message
public void setTargetInvoker(TargetInvoker invoker)
Message
setTargetInvoker
in interface Message
public TargetInvoker getTargetInvoker()
Message
getTargetInvoker
in interface Message
public Object getFromAddress()
Message
getFromAddress
in interface Message
public void setFromAddress(Object fromAddress)
Message
setFromAddress
in interface Message
public Object getMessageId()
Message
getMessageId
in interface Message
public void setMessageId(Object messageId)
Message
setMessageId
in interface Message
public Object getCorrelationId()
Message
getCorrelationId
in interface Message
public void setCorrelationId(Object correlationId)
Message
setCorrelationId
in interface Message
public boolean isFault()
Message
isFault
in interface Message
public void setBodyWithFault(Object fault)
Message
setBodyWithFault
in interface Message
fault
- The fault object represents an exception
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |