패키지 | mx.messaging.messages |
클래스 | public class CommandMessage |
상속 | CommandMessage AsyncMessage AbstractMessage Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
속성 | 정의 주체 | ||
---|---|---|---|
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
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | 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 | ||
operation : uint
Provides access to the operation/command for the CommandMessage. | CommandMessage | ||
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 |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructs an instance of a CommandMessage with an empty body and header
and a default operation of UNKNOWN_OPERATION. | CommandMessage | ||
[정적]
Provides a description of the operation specified. | CommandMessage | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
[재정의]
Returns a string representation of the message. | CommandMessage | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
ADD_SUBSCRIPTIONS : String = "DSAddSub" [정적]
Header used in a MULTI_SUBSCRIBE message to specify an Array of subtopic/selector
pairs to add to the existing set of subscriptions. | CommandMessage | ||
AUTHENTICATION_MESSAGE_REF_TYPE : String = "flex.messaging.messages.AuthenticationMessage" [정적]
The server message type for authentication commands. | CommandMessage | ||
CLIENT_PING_OPERATION : uint = 5 [정적]
This operation is used to test connectivity over the current channel to
the remote endpoint. | CommandMessage | ||
CLIENT_SYNC_OPERATION : uint = 4 [정적]
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 [정적]
This operation is used to request a list of failover endpoint URIs
for the remote destination based on cluster membership. | CommandMessage | ||
CREDENTIALS_CHARSET_HEADER : String = "DSCredentialsCharset" [정적]
Header to specify which character set encoding was used while encoding
login credentials. | CommandMessage | ||
DISCONNECT_OPERATION : uint = 12 [정적]
This operation is used to indicate that a channel has disconnected. | CommandMessage | ||
HEARTBEAT_HEADER : String = "DS<3" [정적]
Header that indicates the message is a heartbeat. | CommandMessage | ||
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. | CommandMessage | ||
LOGOUT_OPERATION : uint = 9 [정적]
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 | ||
MAX_FREQUENCY_HEADER : String = "DSMaxFrequency" [정적]
Header to indicate the maximum number of messages a Consumer wants to
receive per second. | CommandMessage | ||
MESSAGING_VERSION : String = "DSMessagingVersion" [정적]
Endpoints can imply what features they support by reporting the
latest version of messaging they are capable of during the handshake of
the initial ping CommandMessage. | CommandMessage | ||
MULTI_SUBSCRIBE_OPERATION : uint = 11 [정적]
Used by the MultiTopicConsumer to subscribe/unsubscribe for more
than one topic in the same message. | CommandMessage | ||
NEEDS_CONFIG_HEADER : String = "DSNeedsConfig" [정적]
Header to indicate that the Channel needs the configuration from the
server. | CommandMessage | ||
NO_OP_POLL_HEADER : String = "DSNoOpPoll" [정적]
Header to suppress poll response processing. | CommandMessage | ||
POLL_OPERATION : uint = 2 [정적]
This operation is used to poll a remote destination for pending,
undelivered messages. | CommandMessage | ||
POLL_WAIT_HEADER : String = "DSPollWait" [정적]
Header to drive an idle wait time before the next client poll request. | CommandMessage | ||
PRESERVE_DURABLE_HEADER : String = "DSPreserveDurable" [정적]
Durable JMS subscriptions are preserved when an unsubscribe message
has this parameter set to true in its header. | CommandMessage | ||
REMOVE_SUBSCRIPTIONS : String = "DSRemSub" [정적]
Like the above, but specifies the subtopic/selector array of to remove
| CommandMessage | ||
SELECTOR_HEADER : String = "DSSelector" [정적]
Subscribe commands issued by a Consumer pass the Consumer's selector
expression in this header. | CommandMessage | ||
SUBSCRIBE_OPERATION : uint = 0 [정적]
This operation is used to subscribe to a remote destination. | CommandMessage | ||
SUBSCRIPTION_INVALIDATE_OPERATION : uint = 10 [정적]
This operation is used to indicate that the client's subscription with a
remote destination has timed out. | CommandMessage | ||
SUBTOPIC_SEPARATOR : String = "_;_" [정적]
The separator string used for separating subtopic and selectors in the
add and remove subscription headers. | CommandMessage | ||
TRIGGER_CONNECT_OPERATION : uint = 13 [정적]
This operation is used to trigger a ChannelSet to connect. | CommandMessage | ||
UNKNOWN_OPERATION : uint = 10000 [정적]
This is the default operation for new CommandMessage instances. | CommandMessage | ||
UNSUBSCRIBE_OPERATION : uint = 1 [정적]
This operation is used to unsubscribe from a remote destination. | CommandMessage |
operation | 속성 |
public var operation:uint
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Provides access to the operation/command for the CommandMessage. Operations indicate how this message should be processed by the remote destination.
CommandMessage | () | 생성자 |
public function CommandMessage()
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructs an instance of a CommandMessage with an empty body and header
and a default operation
of UNKNOWN_OPERATION
.
getOperationAsString | () | 메서드 |
public static function getOperationAsString(op:uint):String
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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 | () | 메서드 |
ADD_SUBSCRIPTIONS | 상수 |
public static const ADD_SUBSCRIPTIONS:String = "DSAddSub"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Header used in a MULTI_SUBSCRIBE message to specify an Array of subtopic/selector pairs to add to the existing set of subscriptions.
AUTHENTICATION_MESSAGE_REF_TYPE | 상수 |
public static const AUTHENTICATION_MESSAGE_REF_TYPE:String = "flex.messaging.messages.AuthenticationMessage"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The server message type for authentication commands.
CLIENT_PING_OPERATION | 상수 |
public static const CLIENT_PING_OPERATION:uint = 5
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to test connectivity over the current channel to the remote endpoint.
CLIENT_SYNC_OPERATION | 상수 |
public static const CLIENT_SYNC_OPERATION:uint = 4
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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.
CLUSTER_REQUEST_OPERATION | 상수 |
public static const CLUSTER_REQUEST_OPERATION:uint = 7
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to request a list of failover endpoint URIs for the remote destination based on cluster membership.
CREDENTIALS_CHARSET_HEADER | 상수 |
public static const CREDENTIALS_CHARSET_HEADER:String = "DSCredentialsCharset"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Header to specify which character set encoding was used while encoding login credentials.
DISCONNECT_OPERATION | 상수 |
public static const DISCONNECT_OPERATION:uint = 12
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to indicate that a channel has disconnected.
HEARTBEAT_HEADER | 상수 |
public static const HEARTBEAT_HEADER:String = "DS<3"
Header that indicates the message is a heartbeat.
LOGIN_OPERATION | 상수 |
public static const LOGIN_OPERATION:uint = 8
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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 | 상수 |
public static const LOGOUT_OPERATION:uint = 9
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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.
MAX_FREQUENCY_HEADER | 상수 |
public static const MAX_FREQUENCY_HEADER:String = "DSMaxFrequency"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Header to indicate the maximum number of messages a Consumer wants to receive per second.
MESSAGING_VERSION | 상수 |
public static const MESSAGING_VERSION:String = "DSMessagingVersion"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Endpoints can imply what features they support by reporting the latest version of messaging they are capable of during the handshake of the initial ping CommandMessage.
MULTI_SUBSCRIBE_OPERATION | 상수 |
public static const MULTI_SUBSCRIBE_OPERATION:uint = 11
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Used by the MultiTopicConsumer to subscribe/unsubscribe for more than one topic in the same message.
NEEDS_CONFIG_HEADER | 상수 |
public static const NEEDS_CONFIG_HEADER:String = "DSNeedsConfig"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Header to indicate that the Channel needs the configuration from the server.
NO_OP_POLL_HEADER | 상수 |
public static const NO_OP_POLL_HEADER:String = "DSNoOpPoll"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Header to suppress poll response processing. If a client has a long-poll parked on the server and issues another poll, the response to this subsequent poll should be tagged with this header in which case the response is treated as a no-op and the next poll will not be scheduled. Without this, a subsequent poll will put the channel and endpoint into a busy polling cycle.
POLL_OPERATION | 상수 |
public static const POLL_OPERATION:uint = 2
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to poll a remote destination for pending, undelivered messages.
POLL_WAIT_HEADER | 상수 |
public static const POLL_WAIT_HEADER:String = "DSPollWait"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Header to drive an idle wait time before the next client poll request.
PRESERVE_DURABLE_HEADER | 상수 |
public static const PRESERVE_DURABLE_HEADER:String = "DSPreserveDurable"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Durable JMS subscriptions are preserved when an unsubscribe message has this parameter set to true in its header.
REMOVE_SUBSCRIPTIONS | 상수 |
public static const REMOVE_SUBSCRIPTIONS:String = "DSRemSub"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Like the above, but specifies the subtopic/selector array of to remove
SELECTOR_HEADER | 상수 |
public static const SELECTOR_HEADER:String = "DSSelector"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Subscribe commands issued by a Consumer pass the Consumer's selector
expression in this header.
SUBSCRIBE_OPERATION | 상수 |
public static const SUBSCRIBE_OPERATION:uint = 0
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to subscribe to a remote destination.
SUBSCRIPTION_INVALIDATE_OPERATION | 상수 |
public static const SUBSCRIPTION_INVALIDATE_OPERATION:uint = 10
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to indicate that the client's subscription with a remote destination has timed out.
SUBTOPIC_SEPARATOR | 상수 |
public static const SUBTOPIC_SEPARATOR:String = "_;_"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The separator string used for separating subtopic and selectors in the add and remove subscription headers.
TRIGGER_CONNECT_OPERATION | 상수 |
public static const TRIGGER_CONNECT_OPERATION:uint = 13
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to trigger a ChannelSet to connect.
UNKNOWN_OPERATION | 상수 |
public static const UNKNOWN_OPERATION:uint = 10000
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This is the default operation for new CommandMessage instances.
UNSUBSCRIBE_OPERATION | 상수 |
public static const UNSUBSCRIBE_OPERATION:uint = 1
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This operation is used to unsubscribe from a remote destination.
Tue Jun 12 2018, 03:17 PM Z