This page was saved using jaction on 2006-09-04 8:33:33.
Address: http://flexdocs.kr/docs/flex2/langref/mx/messaging/messages/CommandMessage.html
Title: mx.messaging.messages.CommandMessage (Flex™ 2 레퍼런스 가이드)  •  Size: 46083
(Flex Data Services 전용)
Packagemx.messaging.messages
Classpublic class CommandMessage
InheritanceCommandMessage Inheritance AsyncMessage Inheritance AbstractMessage Inheritance Object

CommandMessage 클래스는, 서버 인프라스트럭쳐에 커멘드를 송신하기 위한 메카니즘을 제공합니다. 대상이 되는 것은, 메시징의 Publish/예약(subscribe), ping 조작, 클러스터 조작 등에 관련하는 커멘드입니다.



Public property
 property정의
 Inheritedbody : Object
메세지의 본문에는, 리모트 행선지에 전달할 필요가 있는 특정의 데이터가 포함됩니다.
AbstractMessage
 InheritedclientId : String
clientId 는, 메세지를 송신한 MessageAgent 를 나타냅니다.
AbstractMessage
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 InheritedcorrelationId : String
메세지의 상관 ID 에의 액세스를 제공합니다.
AsyncMessage
 Inheriteddestination : String
메세지의 행선지.
AbstractMessage
 Inheritedheaders : Object
메세지의 헤더는, 키가 헤더명, 값이 헤더치로서 포함되는 결합 배열입니다.
AbstractMessage
 InheritedmessageId : String
메세지 고유의 ID.
AbstractMessage
  messageRefType : String
이 서버 메세지 타입이 서비스에 의해 처리되는 메세지 타입에 일치하고 있을지 어떨지에 응해, 특정의 서비스에 소속하는 리모트 행선지를 CommandMessage 의 타겟으로 설정합니다.
CommandMessage
  operation : uint
CommandMessage 의 조작 또는 커멘드에의 액세스를 제공합니다.
CommandMessage
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
 Inheritedtimestamp : Number
메세지의 일시 스탬프에의 액세스를 제공합니다.
AbstractMessage
 InheritedtimeToLive : Number
메세지의 유효기간의 값은, 메세지가 유효해 전달 가능하다라고 보여지는 기간을 나타냅니다.
AbstractMessage
Public Methods
 Methods정의
  CommandMessage ()
본문과 해더가 empty에서, 디폴트의 operation 로서 UNKNOWN_OPERATION 가 설정된 CommandMessage 인스턴스를 작성합니다.
CommandMessage
  getOperationAsString (op:uint ):String
[static] 지정한 조작의 설명을 설정합니다.
CommandMessage
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
  toString ():String
메세지의 string 표현을 돌려줍니다.
CommandMessage
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
Public 정수
 정수정의
  AUTHENTICATION_MESSAGE_REF_TYPE : String = "flex.messaging.messages.AuthenticationMessage"
[static] 인증 커멘드에 대응하는 서버 메세지의 타입입니다.
CommandMessage
  CLIENT_PING_OPERATION : uint = 5
[static] 이 조작은, 현재의 채널로부터 리모트 엔드 포인트에의 접속을 테스트할 경우에 사용됩니다.
CommandMessage
  CLIENT_SYNC_OPERATION : uint = 4
[static] 이 옵션은, 클라이언트로부터 폴링 커멘드를 송신했던 것에 따라 결핍 한 메세지나 캐쉬된 메세지를 리모트 행선지가 클라이언트에 대해서 동기 시킬 때 사용됩니다.
CommandMessage
  CLUSTER_REQUEST_OPERATION : uint = 7
[static] 이 조작은, 클러스터 멤버쉽에 근거한 리모트 행선지의 페이르오바엔드포인트의 리스트를 요구할 경우에 사용됩니다.
CommandMessage
 InheritedDESTINATION_CLIENT_ID_HEADER : String = "DSDstClientId"
[static] 서버로부터 푸쉬 된 메세지가 배치로서 도착했을 때, 그 배치내의 메세지가 복수의 다른 컨슈머(consumer) 인스턴스를 타겟으로 하고 있을 가능성이 있습니다.
AbstractMessage
 InheritedENDPOINT_HEADER : String = "DSEndpoint"
[static] 메세지에는, 메세지가 송신되는 채널의 엔드 포인트 ID 의 태그가 부여됩니다.
AbstractMessage
  LOGIN_OPERATION : uint = 8
[static] 이 조작은, 유저가 현재의 채널로부터 로그인할 수 있도록(듯이) 엔드 포인트에 자격 정보를 송신할 경우에 사용됩니다.
CommandMessage
  LOGOUT_OPERATION : uint = 9
[static] 이 조작은, 유저를 현재의 채널로부터 로그아웃 시킬 때 사용됩니다. 채널이 HTTP 베이스의 경우는, 유저 세션이 무효가 됩니다.
CommandMessage
  POLL_OPERATION : uint = 2
[static] 이 조작은, 리모트 행선지에 대해서 보류중의 미배신메세지의 폴링을 실시할 때 사용됩니다.
CommandMessage
 InheritedREMOTE_CREDENTIALS_HEADER : String = "DSRemoteCredentials"
[static] 행선지의 리모트 증명서를 설정할 필요가 있는 메세지는, 이 헤더내에 Base64 encode 된 자격 정보를 보관 유지합니다.
AbstractMessage
 InheritedREQUEST_TIMEOUT_HEADER : String = "DSRequestTimeout"
[static] 이 헤더는, 요구 타임 아웃을 정의해 송신되는 메세지에 사용됩니다.
AbstractMessage
  SELECTOR_HEADER : String = "DSSelector"
[static] 컨슈머(consumer)에 의해 발행된 예약(subscribe)코만드에서는, 이 헤더로 컨슈머(consumer)의 selector 식을 건네줍니다.
CommandMessage
  SESSION_INVALIDATE_OPERATION : uint = 10
[static] 이 조작은, 클라이언트와 리모트 행선지의 사이의 세션이 타임 아웃 한 것을 나타낼 때 사용됩니다.
CommandMessage
  SUBSCRIBE_OPERATION : uint = 0
[static] 이 조작은, 리모트 행선지에의 예약(subscribe)에 사용됩니다.
CommandMessage
 InheritedSUBTOPIC_HEADER : String = "DSSubtopic"
[static] subtopic property가 정의된 MessageAgent 로부터 송신된 메세지에서는, 메세지의 타겟이 되는 서브 주제가 이 헤더내에 나타납니다.
AsyncMessage
  UNKNOWN_OPERATION : uint = 10000
[static] 이것은, 새로운 CommandMessage 인스턴스의 디폴트 조작입니다.
CommandMessage
  UNSUBSCRIBE_OPERATION : uint = 1
[static] 이 조작은, 리모트 행선지로부터의 예약(subscribe) 해제에 사용됩니다.
CommandMessage
property의 상세
messageRefTypeproperty
public var messageRefType:String

이 서버 메세지 타입이 서비스에 의해 처리되는 메세지 타입에 일치하고 있을지 어떨지에 응해, 특정의 서비스에 소속하는 리모트 행선지를 CommandMessage 의 타겟으로 설정합니다.

operationproperty 
public var operation:uint

CommandMessage 의 조작 또는 커멘드에의 액세스를 제공합니다. 조작은, 리모트 행선지에서 이 메세지를 처리하는 방법을 나타냅니다.

constructor    의 상세
CommandMessage()constructor   
public 함수 CommandMessage()

본문과 해더가 empty에서, 디폴트의 operation 로서 UNKNOWN_OPERATION 가 설정된 CommandMessage 인스턴스를 작성합니다.

Methods의 상세
getOperationAsString()Methods
public static function getOperationAsString(op:uint ):String

