| Package | mx.messaging.messages |
| Class | public class CommandMessage |
| Inheritance | CommandMessage AsyncMessage AbstractMessage Object |
| Property | Defined by | ||
|---|---|---|---|
![]() | body : Object
The body of a message contains the specific data that needs to be
delivered to the remote destination.
| AbstractMessage | |
![]() | clientId : String
The clientId indicates which MessageAgent sent the message.
| AbstractMessage | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
![]() | correlationId : String
Provides access to the correlation id of the message.
| AsyncMessage | |
![]() | destination : String
The message destination.
| AbstractMessage | |
![]() | headers : Object
The headers of a message are an associative array where the key is the
header name and the value is the header value.
| AbstractMessage | |
![]() | messageId : String
The unique id for the message.
| AbstractMessage | |
| messageRefType : String
Targets the CommandMessage to a remote destination belonging to a specific service,
based upon whether this server message type matches the message type the service handles.
| CommandMessage | ||
| operation : uint
Provides access to the operation/command for the CommandMessage.
| CommandMessage | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
![]() | timestamp : Number
Provides access to the time stamp for the message.
| AbstractMessage | |
![]() | timeToLive : Number
The time to live value of a message indicates how long the message
should be considered valid and deliverable.
| AbstractMessage | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructs an instance of a CommandMessage with an empty body and header
and a default
operation of UNKNOWN_OPERATION. | CommandMessage | ||
|
[static]
Provides a description of the operation specified.
| CommandMessage | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
|
Returns a string representation of the message.
| CommandMessage | ||
![]() |
Returns the primitive value of the specified object.
| Object | |
| Constant | Defined by | ||
|---|---|---|---|
| AUTHENTICATION_MESSAGE_REF_TYPE : String = "flex.messaging.messages.AuthenticationMessage" [static]
The server message type for authentication commands.
| CommandMessage | ||
| CLIENT_PING_OPERATION : uint = 5 [static]
This operation is used to test connectivity over the current channel to
the remote endpoint.
| CommandMessage | ||
| CLIENT_SYNC_OPERATION : uint = 4 [static]
This operation is used by a remote destination to sync missed or cached messages
back to a client as a result of a client issued poll command.
| CommandMessage | ||
| CLUSTER_REQUEST_OPERATION : uint = 7 [static]
This operation is used to request a list of failover endpoint URIs
for the remote destination based on cluster membership.
| CommandMessage | ||
![]() | DESTINATION_CLIENT_ID_HEADER : String = "DSDstClientId" [static]
Messages pushed from the server may arrive in a batch, with messages in the
batch potentially targeted to different Consumer instances.
| AbstractMessage | |
![]() | ENDPOINT_HEADER : String = "DSEndpoint" [static]
Messages are tagged with the endpoint id for the Channel they are sent over.
| AbstractMessage | |
| LOGIN_OPERATION : uint = 8 [static]
This operation is used to send credentials to the endpoint so that
the user can be logged in over the current channel.
| CommandMessage | ||
| LOGOUT_OPERATION : uint = 9 [static]
This operation is used to log the user out of the current channel, and
will invalidate the server session if the channel is HTTP based.
| CommandMessage | ||
| POLL_OPERATION : uint = 2 [static]
This operation is used to poll a remote destination for pending,
undelivered messages.
| CommandMessage | ||
![]() | REMOTE_CREDENTIALS_HEADER : String = "DSRemoteCredentials" [static]
Messages that need to set remote credentials for a destination
carry the Base64 encoded credentials in this header.
| AbstractMessage | |
![]() | REQUEST_TIMEOUT_HEADER : String = "DSRequestTimeout" [static]
Messages sent with a defined request timeout use this header.
| AbstractMessage | |
| SELECTOR_HEADER : String = "DSSelector" [static]
Subscribe commands issued by a Consumer pass the Consumer's
selector
expression in this header. | CommandMessage | ||
| SESSION_INVALIDATE_OPERATION : uint = 10 [static]
This operation is used to indicate that the client's session with a
remote destination has timed out.
| CommandMessage | ||
| SUBSCRIBE_OPERATION : uint = 0 [static]
This operation is used to subscribe to a remote destination.
| CommandMessage | ||
![]() | SUBTOPIC_HEADER : String = "DSSubtopic" [static]
Messages sent by a MessageAgent with a defined
subtopic
property indicate their target subtopic in this header. | AsyncMessage | |
| UNKNOWN_OPERATION : uint = 10000 [static]
This is the default operation for new CommandMessage instances.
| CommandMessage | ||
| UNSUBSCRIBE_OPERATION : uint = 1 [static]
This operation is used to unsubscribe from a remote destination.
| CommandMessage | ||
| messageRefType | property |
public var messageRefType:StringTargets the CommandMessage to a remote destination belonging to a specific service, based upon whether this server message type matches the message type the service handles.
| operation | property |
public var operation:uintProvides access to the operation/command for the CommandMessage. Operations indicate how this message should be processed by the remote destination.
| CommandMessage | () | constructor |
public function CommandMessage()
Constructs an instance of a CommandMessage with an empty body and header
and a default operation of UNKNOWN_OPERATION.
| getOperationAsString | () | method |
public static function getOperationAsString(op:uint):String
Provides a description of the operation specified.
This method is used in toString() operations on this
message.
op:uint — One of the CommandMessage operation constants.
|
String —
Short name for the operation.
|
var msg:CommandMessage = CommandMessage(event.message);
trace("Current operation -'"+
CommandMessage.getOperationAsString(msg.operation)+ "'.");
| toString | () | method |
public override function toString():StringReturns a string representation of the message.
ReturnsString —
String representation of the message.
|
| AUTHENTICATION_MESSAGE_REF_TYPE | constant |
public static const AUTHENTICATION_MESSAGE_REF_TYPE:String = "flex.messaging.messages.AuthenticationMessage"The server message type for authentication commands.
| CLIENT_PING_OPERATION | constant |
public static const CLIENT_PING_OPERATION:uint = 5This operation is used to test connectivity over the current channel to the remote endpoint.
| CLIENT_SYNC_OPERATION | constant |
public static const CLIENT_SYNC_OPERATION:uint = 4This operation is used by a remote destination to sync missed or cached messages back to a client as a result of a client issued poll command.
| CLUSTER_REQUEST_OPERATION | constant |
public static const CLUSTER_REQUEST_OPERATION:uint = 7This operation is used to request a list of failover endpoint URIs for the remote destination based on cluster membership.
| LOGIN_OPERATION | constant |
public static const LOGIN_OPERATION:uint = 8
This operation is used to send credentials to the endpoint so that
the user can be logged in over the current channel.
The credentials need to be Base64 encoded and stored in the body
of the message.
| LOGOUT_OPERATION | constant |
public static const LOGOUT_OPERATION:uint = 9This operation is used to log the user out of the current channel, and will invalidate the server session if the channel is HTTP based.
| POLL_OPERATION | constant |
public static const POLL_OPERATION:uint = 2This operation is used to poll a remote destination for pending, undelivered messages.
| SELECTOR_HEADER | constant |
public static const SELECTOR_HEADER:String = "DSSelector"
Subscribe commands issued by a Consumer pass the Consumer's selector
expression in this header.
| SESSION_INVALIDATE_OPERATION | constant |
public static const SESSION_INVALIDATE_OPERATION:uint = 10This operation is used to indicate that the client's session with a remote destination has timed out.
| SUBSCRIBE_OPERATION | constant |
public static const SUBSCRIBE_OPERATION:uint = 0This operation is used to subscribe to a remote destination.
| UNKNOWN_OPERATION | constant |
public static const UNKNOWN_OPERATION:uint = 10000This is the default operation for new CommandMessage instances.
| UNSUBSCRIBE_OPERATION | constant |
public static const UNSUBSCRIBE_OPERATION:uint = 1This operation is used to unsubscribe from a remote destination.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/CommandMessage.html