ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
mx.data.messages 

ManagedRemotingMessage  - AS3 ADEP Data Services

Packagemx.data.messages
Classpublic class ManagedRemotingMessage
InheritanceManagedRemotingMessage Inheritance AsyncMessage Inheritance AbstractMessage Inheritance Object

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

This message is used to transport an managed remoting operation.



Public Properties
 PropertyDefined By
 Inheritedbody : Object
The body of a message contains the specific data that needs to be delivered to the remote destination.
AbstractMessage
 InheritedclientId : String
The clientId indicates which MessageAgent sent the message.
AbstractMessage
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcorrelationId : String
Provides access to the correlation id of the message.
AsyncMessage
 Inheriteddestination : String
The message destination.
AbstractMessage
 Inheritedheaders : 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
 InheritedmessageId : 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
 Inheritedtimestamp : Number
Provides access to the time stamp for the message.
AbstractMessage
 InheritedtimeToLive : Number
The time to live value of a message indicates how long the message should be considered valid and deliverable.
AbstractMessage
Public Methods
 MethodDefined By
  
Constructor.
ManagedRemotingMessage
  
[static] Provides a description of the operation specified.
ManagedRemotingMessage
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns a string representation of the message.
AbstractMessage
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  CREATE_OPERATION : uint = 0
[static] A create operation.
ManagedRemotingMessage
  DELETE_OPERATION : uint = 4
[static] A delete operation.
ManagedRemotingMessage
  FILL_ASSOCIATION_OPERATION : uint = 7
[static] A fill operation on an association.
ManagedRemotingMessage
  FILL_OPERATION : uint = 1
[static] A fill operation.
ManagedRemotingMessage
  FIND_ITEM_OPERATION : uint = 5
[static] A fill operation.
ManagedRemotingMessage
  GET_OPERATION : uint = 2
[static] A Get operation.
ManagedRemotingMessage
  INCLUDE_OPERATION : uint = 6
[static] For simple invocation of a ManagedRemoteService method.
ManagedRemotingMessage
  REMOTE_ALIAS : String = "flex.data.messages.ManagedRemotingMessage"
[static] Remote alias specifying the fully qualified server side class corresponding to this class.
ManagedRemotingMessage
  UNKNOWN_OPERATION : uint = 1000
[static] Code for an unknown operation type.
ManagedRemotingMessage
  UPDATE_OPERATION : uint = 3
[static] An update operation.
ManagedRemotingMessage
Property Detail

operation

property
public var operation:uint

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: 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.

Related API Elements

operationMethodName

property 
public var operationMethodName:String

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10, AIR 2.6

The target method to invoke on the managed remote service.

Constructor Detail

ManagedRemotingMessage

()Constructor
public function ManagedRemotingMessage()

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

getOperationAsString

()method
public static function getOperationAsString(op:uint):String

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

Provides a description of the operation specified. This method is used in toString() operations on this message.

Parameters

op:uint — The operation.

Returns
String — A String representation of the operation, or "unknown" if the operation is undefined.

Example  ( How to use this example )
         var msg:ManagedRemotingMessage = ManagedRemotingMessage(event.message);
         trace("Current operation -'"+
                ManagedRemotingMessage.getOperationAsString(msg.operation)+ "'.");
      
Constant Detail

CREATE_OPERATION

Constant
public static const CREATE_OPERATION:uint = 0

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

A create operation.

DELETE_OPERATION

Constant 
public static const DELETE_OPERATION:uint = 4

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

A delete operation.

FILL_ASSOCIATION_OPERATION

Constant 
public static const FILL_ASSOCIATION_OPERATION:uint = 7

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: 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

Constant 
public static const FILL_OPERATION:uint = 1

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: 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

Constant 
public static const FIND_ITEM_OPERATION:uint = 5

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: 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

Constant 
public static const GET_OPERATION:uint = 2

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: 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

Constant 
public static const INCLUDE_OPERATION:uint = 6

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

For simple invocation of a ManagedRemoteService method.

REMOTE_ALIAS

Constant 
public static const REMOTE_ALIAS:String = "flex.data.messages.ManagedRemotingMessage"

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

Remote alias specifying the fully qualified server side class corresponding to this class.

UNKNOWN_OPERATION

Constant 
public static const UNKNOWN_OPERATION:uint = 1000

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

Code for an unknown operation type.

UPDATE_OPERATION

Constant 
public static const UPDATE_OPERATION:uint = 3

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 4.6
Runtime Versions: Flash Player 10.2, AIR 2.6

An update operation.