Package | com.adobe.dct.util |
Class | public class HTTPUtil |
Inheritance | HTTPUtil Object |
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Method | Defined By | ||
---|---|---|---|
HTTPUtil()
Constructor. | HTTPUtil | ||
[static]
Retrieves the context that follows the base of the URL.
For example, http://www.adobe.com/snc?x=1&y=2 returns /snc.
| HTTPUtil | ||
[static]
Retrieves the current host name.
For example, http://www.adobe.com/?x=1&y=2 returns www.adobe.com.
| HTTPUtil | ||
[static]
Retrieves a URL parameter value by name and returns it as a string. | HTTPUtil | ||
[static]
Retrieves the current port for the URL. | HTTPUtil | ||
[static]
Retrieves the current protocol, such as http: or https:. | HTTPUtil | ||
[static]
Retrieves the current URL of the application used to play the SWF file. | HTTPUtil | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
HTTPUtil | () | Constructor |
public function HTTPUtil()
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Constructor.
getContext | () | method |
public static function getContext():String
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
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 | () | method |
public static function getHostName():String
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Retrieves the current host name.
For example, http://www.adobe.com/?x=1&y=2
returns www.adobe.com.
String — The current host name.
|
getParameterValue | () | method |
public static function getParameterValue(key:String):String
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
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.
Parameters
key:String — The name of the URL parameter.
|
String — The value of URL parameter, as a string.
|
getPort | () | method |
getProtocol | () | method |
public static function getProtocol():String
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Retrieves the current protocol, such as http:
or https:
.
String — The current protocol, such as http: or https:.
|
getUrl | () | method |
public static function getUrl():String
Language Version: | ActionScript 3.0 |
Product Version: | Data Dictionary Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Retrieves the current URL of the application used to play the SWF file. For example, Adobe Flash Player.
ReturnsString — The current URL of the SWF player.
|
Wed Nov 21 2018, 06:34 AM -08:00