| Package | com.yahoo.social.utils |
| Class | public class YahooURL |
var url:YahooURL = new YahooURL("http", HOST_NAME);
url.rawResource("v1/user");
url.resource(guid);
var req:URLRequest = new URLRequest(url.toString());
| Property | Defined by | ||
|---|---|---|---|
| hostname : String
The hostname.
| YahooURL | ||
| path : Array [read-only]
Returns the relative path represented as an array.
| YahooURL | ||
| port : int
The port.
| YahooURL | ||
| protocol : String
The request protocol.
| YahooURL | ||
| queryParameters : Object
Returns an object containing the query parameters.
| YahooURL | ||
| validProtocols : Array [read-only]
The valid protocols for use with this object.
| YahooURL | ||
| Method | Defined by | ||
|---|---|---|---|
|
YahooURL(protocol:String, hostname:String, port:int = 80)
Creates a new YahooURL object.
| YahooURL | ||
|
filter(filtername:String, arguments:*):void
Applies a filter to the URL path.
| YahooURL | ||
|
rawResource(value:String):void
Applies a raw resource value to the URL path.
| YahooURL | ||
|
resetPath():void
Resets the relative path.
| YahooURL | ||
|
resource(value:String):void
Applies a resource value (url-encoded) to the URL path.
| YahooURL | ||
|
toPathString():String
Returns the relative URL as a representation of
path, delimited by slashes. | YahooURL | ||
|
toString():String
Returns the full URL.
| YahooURL | ||
| hostname | property |
public var hostname:StringThe hostname.
| path | property |
path:Array [read-only]Returns the relative path represented as an array.
Implementation public function get path():Array
| port | property |
public var port:intThe port. (Default=80)
| protocol | property |
protocol:String [read-write]The request protocol.
Implementation public function get protocol():String
public function set protocol(value:String):void
| queryParameters | property |
queryParameters:Object [read-write]Returns an object containing the query parameters.
Implementation public function get queryParameters():Object
public function set queryParameters(value:Object):void
| validProtocols | property |
validProtocols:Array [read-only]The valid protocols for use with this object.
Implementation public function get validProtocols():Array
| YahooURL | () | constructor |
public function YahooURL(protocol:String, hostname:String, port:int = 80)Creates a new YahooURL object.
Parametersprotocol:String — The request protocol.
|
|
hostname:String — The server hostname.
|
|
port:int (default = 80) — The server port.
|
| filter | () | method |
public function filter(filtername:String, arguments:*):voidApplies a filter to the URL path.
Parametersfiltername:String |
|
arguments:* |
| rawResource | () | method |
public function rawResource(value:String):voidApplies a raw resource value to the URL path.
Parametersvalue:String |
| resetPath | () | method |
public function resetPath():voidResets the relative path.
| resource | () | method |
public function resource(value:String):voidApplies a resource value (url-encoded) to the URL path.
Parametersvalue:String |
| toPathString | () | method |
public function toPathString():String
Returns the relative URL as a representation of path, delimited by slashes.
String |
| toString | () | method |
public function toString():StringReturns the full URL.
ReturnsString |