|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Message
Represents a request, response, or exception flowing through a wire
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 |
Method Detail |
---|
Object getBody()
void setBody(Object body)
void setTargetInvoker(TargetInvoker invoker)
TargetInvoker getTargetInvoker()
Object getFromAddress()
void setFromAddress(Object fromAddress)
Object getMessageId()
void setMessageId(Object messageId)
Object getCorrelationId()
void setCorrelationId(Object correlationId)
boolean isFault()
void setBodyWithFault(Object fault)
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 |