| Package | com.developmentarc.framework.utils |
| Class | public class BrowserLocationUtil |
https://google.com:8080/path/is/here/?param1=value1#page2
\___/ \________/ \__/\____________/ \___________/ \__/
| | | | | |
| server name port path query fragment
protocal
| Property | Defined by | ||
|---|---|---|---|
| fragment : String [static][read-only]
Method returns the fragment portion of the url which is all data after the "#".
| BrowserLocationUtil | ||
| parameters : Object [static][read-only]
Method breaks down the query string of the current url
passing back a generic object with each key/value pair.
| BrowserLocationUtil | ||
| path : String [static][read-only]
Method returns the path portion of the current url
br/>
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns /path/is/here/
| BrowserLocationUtil | ||
| port : uint [static][read-only]
Method returns the port number specificed in the current url.
| BrowserLocationUtil | ||
| protocal : String [static][read-only]
Method encapsulates the URLUtil's getProtocal method returning the protocal of the current url.
| BrowserLocationUtil | ||
| query : String [static][read-only]
Method return the current query string of the url, which is the protion of the url
after the servername and/or port and before the framgment of the url.
| BrowserLocationUtil | ||
| serverName : String [static][read-only]
Method returns the server name in the current url of the application.
| BrowserLocationUtil | ||
| url : String [static][read-only]
Method returns the current full url in the application.
| BrowserLocationUtil | ||
| fragment | property |
fragment:String [read-only]
Method returns the fragment portion of the url which is all data after the "#".
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns page2
public static function get fragment():String
| parameters | property |
parameters:Object [read-only]
Method breaks down the query string of the current url
passing back a generic object with each key/value pair.
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns {param1:'value1'}
Note: This method utilizes the mx.utils.URLUtil.stringToObject() method, which
overrides parameters of the same name with the last value found in the string.
Example: Example: http://google.com:8080/path/is/here/?param1=value1¶m1=value2#page2 returns {param1:'value2'}
public static function get parameters():Object
| path | property |
path:String [read-only]Method returns the path portion of the current url br/> Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns /path/is/here/
Implementation public static function get path():String
| port | property |
port:uint [read-only]
Method returns the port number specificed in the current url. If no port is provided 0 will be returned.
This method utilizes the Flex URLUtil.getPort() method. See that method for more details.
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns 8080
public static function get port():uint
| protocal | property |
protocal:String [read-only]
Method encapsulates the URLUtil's getProtocal method returning the protocal of the current url.
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns http
public static function get protocal():String
| query | property |
query:String [read-only]
Method return the current query string of the url, which is the protion of the url
after the servername and/or port and before the framgment of the url.
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns param1=value1
public static function get query():String
| serverName | property |
serverName:String [read-only]
Method returns the server name in the current url of the application.
Example: http://google.com:8080/path/is/here/?param1=value1#page2 returns google.com
public static function get serverName():String
| url | property |
url:String [read-only]Method returns the current full url in the application. The functionality of this method relies on ExternalInterface to call 'window.location.href.toString' to gather the current url.
Implementation public static function get url():String