包 | 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, 11:04 AM Z