| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 Messagepublic <T> void setBody(T body)
Message
setBody in interface Messagebody - The body of the messagepublic java.lang.Object getMessageID()
Message
getMessageID in interface Messagepublic void setMessageID(java.lang.Object messageId)
Message
setMessageID in interface MessagemessageId - The message IDpublic boolean isFault()
Message
isFault in interface Messagepublic void setFaultBody(java.lang.Object fault)
Message
setFaultBody in interface Messagefault - The fault object represents an exceptionpublic EndpointReference getFrom()
Message
getFrom in interface Messagepublic void setFrom(EndpointReference from)
Message
setFrom in interface Messagefrom - The end point reference of the reference originating the messagepublic EndpointReference getTo()
Message
getTo in interface Messagepublic void setTo(EndpointReference to)
Message
setTo in interface Messageto - The end point reference of the service that the message targetspublic Operation getOperation()
Message
getOperation in interface Messagepublic void setOperation(Operation op)
Message
setOperation in interface Messageop - The operation that created the messagepublic java.util.List<java.lang.Object> getHeaders()
Message
getHeaders in interface Messagepublic <T> T getBindingContext()
Message
getBindingContext in interface Messagepublic <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 | ||||||||