|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.core.invocation.MessageImpl
public class MessageImpl
The default implementation of a message flowed through a wire during an invocation
Constructor Summary | |
---|---|
MessageImpl()
|
Method Summary | ||
---|---|---|
|
getBindingContext()
Returns the binding context in force for this message |
|
|
getBody()
Returns the body of the message, which will be the payload or parameters associated with the wire |
|
EndpointReference |
getFrom()
Get the end point reference of the source reference |
|
java.util.List<java.lang.Object> |
getHeaders()
Returns a list of objects that are contained in the message header |
|
java.lang.Object |
getMessageID()
Returns the id of the message |
|
Operation |
getOperation()
Returns the operation that created the message. |
|
EndpointReference |
getTo()
Get the end point reference of target service |
|
boolean |
isFault()
Determines if the message represents a fault/exception |
|
|
setBindingContext(T bindingContext)
Set the binding context that is in force for this message |
|
|
setBody(T body)
Sets the body of the message. |
|
void |
setFaultBody(java.lang.Object fault)
Set the message body with a fault object. |
|
void |
setFrom(EndpointReference from)
Set the end point reference of the reference originating the message |
|
void |
setMessageID(java.lang.Object messageId)
Sets the id of the message |
|
void |
setOperation(Operation op)
Sets the operation that created the message. |
|
void |
setTo(EndpointReference to)
Set the end point reference of target service |
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 <T> T getBody()
Message
getBody
in interface Message
public <T> void setBody(T body)
Message
setBody
in interface Message
body
- The body of the messagepublic java.lang.Object getMessageID()
Message
getMessageID
in interface Message
public void setMessageID(java.lang.Object messageId)
Message
setMessageID
in interface Message
messageId
- The message IDpublic boolean isFault()
Message
isFault
in interface Message
public void setFaultBody(java.lang.Object fault)
Message
setFaultBody
in interface Message
fault
- The fault object represents an exceptionpublic EndpointReference getFrom()
Message
getFrom
in interface Message
public void setFrom(EndpointReference from)
Message
setFrom
in interface Message
from
- The end point reference of the reference originating the messagepublic EndpointReference getTo()
Message
getTo
in interface Message
public void setTo(EndpointReference to)
Message
setTo
in interface Message
to
- The end point reference of the service that the message targetspublic Operation getOperation()
Message
getOperation
in interface Message
public void setOperation(Operation op)
Message
setOperation
in interface Message
op
- The operation that created the messagepublic java.util.List<java.lang.Object> getHeaders()
Message
getHeaders
in interface Message
public <T> T getBindingContext()
Message
getBindingContext
in interface Message
public <T> void setBindingContext(T bindingContext)
Message
setBindingContext
in interface Message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |