套件 | com.adobe.dct.util |
類別 | public class HTTPUtil |
繼承 | HTTPUtil Object |
語言版本: | ActionScript 3.0 |
產品版本: | Data Dictionary Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
公用方法
方法 | 定義自 | ||
---|---|---|---|
HTTPUtil()
Constructor. | HTTPUtil | ||
[靜態]
Retrieves the context that follows the base of the URL.
For example, http://www.adobe.com/snc?x=1&y=2 returns /snc.
| HTTPUtil | ||
[靜態]
Retrieves the current host name.
For example, http://www.adobe.com/?x=1&y=2 returns www.adobe.com.
| HTTPUtil | ||
[靜態]
Retrieves a URL parameter value by name and returns it as a string. | HTTPUtil | ||
[靜態]
Retrieves the current port for the URL. | HTTPUtil | ||
[靜態]
Retrieves the current protocol, such as http: or https:. | HTTPUtil | ||
[靜態]
Retrieves the current URL of the application used to play the SWF file. | HTTPUtil | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
建構函式詳細資料
HTTPUtil | () | 建構函式 |
public function HTTPUtil()
語言版本: | ActionScript 3.0 |
產品版本: | Data Dictionary Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Constructor.
方法詳細資訊
getContext | () | 方法 |
public static function getContext():String
語言版本: | ActionScript 3.0 |
產品版本: | Data Dictionary Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Retrieves the context that follows the base of the URL.
For example, http://www.adobe.com/snc?x=1&y=2
returns /snc
.
String — The context that follows the base of the URL.
|
getHostName | () | 方法 |
getParameterValue | () | 方法 |
public static function getParameterValue(key:String):String
語言版本: | ActionScript 3.0 |
產品版本: | Data Dictionary Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Retrieves a URL parameter value by name and returns it as a string. This function works without passing a FlashVars property into the SWF.
For example, even if the URL is domain.com?MyFlexPage.html?b=5
, it still returns 5
when 'b'
is passed.
This function uses JavaScript to find the URL parameters. Please note, however, that it only works for a GET request. It does not work for a POST request.
參數
key:String — the url parameter key
|
String — The URL parameter value by name, as a string.
|
getPort | () | 方法 |
getProtocol | () | 方法 |
getUrl | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z