Packagecom.esri.bacore.client
Classpublic class AbstractTask
InheritanceAbstractTask Inheritance flash.events.EventDispatcher
Implementsmx.core.IMXMLObject
SubclassesAuthenticationTask, BATask

The AbstractTask class is the base class for all tasks. The client property is abstract and it should be implemented in subclasses.



Public Properties
 PropertyDefined 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
Protected Properties
 PropertyDefined by
  client : AbstractClient
[read-only] Client instance associated with this task.
AbstractTask
Public Methods
 MethodDefined by
  
Creates a new instance of the AbstractTask class.
AbstractTask
Property detail
clientproperty
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
concurrencyproperty 
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:

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

disableClientCachingproperty 
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
proxyURLproperty 
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
requestTimeoutproperty 
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
showBusyCursorproperty 
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
tokenproperty 
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
urlproperty 
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
Constructor detail
AbstractTask()constructor
public function AbstractTask()

Creates a new instance of the AbstractTask class.