com.esri.core.tasks.ags.identify
Class IdentifyTask

java.lang.Object
  extended by com.esri.core.tasks.ags.identify.IdentifyTask

public class IdentifyTask
extends Object

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.


Constructor Summary
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.
 
Method Summary
 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 IdentifyResults.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifyTask

public IdentifyTask(String url)
constructor taking in a identify service URL.

Parameters:
url - identify service URL

IdentifyTask

public IdentifyTask(String url,
                    UserCredentials credentials)
constructor taking in a identify service URL and user credentials.

Parameters:
url - identify service URL
credentials - user credentials
Method Detail

execute

public IdentifyResult[] execute(IdentifyParameters identifyInput)
                         throws Exception
Executes an identify action.
If any results are retrieved by attempting to identify features, the results are returned as an array of type IdentifyResults. If no features are identified, then an empty array is returned.

Returns:
an array of IdentifyResult
Throws:
Exception


Copyright © 2012. All Rights Reserved.