|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Message
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 |
FLEX_CLIENT_ID_HEADER
This header is used to transport the FlexClient Id value in messages sent clients to the server. |
static String |
REMOTE_CREDENTIALS_HEADER
The name for the header where remote credentials will be passed. |
static String |
SYNC_HEADER
Presence of param means that auto-sync is false for the destination |
| 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 |
|---|
static final String FLEX_CLIENT_ID_HEADER
static final String DESTINATION_CLIENT_ID_HEADER
static final String ENDPOINT_HEADER
static final String REMOTE_CREDENTIALS_HEADER
static final String SYNC_HEADER
| Method Detail |
|---|
Object getClientId()
void setClientId(Object value)
value - The client id to set for the message.String getDestination()
void setDestination(String value)
value - The destination that the message targets.String getMessageId()
void setMessageId(String value)
value - The unique message id.long getTimestamp()
void setTimestamp(long value)
value - The timestamp for the message.long getTimeToLive()
void setTimeToLive(long value)
value - The time to live for the message.Object getBody()
void setBody(Object value)
value - The body of the message.Map getHeaders()
void setHeaders(Map value)
value - The headers to set on the message.Object getHeader(String name)
null is returned.
name - The header name to retrieve a value for.
void setHeader(String name,
Object value)
name - The name of the header to set.value - The value for the header.boolean headerExists(String name)
name - The header to test for existence.
true if the headers exists; otherwise false.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/messages/Message.html