Package | com.esri.baserver.tasks |
Class | public class BAServerClient |
Inheritance | BAServerClient BAClient AbstractClient Object |
Property | Defined By | ||
---|---|---|---|
activeDatasetID : String = null
Active dataset ID. | BAServerClient | ||
concurrency : String = multiple
Value that indicates how to handle multiple calls to the same task. | AbstractClient | ||
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. | AbstractClient | ||
isFullErrorMessage : Boolean = false
Produce a full error message with stack trace (true) or without stack trace (false). | BAServerClient | ||
proxyURL : String
The URL to proxy the request through. | AbstractClient | ||
requestTimeout : Number = -1
The request timeout in seconds. | AbstractClient | ||
showBusyCursor : Boolean = false
If true, a busy cursor is displayed while a service is executing. | AbstractClient | ||
token : String
Token for accessing a secure HTTP client. | AbstractClient | ||
tokenProvider : ITokenProvider
Provider responsible for updating the security token if the last one expires. | AbstractClient | ||
url : String
URL of the task. | AbstractClient |
Method | Defined By | ||
---|---|---|---|
BAServerClient(url:Object = null)
Creates a new instance of the BAServerClient class. | BAServerClient | ||
combineUrl(baseUrl:String, urlSuffix:String):String [static]
Combines a base URL with a suffix. | AbstractClient | ||
dispatchEventOnTask(event:Event, asyncToken:AsyncToken):void [static]
Dispatches an event on the requester task associated with the given async token. | AbstractClient | ||
notifyOnError(error:Error, asyncToken:AsyncToken):void [static]
Creates fault event from an error and notifies async token responders using the
notifyOnFault method. | AbstractClient | ||
notifyOnFault(fault:*, asyncToken:AsyncToken):void [static]
Notifies async token responders on fault and dispatches the fault event on the requester task. | AbstractClient | ||
notifyOnResult(result:*, asyncToken:AsyncToken):void [static]
Notifies async token responders on result and dispatches an event on the requester task. | AbstractClient | ||
send(task:IEventDispatcher, logError:Function, urlSuffix:String, urlVariables:URLVariables, responder:IResponder, operation:Function, timeout:Number = -1, disableCaching:Boolean = false, url:String = null):AsyncToken
Sends a request to HTTP service. | AbstractClient |
activeDatasetID | property |
public var activeDatasetID:String = null
Active dataset ID. Null value means using the default Business Analyst Server dataset
which is the first dataset in the dataset list.
The value of this variable is used as an initial value of the activeDatasetID
property of a task when it is created using the BAServerClient class instance in
its constructor.
isFullErrorMessage | property |
public var isFullErrorMessage:Boolean = false
Produce a full error message with stack trace (true) or without stack trace (false).
The value of this variable is used as an initial value of the isFullErrorMessage
property of a task when it is created using the BAServerClient class instance in
its constructor.
BAServerClient | () | Constructor |
public function BAServerClient(url:Object = null)
Creates a new instance of the BAServerClient class.
The base URL to the Business Analyst Server HTTP Service looks as follows:
http://{host}:{port}/ArcGIS/baserver/REST/services/DefaultMap/BAServer
The {host}
and {port}
parameters in this URL should be substituted with
valid Business Analyst Server host name and port, respectively.
url:Object (default = null ) — Base URL to the Business Analyst Server HTTP Service.
|
var client:BAServerClient = new BAServerClient(); client.url = "http://localhost/ArcGIS/baserver/REST/services/DefaultMap/BAServer"; // Remove lines below, if the security is disabled. var tokenProvider:ArcGISTokenProvider = new ArcGISTokenProvider(new UserCredentials("username", "password")); tokenProvider.url = "https://localhost/ArcGIS/tokens"; client.tokenProvider = tokenProvider;