패키지 | mx.messaging.messages |
클래스 | public class AbstractMessage |
상속 | AbstractMessage Object |
구현 | IMessage |
하위 클래스 | AsyncMessage, HTTPRequestMessage, RemotingMessage |
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
headers
property provides access to specialized meta
information for a specific message instance.
The headers
property is an associative array with the specific
header name as the key.
The body of a message contains the instance specific data that needs to be
delivered and processed by the remote destination.
The body
is an object and is the payload for a message.
속성 | 정의 주체 | ||
---|---|---|---|
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 | ||
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 | ||
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 an AbstractMessage with an empty body and header. | AbstractMessage | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
DESTINATION_CLIENT_ID_HEADER : String = "DSDstClientId" [정적]
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" [정적]
Messages are tagged with the endpoint id for the Channel they are sent over. | AbstractMessage | ||
FLEX_CLIENT_ID_HEADER : String = "DSId" [정적]
This header is used to transport the global FlexClient Id value in outbound
messages once it has been assigned by the server. | AbstractMessage | ||
PRIORITY_HEADER : String = "DSPriority" [정적]
Messages sent by a MessageAgent can have a priority header with a 0-9
numerical value (0 being lowest) and the server can choose to use this
numerical value to prioritize messages to clients. | AbstractMessage | ||
REMOTE_CREDENTIALS_CHARSET_HEADER : String = "DSRemoteCredentialsCharset" [정적]
Messages that need to set remote credentials for a destination
may also need to report the character-set encoding that was used to
create the credentials String using this header. | AbstractMessage | ||
REMOTE_CREDENTIALS_HEADER : String = "DSRemoteCredentials" [정적]
Messages that need to set remote credentials for a destination
carry the Base64 encoded credentials in this header. | AbstractMessage | ||
REQUEST_TIMEOUT_HEADER : String = "DSRequestTimeout" [정적]
Messages sent with a defined request timeout use this header. | AbstractMessage | ||
STATUS_CODE_HEADER : String = "DSStatusCode" [정적]
A status code can provide context about the nature of a response
message. | AbstractMessage |
body | 속성 |
body:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The body of a message contains the specific data that needs to be delivered to the remote destination.
구현
public function get body():Object
public function set body(value:Object):void
clientId | 속성 |
destination | 속성 |
headers | 속성 |
headers:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The headers of a message are an associative array where the key is the header name and the value is the header value. This property provides access to the specialized meta information for the specific message instance. Core header names begin with a 'DS' prefix. Custom header names should start with a unique prefix to avoid name collisions.
구현
public function get headers():Object
public function set headers(value:Object):void
messageId | 속성 |
timestamp | 속성 |
timestamp:Number
언어 버전: | 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 time stamp for the message. A time stamp is the date and time that the message was sent. The time stamp is used for tracking the message through the system, ensuring quality of service levels and providing a mechanism for message expiration.
구현
public function get timestamp():Number
public function set timestamp(value:Number):void
관련 API 요소
timeToLive | 속성 |
timeToLive:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The time to live value of a message indicates how long the message
should be considered valid and deliverable.
This value works in conjunction with the timestamp
value.
Time to live is the number of milliseconds that this message remains
valid starting from the specified timestamp
value.
For example, if the timestamp
value is 04/05/05 1:30:45 PST
and the timeToLive
value is 5000, then this message will
expire at 04/05/05 1:30:50 PST.
Once a message expires it will not be delivered to any other clients.
구현
public function get timeToLive():Number
public function set timeToLive(value:Number):void
AbstractMessage | () | 생성자 |
public function AbstractMessage()
언어 버전: | 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 an AbstractMessage with an empty body and header. This message type should not be instantiated or used directly.
toString | () | 메서드 |
DESTINATION_CLIENT_ID_HEADER | 상수 |
public static const DESTINATION_CLIENT_ID_HEADER:String = "DSDstClientId"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Messages pushed from the server may arrive in a batch, with messages in the batch potentially targeted to different Consumer instances. Each message will contain this header identifying the Consumer instance that will receive the message.
ENDPOINT_HEADER | 상수 |
public static const ENDPOINT_HEADER:String = "DSEndpoint"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Messages are tagged with the endpoint id for the Channel they are sent over. Channels set this value automatically when they send a message.
FLEX_CLIENT_ID_HEADER | 상수 |
public static const FLEX_CLIENT_ID_HEADER:String = "DSId"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This header is used to transport the global FlexClient Id value in outbound messages once it has been assigned by the server.
PRIORITY_HEADER | 상수 |
public static const PRIORITY_HEADER:String = "DSPriority"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Messages sent by a MessageAgent can have a priority header with a 0-9 numerical value (0 being lowest) and the server can choose to use this numerical value to prioritize messages to clients.
REMOTE_CREDENTIALS_CHARSET_HEADER | 상수 |
public static const REMOTE_CREDENTIALS_CHARSET_HEADER:String = "DSRemoteCredentialsCharset"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Messages that need to set remote credentials for a destination may also need to report the character-set encoding that was used to create the credentials String using this header.
REMOTE_CREDENTIALS_HEADER | 상수 |
public static const REMOTE_CREDENTIALS_HEADER:String = "DSRemoteCredentials"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Messages that need to set remote credentials for a destination carry the Base64 encoded credentials in this header.
REQUEST_TIMEOUT_HEADER | 상수 |
public static const REQUEST_TIMEOUT_HEADER:String = "DSRequestTimeout"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Messages sent with a defined request timeout use this header. The request timeout value is set on outbound messages by services or channels and the value controls how long the corresponding MessageResponder will wait for an acknowledgement, result or fault response for the message before timing out the request.
STATUS_CODE_HEADER | 상수 |
public static const STATUS_CODE_HEADER:String = "DSStatusCode"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A status code can provide context about the nature of a response message. For example, messages received from an HTTP based channel may need to report the HTTP response status code (if available).
Tue Jun 12 2018, 03:17 PM Z