|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Messages are sent from Endpoints into the MessageBroker, which then sends them to a Service. The MessageBroker also sends Messages to Endpoints, and a Service may ask its Broker to send Messages to Endpoints.
| Field Summary | |
static String |
DESTINATION_CLIENT_ID_HEADER
The name for the destination client Id header, used to target a message back to the proper client when multiple clients share a channel. |
static String |
ENDPOINT_HEADER
The name for the endpoint header. |
static String |
REMOTE_CREDENTIALS_HEADER
The name for the header where remote credentials will be passed. |
| Method Summary | |
Object |
clone()
Returns a clone of the message. |
Object |
getBody()
Returns the body of the message. |
Object |
getClientId()
Returns the client id indicating the client that sent the message. |
String |
getDestination()
Returns the destination that the message targets. |
Object |
getHeader(String name)
Returns a header value corresponding to the passed header name. |
Map |
getHeaders()
Returns the headers for the message. |
String |
getMessageId()
Returns the unique message id. |
long |
getTimestamp()
Returns the timestamp for the message. |
long |
getTimeToLive()
Returns the time to live for the message. |
boolean |
headerExists(String name)
Tests whether a header with the passed name exists. |
void |
setBody(Object value)
Sets the body of the message. |
void |
setClientId(Object value)
Sets the client id indicating the client that sent the message. |
void |
setDestination(String value)
Sets the destination that the message targets. |
void |
setHeader(String name,
Object value)
Sets a header on the message. |
void |
setHeaders(Map value)
Sets the headers for the message. |
void |
setMessageId(String value)
Sets the unique message id. |
void |
setTimestamp(long value)
Sets the timestamp for the message. |
void |
setTimeToLive(long value)
Sets the time to live for the message. |
| Field Detail |
public static final String DESTINATION_CLIENT_ID_HEADER
public static final String ENDPOINT_HEADER
public static final String REMOTE_CREDENTIALS_HEADER
| Method Detail |
public Object getClientId()
public void setClientId(Object value)
value - The client id to set for the message.public String getDestination()
public void setDestination(String value)
value - The destination that the message targets.public String getMessageId()
public void setMessageId(String value)
value - The unique message id.public long getTimestamp()
public void setTimestamp(long value)
value - The timestamp for the message.public long getTimeToLive()
public void setTimeToLive(long value)
value - The time to live for the message.public Object getBody()
public void setBody(Object value)
value - The body of the message.public Map getHeaders()
public void setHeaders(Map value)
value - The headers to set on the message.public Object getHeader(String name)
null is returned.
name - The header name to retrieve a value for.
public void setHeader(String name,
Object value)
name - The name of the header to set.value - The value for the header.public boolean headerExists(String name)
name - The header to test for existence.
true if the headers exists; otherwise false.public Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||