包 | com.supermap.web.iServerJava6R.dataServices |
类 | public class GetFeaturesByIDsService |
继承 | GetFeaturesByIDsService ![]() |
数据集 ID 查询就是在数据集集合中查找指定 ID 号的要素。
该类负责将客户端指定的数据集 ID 查询参数传递给服务端,并接收服务端返回的结果数据。
用户获取服务端返回的数据查询结果信息有两种方式:一种是通过监听 GetFeaturesEvent.PROCESS_COMPLETE 事件;一种是使用 AsyncResponder 类。
方法 | 定义方 | ||
---|---|---|---|
GetFeaturesByIDsService(url:String)
使用数据查询结果资源地址初始化 GetFeaturesByIDsService 类的新实例。
|
GetFeaturesByIDsService | ||
processAsync(parameters:GetFeaturesByIDsParameters, responder:IResponder = null):AsyncToken
根据数据查询结果资源地址与服务端完成异步通讯,即发送查询参数,并获取查询结果。.
|
GetFeaturesByIDsService |
事件 | Summary | 定义方 | ||
---|---|---|---|---|
当与服务端交互失败时触发该事件。 | GetFeaturesByIDsService | |||
当与服务端交互成功时触发该事件。 | GetFeaturesByIDsService |
GetFeaturesByIDsService | () | 构造函数 |
public function GetFeaturesByIDsService(url:String)
使用数据查询结果资源地址初始化 GetFeaturesByIDsService 类的新实例。
参数url:String — 数据查询结果资源地址。请求数据服务中数据集查询服务,URL 应为:http://{服务器地址}:{服务端口号}/iserver/services/{数据服务名}/rest/data/featureResults;例如:"http://localhost:8090/iserver/services/data-jingjin/rest/data/featureResults" |
processAsync | () | 方法 |
public function processAsync(parameters:GetFeaturesByIDsParameters, responder:IResponder = null):AsyncToken
根据数据查询结果资源地址与服务端完成异步通讯,即发送查询参数,并获取查询结果。.
参数
parameters:GetFeaturesByIDsParameters — 数据集 ID 查询参数 GetFeaturesByIDsParameters。 |
|
responder:IResponder (default = null ) — 由 AsyncResponder 类实现。远程或异步请求服务完成时将调用的处理函数。使用方法为AsyncResponder(result:Function, fault:Function, token:Object = null) result:Function — 成功完成请求时应调用的函数。必须具有以下签名: public function (result:Object, token:Object = null):void; fault:Function — 请求完成但出错时应调用的函数。必须具有以下签名: public function (error:FaultEvent, token:Object = null):void; token:Object (default = null) — 与此请求相关的其他信息。 有关 AsyncResponder 类的详细信息请参见 “ActionScript 语言帮助文档”。 |
AsyncToken — 返回 AsyncToken 对象,它为异步 RPC 操作提供设置额外数据或标记级别数据的位置。它也允许为单独的调用附加 IResponder。可从 token 属性的 ResultEvent 和 FaultEvent 中引用 AsyncToken。有关 AsyncToken 类的详细信息请参见 “ActionScript 语言帮助文档”。 |
fault | 事件 |
mx.rpc.events.FaultEvent
当与服务端交互失败时触发该事件。
processComplete | 事件 |