| Package | com.aispeech.factory |
| Class | public class URLListFactory |
| Inheritance | URLListFactory flash.events.EventDispatcher |
use method requestURLList() then listen the Event ResultEvent.RESULT on URLListFactory Class instance
Dispatch ResultEvent.RESULT when succss. data {urlListArray:Array, timeout:int, test:{severList:Array, timeout:int}}
Dispatch FaultEvent.FAULT when fail.
| Property | Defined By | ||
|---|---|---|---|
| TIMEOUT : int = 30 [static] | URLListFactory | ||
| URLLIST_SERVICE_URL : String = http://api.aispeech.com/majordomo/v2.0/serverlist [static] | URLListFactory | ||
| Method | Defined By | ||
|---|---|---|---|
| URLListFactory | |||
dispose():void
reset URLListFactory , and free no-used private classes or variables
| URLListFactory | ||
requestURLList(url:String):void
send the request to server to get URLList
| URLListFactory | ||
| TIMEOUT | property |
public static var TIMEOUT:int = 30| URLLIST_SERVICE_URL | property |
public static var URLLIST_SERVICE_URL:String = http://api.aispeech.com/majordomo/v2.0/serverlist| URLListFactory | () | Constructor |
public function URLListFactory()| dispose | () | method |
public function dispose():voidreset URLListFactory , and free no-used private classes or variables
| requestURLList | () | method |
public function requestURLList(url:String):voidsend the request to server to get URLList
Parameters
url:String — URLListService URL
|