public class

IdentifyTask

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.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 execute() method in the class to identify features. The identified features are returned as an array of type IdentifyResult.

The IdentifyTask class extends the abstract class Task, which implements the Callable interface. The advantage of this is that you execute the IdentifyTask with another thread. The Callable interface provides the advantage that results can be returned, in this case as an array of type IdentifyResult, when the result is computed by the separate thread.

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 an identify action.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IdentifyTask (String url)

constructor taking in a identify service URL.

Parameters
url identify service URL

public IdentifyTask (String url, UserCredentials credentials)

constructor taking in a identify service URL and user credentials.

Parameters
url identify service URL
credentials user credentials

Public Methods

public IdentifyResult[] execute (IdentifyParameters identifyInput)

Executes an identify action.
If any results are retrieved by attempting to identify features, the results are returned as an array of type

Parameters
identifyInput the identify input
Returns
Throws
Exception the exception IdentifyResults. If no features are identified, then an empty array is returned.