|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Message
Field Summary | |
---|---|
static String |
DESTINATION_CLIENT_ID_HEADER
|
static String |
ENDPOINT_HEADER
|
static String |
FLEX_CLIENT_ID_HEADER
|
static String |
MESSAGING_VERSION
|
static String |
NEEDS_CONFIG_HEADER
|
static String |
POLL_WAIT_HEADER
|
static String |
PRESERVE_DURABLE_HEADER
|
static String |
REMOTE_CREDENTIALS_HEADER
|
static String |
REMOVE_SUBSCRIPTIONS
|
static String |
SELECTOR_HEADER
|
static String |
SUBSCRIPTION_INVALIDATED_HEADER
|
static String |
SUBTOPIC_SEPARATOR
|
static String |
SYNC_HEADER
|
Method Summary | |
---|---|
Object |
getBody()
Returns the body of the message. |
String |
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<String,Object> |
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(String 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<String,Object> 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 NEEDS_CONFIG_HEADER
static final String POLL_WAIT_HEADER
static final String PRESERVE_DURABLE_HEADER
static final String REMOVE_SUBSCRIPTIONS
static final String SELECTOR_HEADER
static final String SUBSCRIPTION_INVALIDATED_HEADER
static final String SUBTOPIC_SEPARATOR
static final String MESSAGING_VERSION
static final String DESTINATION_CLIENT_ID_HEADER
static final String ENDPOINT_HEADER
static final String FLEX_CLIENT_ID_HEADER
static final String REMOTE_CREDENTIALS_HEADER
static final String SYNC_HEADER
Method Detail |
---|
Object getBody()
String getClientId()
String getDestination()
Object getHeader(String name)
name
-
Map<String,Object> getHeaders()
String getMessageId()
long getTimestamp()
long getTimeToLive()
boolean headerExists(String name)
name
-
void setBody(Object value)
value
- void setClientId(String value)
value
- void setDestination(String value)
value
- void setHeader(String name, Object value)
name
- value
- void setHeaders(Map<String,Object> value)
value
- void setMessageId(String value)
value
- void setTimestamp(long value)
value
- void setTimeToLive(long value)
value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |