public class

FindTask

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.find.FindTask

Class Overview

The FindTask is to perform a find operation on a valid map service resource, which is represented by a URL. The result of this operation is a list of FindResult objects. Each FindResult object include its value,feature ID, field ID, field name, layer ID, geometry etc. and attributes in the form of name-value pairs. User can provide arguments to the FindTask by the FindParameters.

Summary

Public Constructors
FindTask(String url)
Instantiates a new find task.
FindTask(String url, UserCredentials credentials)
Instantiates a new find task.
Public Methods
List<FindResult> execute(FindParameters find)
Execute the find task.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FindTask (String url)

Instantiates a new find task.

Parameters
url the URL

public FindTask (String url, UserCredentials credentials)

Instantiates a new find task.

Parameters
url the url
credentials the user credentials
Throws
EsriSecurityException the esri security exception

Public Methods

public List<FindResult> execute (FindParameters find)

Execute the find task.

Parameters
find a FindParameters object
Returns
  • a list of FindResult objects
Throws
Exception when the errors happen during requesting or parsing.