套件 | mx.data.messages |
類別 | public class ManagedRemotingMessage |
繼承 | ManagedRemotingMessage AsyncMessage AbstractMessage Object |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
屬性 | 定義自 | ||
---|---|---|---|
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 of this message. | ManagedRemotingMessage | ||
operationMethodName : String
The target method to invoke on the managed remote service. | ManagedRemotingMessage | ||
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 |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | ManagedRemotingMessage | ||
[靜態]
Provides a description of the operation specified. | ManagedRemotingMessage | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
會傳回指定之物件的基本值。 | Object |
常數 | 定義自 | ||
---|---|---|---|
CREATE_OPERATION : uint = 0 [靜態]
A create operation. | ManagedRemotingMessage | ||
DELETE_OPERATION : uint = 4 [靜態]
A delete operation. | ManagedRemotingMessage | ||
FILL_ASSOCIATION_OPERATION : uint = 7 [靜態]
A fill operation on an association. | ManagedRemotingMessage | ||
FILL_OPERATION : uint = 1 [靜態]
A fill operation. | ManagedRemotingMessage | ||
FIND_ITEM_OPERATION : uint = 5 [靜態]
A fill operation. | ManagedRemotingMessage | ||
GET_OPERATION : uint = 2 [靜態]
A Get operation. | ManagedRemotingMessage | ||
INCLUDE_OPERATION : uint = 6 [靜態]
For simple invocation of a ManagedRemoteService method. | ManagedRemotingMessage | ||
REMOTE_ALIAS : String = "flex.data.messages.ManagedRemotingMessage" [靜態]
Remote alias specifying the fully qualified server side class corresponding
to this class. | ManagedRemotingMessage | ||
UNKNOWN_OPERATION : uint = 1000 [靜態]
Code for an unknown operation type. | ManagedRemotingMessage | ||
UPDATE_OPERATION : uint = 3 [靜態]
An update operation. | ManagedRemotingMessage |
operation | 屬性 |
public var operation:uint
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
Provides access to the operation/command of this message.
Operations indicate how the remote destination should process this message.
To display a description of operation type use the
getOperationAsString
method.
相關 API 元素
operationMethodName | 屬性 |
public var operationMethodName:String
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10, AIR 2.6 |
The target method to invoke on the managed remote service.
ManagedRemotingMessage | () | 建構函式 |
public function ManagedRemotingMessage()
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
Constructor.
getOperationAsString | () | 方法 |
public static function getOperationAsString(op:uint):String
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
Provides a description of the operation specified.
This method is used in toString()
operations on this message.
參數
op:uint — The operation.
|
String — A String representation of the operation, or "unknown" if the operation is undefined.
|
範例 ( 如何使用本範例 )
var msg:ManagedRemotingMessage = ManagedRemotingMessage(event.message); trace("Current operation -'"+ ManagedRemotingMessage.getOperationAsString(msg.operation)+ "'.");
CREATE_OPERATION | 常數 |
public static const CREATE_OPERATION:uint = 0
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
A create operation.
DELETE_OPERATION | 常數 |
public static const DELETE_OPERATION:uint = 4
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
A delete operation.
FILL_ASSOCIATION_OPERATION | 常數 |
public static const FILL_ASSOCIATION_OPERATION:uint = 7
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
A fill operation on an association. Used on the server only. Managed remoting clients send fill_association messages via a DataMessage to the managed entity destination, not the service destination.
FILL_OPERATION | 常數 |
public static const FILL_OPERATION:uint = 1
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
A fill operation. Used on the server only. Managed remoting clients send fill messages via a DataMessage to the managed entity destination, not the service destination.
FIND_ITEM_OPERATION | 常數 |
public static const FIND_ITEM_OPERATION:uint = 5
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
A fill operation. Used on the server only. Managed remoting clients send findItem messages via a DataMessage to the managed entity destination, not the service destination.
GET_OPERATION | 常數 |
public static const GET_OPERATION:uint = 2
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10, AIR 2.6 |
A Get operation. Used on the server only. Managed remoting clients send get messages via a DataMessage to the managed entity destination, not the service destination.
INCLUDE_OPERATION | 常數 |
public static const INCLUDE_OPERATION:uint = 6
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
For simple invocation of a ManagedRemoteService method.
REMOTE_ALIAS | 常數 |
public static const REMOTE_ALIAS:String = "flex.data.messages.ManagedRemotingMessage"
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
Remote alias specifying the fully qualified server side class corresponding to this class.
UNKNOWN_OPERATION | 常數 |
public static const UNKNOWN_OPERATION:uint = 1000
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
Code for an unknown operation type.
UPDATE_OPERATION | 常數 |
public static const UPDATE_OPERATION:uint = 3
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.6 |
執行階段版本: | Flash Player 10.2, AIR 2.6 |
An update operation.
Tue Jun 12 2018, 03:47 PM Z