|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.messages.AbstractMessage
public abstract class AbstractMessage
This is the default implementation of Message, which provides a convenient base for behavior and associations common to all endpoints.
| Field Summary |
|---|
| Fields inherited from interface flex.messaging.messages.Message |
|---|
DESTINATION_CLIENT_ID_HEADER, ENDPOINT_HEADER, FLEX_CLIENT_ID_HEADER, REMOTE_CREDENTIALS_CHARSET_HEADER, REMOTE_CREDENTIALS_HEADER, SYNC_HEADER |
| Constructor Summary | |
|---|---|
AbstractMessage()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of the message. |
boolean |
equals(Object o)
|
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 headerName)
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. |
int |
hashCode()
|
boolean |
headerExists(String headerName)
Tests whether a header with the passed name exists. |
String |
logCategory()
Returns a category to use when logging against this message type. |
void |
setBody(Object body)
Sets the body of the message. |
void |
setClientId(Object clientId)
Sets the client id indicating the client that sent the message. |
void |
setDestination(String destination)
Sets the destination that the message targets. |
void |
setHeader(String headerName,
Object value)
Sets a header on the message. |
void |
setHeaders(Map newHeaders)
Sets the headers for the message. |
void |
setMessageId(String messageId)
Sets the unique message id. |
void |
setTimestamp(long timestamp)
Sets the timestamp for the message. |
void |
setTimeToLive(long timeToLive)
Sets the time to live for the message. |
String |
toString()
|
String |
toString(int indent)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMessage()
| Method Detail |
|---|
public Object getClientId()
Message
getClientId in interface Messagepublic void setClientId(Object clientId)
Message
setClientId in interface MessageclientId - The client id to set for the message.public String getMessageId()
Message
getMessageId in interface Messagepublic void setMessageId(String messageId)
Message
setMessageId in interface MessagemessageId - The unique message id.public long getTimestamp()
Message
getTimestamp in interface Messagepublic void setTimestamp(long timestamp)
Message
setTimestamp in interface Messagetimestamp - The timestamp for the message.public long getTimeToLive()
Message
getTimeToLive in interface Messagepublic void setTimeToLive(long timeToLive)
Message
setTimeToLive in interface MessagetimeToLive - The time to live for the message.public Object getBody()
Message
getBody in interface Messagepublic void setBody(Object body)
Message
setBody in interface Messagebody - The body of the message.public String getDestination()
Message
getDestination in interface Messagepublic void setDestination(String destination)
Message
setDestination in interface Messagedestination - The destination that the message targets.public Map getHeaders()
Message
getHeaders in interface Messagepublic void setHeaders(Map newHeaders)
Message
setHeaders in interface MessagenewHeaders - The headers to set on the message.public Object getHeader(String headerName)
Messagenull is returned.
getHeader in interface MessageheaderName - The header name to retrieve a value for.
public void setHeader(String headerName,
Object value)
Message
setHeader in interface MessageheaderName - The name of the header to set.value - The value for the header.public boolean headerExists(String headerName)
Message
headerExists in interface MessageheaderName - The header to test for existence.
true if the headers exists; otherwise false.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String toString(int indent)
public Object clone()
Message
clone in interface Messageclone in class Objectpublic String logCategory()
|
||||||||||
| 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/blazeds/1/javadoc/flex/messaging/messages/AbstractMessage.html