| Package | com.esri.bacore.client |
| Class | public class AbstractTask |
| Inheritance | AbstractTask flash.events.EventDispatcher |
| Implements | mx.core.IMXMLObject |
| Subclasses | ArcGISAuthenticationTask, 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.
protected function get client():AbstractClient| concurrency | property |
concurrency:String
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. public function get concurrency():String public function set concurrency(value:String):voidSee also
| disableClientCaching | property |
disableClientCaching:BooleanIf 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 client.disableClientCaching.
public function get disableClientCaching():Boolean public function set disableClientCaching(value:Boolean):void| proxyURL | property |
proxyURL:StringThe URL to proxy the request through.
public function get proxyURL():String public function set proxyURL(value:String):void| requestTimeout | property |
requestTimeout:NumberThe request timeout in seconds. A value less than or equal to zero prevents request timeout.
The default value is client.requestTimeout.
public function get requestTimeout():Number public function set requestTimeout(value:Number):void| showBusyCursor | property |
showBusyCursor:BooleanIf true, a busy cursor is displayed while a service is executing.
The default value is false.
public function get showBusyCursor():Boolean public function set showBusyCursor(value:Boolean):void| token | property |
token:StringToken for accessing a secure task.
public function get token():String public function set token(value:String):void| url | property |
url:StringURL of the task.
The default value is client.url.
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.