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 layer ID, layer name, field name, found value, geometry etc. and attributes in the form of name-value pairs. User can provide arguments to the FindTask by the FindParameters.

See also:

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 String: the URL

public FindTask (String url, UserCredentials credentials)

Instantiates a new find task.

Parameters
url String: the url
credentials UserCredentials: the user credentials
Throws
EsriSecurityException the esri security exception

Public Methods

public List<FindResult> execute (FindParameters find)

Execute the find task.

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