| Package | com.esri.bacore.client |
| Class | public class AbstractTask |
| Inheritance | AbstractTask flash.events.EventDispatcher |
| Implements | mx.core.IMXMLObject |
| Subclasses | AuthenticationTask, BATask |
client property is abstract and it should be implemented in subclasses.
| Property | Defined by | ||
|---|---|---|---|
| concurrency : String
Value that indicates how to handle multiple calls to the same task.
| AbstractTask | ||
| disableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from
being loaded from the browser's cache.
| AbstractTask | ||
| proxyURL : String
The URL to proxy the request through.
| AbstractTask | ||
| requestTimeout : Number
The request timeout in seconds.
| AbstractTask | ||
| showBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
| AbstractTask | ||
| token : String
Token for accessing a secure task.
| AbstractTask | ||
| url : String
URL of the task.
| AbstractTask | ||
| Property | Defined by | ||
|---|---|---|---|
| client : AbstractClient
[read-only]
Client instance associated with this task.
| AbstractTask | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new instance of the AbstractTask class.
| AbstractTask | ||
| client | property |
client:AbstractClient [read-only]Client instance associated with this task.
NOTE: The implementation of this method is done in subclasses. The base implementation throws an error.
This property can be used as the source for data binding.
Implementation protected function get client():AbstractClient
| concurrency | property |
concurrency:String [read-write]
Value that indicates how to handle multiple calls to the same task. The default
value is multiple. The following values are permitted:
multiple Existing requests are not cancelled and the developer is
responsible for ensuring the consistency of returned data by carefully
managing the event stream. This is the default value.single Only a single request at a time is allowed on the task;
multiple requests generate a fault.last Making a request cancels any existing request.This property can be used as the source for data binding.
Implementation public function get concurrency():String
public function set concurrency(value:String):void
See also
| disableClientCaching | property |
disableClientCaching:Boolean [read-write]If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache.
The default value is false.
This property can be used as the source for data binding.
Implementation public function get disableClientCaching():Boolean
public function set disableClientCaching(value:Boolean):void
| proxyURL | property |
proxyURL:String [read-write]The URL to proxy the request through.
This property can be used as the source for data binding.
Implementation public function get proxyURL():String
public function set proxyURL(value:String):void
| requestTimeout | property |
requestTimeout:Number [read-write]The request timeout in seconds. A value less than or equal to zero prevents request timeout.
The default value is -1.
This property can be used as the source for data binding.
Implementation public function get requestTimeout():Number
public function set requestTimeout(value:Number):void
| showBusyCursor | property |
showBusyCursor:Boolean [read-write]If true, a busy cursor is displayed while a service is executing.
The default value is false.
This property can be used as the source for data binding.
Implementation public function get showBusyCursor():Boolean
public function set showBusyCursor(value:Boolean):void
| token | property |
token:String [read-write]Token for accessing a secure task.
This property can be used as the source for data binding.
Implementation public function get token():String
public function set token(value:String):void
| url | property |
url:String [read-write]URL of the task.
This property can be used as the source for data binding.
Implementation public function get url():String
public function set url(value:String):void
| AbstractTask | () | constructor |
public function AbstractTask()Creates a new instance of the AbstractTask class.