| Package | com.esri.bao.tasks |
| Class | public final class BAOnlineClient |
| Inheritance | BAOnlineClient BAClient AbstractClient |
var tokenProvider:BAOnlineTokenProvider = new BAOnlineTokenProvider(new UserCredentials("username", "password"));
// "https://baoapi.esri.com" is the default value for token provider url.
//tokenProvider.url = "https://baoapi.esri.com";
var client:BAOnlineClient = new BAOnlineClient();
// "http://baoapi.esri.com" is the default value for BAOnlineClient url.
//client.url = "http://baoapi.esri.com";
client.tokenProvider = tokenProvider;
See also
| Method | Defined by | ||
|---|---|---|---|
|
BAOnlineClient(url:Object = null)
Creates a new instance of the client.
| BAOnlineClient | ||
![]() |
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 | |
![]() |
notifyOnSuccess(success:*, 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):AsyncToken
Sends a request to HTTP service.
| AbstractClient | |
| BAOnlineClient | () | constructor |
public function BAOnlineClient(url:Object = null)Creates a new instance of the client.
The base URL to the Business Analyst Online Web Services looks as follows:
http://{host}:{port}
The {host} and {port} parameters in this URL should be substituted with
valid Business Analyst Online host name and port, respectively.
If the base URL is null or empty, the "http://baoapi.esri.com" value is assigned as the base URL.
Parametersurl:Object (default = null) — The base URL to the Business Analyst Online Web Services.
|