|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.tasks.ags.identify.IdentifyTask
public class 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.
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 IdentifyResult s. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentifyTask(String url)
url
- identify service URLpublic IdentifyTask(String url, UserCredentials credentials)
url
- identify service URLcredentials
- user credentialsMethod Detail |
---|
public IdentifyResult[] execute(IdentifyParameters identifyInput) throws Exception
IdentifyResult
s. If no features are identified, then an empty array is returned.
IdentifyResult
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |