public interface Message
| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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> values)
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.
|
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
Object getBody()
String getClientId()
String getDestination()
Object getHeader(String name)
name - header nameString getMessageId()
long getTimestamp()
long getTimeToLive()
boolean headerExists(String name)
name - header namevoid setBody(Object value)
value - bodyvoid setClientId(String value)
value - client idvoid setDestination(String value)
value - destinationvoid setHeader(String name, Object value)
name - header namevalue - header valuevoid setHeaders(Map<String,Object> values)
values - header valuesvoid setMessageId(String value)
value - message idvoid setTimestamp(long value)
value - timestampvoid setTimeToLive(long value)
value - ttlCopyright © 2005–2017 Red5. All rights reserved.