java.lang.Object | |
↳ | com.esri.core.tasks.ags.identify.IdentifyTask |
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.
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
|
constructor taking in a identify service URL.
url | identify service URL |
---|
constructor taking in a identify service URL and user credentials.
url | identify service URL |
---|---|
credentials | user credentials |
Executes an identify action.
If any results are retrieved by attempting to identify features, the results are returned as an array of type
identifyInput | the identify input |
---|
IdentifyResult
Exception | the exception
IdentifyResult s. If no features are identified, then an empty array is returned.
|
---|