Package | mx.rpc.remoting |
Class | public dynamic class RemoteObject |
Inheritance | RemoteObject ![]() ![]() ![]() |
Subclasses | RemoteObject |
Property | Defined By | ||
---|---|---|---|
![]() | channelSet : ChannelSet
Provides access to the ChannelSet used by the service.
| AbstractService | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
![]() | destination : String
The destination of the service.
| AbstractService | |
makeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
| RemoteObject | ||
![]() | operations : Object
The Operations array is usually only set by the MXML compiler if you
create a service using an MXML tag.
| AbstractService | |
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
![]() | requestTimeout : int
Provides access to the request timeout in seconds for sent messages.
| AbstractService | |
source : String
Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter.
| RemoteObject |
Method | Defined By | ||
---|---|---|---|
RemoteObject(destination:String = null)
Creates a new RemoteObject.
| RemoteObject | ||
![]() |
Disconnects the service's network connection and removes any pending
request responders.
| AbstractService | |
Returns an Operation of the given name.
| RemoteObject | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Logs the user out of the destination.
| AbstractService | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the credentials for the destination accessed by the service when using Data Services on the server side.
| AbstractService | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
If a remote object is managed by an external service, such a ColdFusion Component (CFC),
a username and password can be set for the authentication mechanism of that remote service.
| RemoteObject | ||
Represents an instance of RemoteObject as a String, describing
important properties such as the destination id and the set of
channels assigned.
| RemoteObject | ||
![]() |
Returns the primitive value of the specified object.
| Object |
makeObjectsBindable | property |
makeObjectsBindable:Boolean
[read-write] When this value is true, anonymous objects returned are forced to bindable objects.
public function get makeObjectsBindable():Boolean
public function set makeObjectsBindable(value:Boolean):void
source | property |
source:String
[read-write] Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter. This allows you to provide more than one source that can be accessed from a single destination on the server.
public function get source():String
public function set source(value:String):void
RemoteObject | () | Constructor |
public function RemoteObject(destination:String = null)
Creates a new RemoteObject.
Parametersdestination:String (default = null ) — [optional] Destination of the RemoteObject; should match a destination name in the services-config.xml file.
|
getOperation | () | method |
public override function getOperation(name:String):AbstractOperation
Returns an Operation of the given name. If the Operation wasn't
created beforehand, a new mx.rpc.remoting.Operation
is
created during this call. Operations are usually accessible by simply
naming them after the service variable
(myService.someOperation
), but if your Operation name
happens to match a defined method on the service
(like setCredentials
), you can use this method to get the
Operation instead.
Parameters
name:String — Name of the Operation.
|
AbstractOperation — Operation that executes for this name.
|
setRemoteCredentials | () | method |
public override function setRemoteCredentials(remoteUsername:String, remotePassword:String, charset:String = null):void
If a remote object is managed by an external service, such a ColdFusion Component (CFC), a username and password can be set for the authentication mechanism of that remote service.
Parameters
remoteUsername:String — the username to pass to the remote endpoint
|
|
remotePassword:String — the password to pass to the remote endpoint
|
|
charset:String (default = null ) — The character set encoding to use while encoding the
remote credentials. The default is null, which implies the legacy charset
of ISO-Latin-1. The only other supported charset is "UTF-8".
|
toString | () | method |
public function toString():String
Represents an instance of RemoteObject as a String, describing important properties such as the destination id and the set of channels assigned.
ReturnsString |