지정한 조작의 설명을 설정합니다. 이 Methods는, 이 메세지에 대한 toString() 조작으로 사용됩니다.

Parameters
op:uint — CommandMessage 조작의 정수의 1 개입니다.

반환값
String — 조작의 짧은 이름입니다.

Example
         var msg:CommandMessage = CommandMessage(event.message);
         trace("Current operation -'"+
                CommandMessage.getOperationAsString(msg.operation)+ "'. ");
      

toString()Methods 
public override function toString():String

메세지의 string 표현을 돌려줍니다.

반환값
String — 메세지의 string 표현입니다.
정수의 상세
AUTHENTICATION_MESSAGE_REF_TYPE정수
public static const AUTHENTICATION_MESSAGE_REF_TYPE:String = "flex.messaging.messages.AuthenticationMessage"

인증 커멘드에 대응하는 서버 메세지의 타입입니다.

CLIENT_PING_OPERATION정수 
public static const CLIENT_PING_OPERATION:uint = 5

이 조작은, 현재의 채널로부터 리모트 엔드 포인트에의 접속을 테스트할 경우에 사용됩니다.

CLIENT_SYNC_OPERATION정수 
public static const CLIENT_SYNC_OPERATION:uint = 4

이 옵션은, 클라이언트로부터 폴링 커멘드를 송신했던 것에 따라 결핍 한 메세지나 캐쉬된 메세지를 리모트 행선지가 클라이언트에 대해서 동기 시킬 때 사용됩니다.

CLUSTER_REQUEST_OPERATION정수 
public static const CLUSTER_REQUEST_OPERATION:uint = 7

이 조작은, 클러스터 멤버쉽에 근거한 리모트 행선지의 페이르오바엔드포인트의 리스트를 요구할 경우에 사용됩니다.

LOGIN_OPERATION정수 
public static const LOGIN_OPERATION:uint = 8

이 조작은, 유저가 현재의 채널로부터 로그인할 수 있도록(듯이) 엔드 포인트에 자격 정보를 송신할 경우에 사용됩니다. 자격 정보는 Base64 encode 되어 메세지의 body 에 포함될 필요가 있습니다.

LOGOUT_OPERATION정수 
public static const LOGOUT_OPERATION:uint = 9

이 조작은, 유저를 현재의 채널로부터 로그아웃 시킬 때 사용됩니다. 채널이 HTTP 베이스의 경우는, 유저 세션이 무효가 됩니다.

POLL_OPERATION정수 
public static const POLL_OPERATION:uint = 2

이 조작은, 리모트 행선지에 대해서 보류중의 미배신메세지의 폴링을 실시할 때 사용됩니다.

SELECTOR_HEADER정수 
public static const SELECTOR_HEADER:String = "DSSelector"

컨슈머(consumer)에 의해 발행된 예약(subscribe)코만드에서는, 이 헤더로 컨슈머(consumer)의 selector 식을 건네줍니다.

SESSION_INVALIDATE_OPERATION정수 
public static const SESSION_INVALIDATE_OPERATION:uint = 10

이 조작은, 클라이언트와 리모트 행선지의 사이의 세션이 타임 아웃 한 것을 나타낼 때 사용됩니다.

SUBSCRIBE_OPERATION정수 
public static const SUBSCRIBE_OPERATION:uint = 0

이 조작은, 리모트 행선지에의 예약(subscribe)에 사용됩니다.

UNKNOWN_OPERATION정수 
public static const UNKNOWN_OPERATION:uint = 10000

이것은, 새로운 CommandMessage 인스턴스의 디폴트 조작입니다.

UNSUBSCRIBE_OPERATION정수 
public static const UNSUBSCRIBE_OPERATION:uint = 1

이 조작은, 리모트 행선지로부터의 예약(subscribe) 해제에 사용됩니다.







 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/messaging/messages/CommandMessage.html