public class

IdentifyTask

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.identify.IdentifyTask

Class Overview

The IdentifyTask class identifies features based on a set of parameters. The IdentifyTask class receives input parameters as an IdentifyParameters object, which specifies the details necessary for identifying features.

Use the synchronous execute(IdentifyParameters) method or the asynchronous method execute(IdentifyParameters, CallbackListener) to identify features. The identified features are returned as an array of type IdentifyResult. If using the asynchronous execute method, obtain the array of IdentifyResultss from the callback.

Summary

Public Constructors
IdentifyTask(String url)
Constructor taking in a identify service URL.
IdentifyTask(String url, UserCredentials credentials)
Constructor taking in a identify service URL and user credentials.
Public Methods
IdentifyResult[] execute(IdentifyParameters identifyInput)
Executes the identify task with the specified parameters.
Future<IdentifyResult[]> execute(IdentifyParameters identifyInput, CallbackListener<IdentifyResult[]> callback)
Executes the identify task asynchronously.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IdentifyTask (String url)

Constructor taking in a identify service URL. Use this constructor if the URL specified is to a public service.

Parameters
url String: identify service URL

public IdentifyTask (String url, UserCredentials credentials)

Constructor taking in a identify service URL and user credentials. Use this constructor if the URL specified is to a secured service.

Parameters
url String: identify service URL
credentials UserCredentials: user credentials

Public Methods

public IdentifyResult[] execute (IdentifyParameters identifyInput)

Executes the identify task with the specified parameters. Any results are returned as an array of IdentifyResult objects.

Parameters
identifyInput IdentifyParameters: the identify parameters
Returns
IdentifyResult[] an array of IdentifyResults. If no features are identified, an empty array is returned.
Throws
Exception
Exception

public Future<IdentifyResult[]> execute (IdentifyParameters identifyInput, CallbackListener<IdentifyResult[]> callback)

Executes the identify task asynchronously. Use this method over the synchronous execute method if your identify might take more time to execute and you want your application to remain responsive during execution. Implement the CallbackListener to obtain the identify results on the callback, and to be notified if any error occurs.

Parameters
identifyInput IdentifyParameters: the parameters for the identify
callback CallbackListener: the call back
Returns
Future<IdentifyResult[]> Future of IdentifyResult