Packagecom.esri.bacore.client
Classpublic class AbstractTask
InheritanceAbstractTask Inheritance flash.events.EventDispatcher
Implements mx.core.IMXMLObject
Subclasses ArcGISAuthenticationTask, AuthenticationTask, AuthenticationTask, 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.


Implementation
    protected function get client():AbstractClient
concurrencyproperty 
concurrency:String

Value that indicates how to handle multiple calls to the same task. The default value is multiple. The following values are permitted:


Implementation
    public function get concurrency():String
    public function set concurrency(value:String):void

See also

disableClientCachingproperty 
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.

The default value is client.disableClientCaching.


Implementation
    public function get disableClientCaching():Boolean
    public function set disableClientCaching(value:Boolean):void
proxyURLproperty 
proxyURL:String

The URL to proxy the request through.


Implementation
    public function get proxyURL():String
    public function set proxyURL(value:String):void
requestTimeoutproperty 
requestTimeout:Number

The request timeout in seconds. A value less than or equal to zero prevents request timeout.

The default value is client.requestTimeout.


Implementation
    public function get requestTimeout():Number
    public function set requestTimeout(value:Number):void
showBusyCursorproperty 
showBusyCursor:Boolean

If true, a busy cursor is displayed while a service is executing.

The default value is false.


Implementation
    public function get showBusyCursor():Boolean
    public function set showBusyCursor(value:Boolean):void
tokenproperty 
token:String

Token for accessing a secure task.


Implementation
    public function get token():String
    public function set token(value:String):void
urlproperty 
url:String

URL of the task.

The default value is client.url.


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.