public interface Message
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getBody()
Returns the body of the message, which will be the payload or parameters associated with the wire.
|
WorkContext |
getWorkContext()
Returns the context associated with this invocation.
|
boolean |
isFault()
Determines if the message represents a fault/exception
|
void |
reset()
Resets the message making it available for reuse.
|
void |
setBody(java.lang.Object body)
Sets the body of the message.
|
void |
setBodyWithFault(java.lang.Object fault)
Set the message body with a fault object.
|
void |
setWorkContext(WorkContext workContext)
Sets the context associated with this invocation.
|
java.lang.Object getBody()
void setBody(java.lang.Object body)
body - the body of the messagevoid setBodyWithFault(java.lang.Object fault)
fault - The fault object represents an exceptionboolean isFault()
WorkContext getWorkContext()
void setWorkContext(WorkContext workContext)
workContext - the context associated with this invocationvoid reset()