new URLBuilder(input)
F:/Projects/jMod/main/bin/jMod.full.js, line 706
URL building class for adding a variable number or arguments to a given host and path
Name | Type | Description |
---|---|---|
input |
string | optional String to extract hostname from |
Members
-
argsArray.<Object.<string, string>>
-
Arguments List - [{name: ArgumentName, value: ArgumentValue}]
-
hostnamestring
-
URL Hostname
-
pathnamestring
-
URL Path
-
protocolstring
-
Protocol value
Methods
-
addArg(key, value){URLBuilder}
F:/Projects/jMod/main/bin/jMod.full.js, line 774 -
Add an argument to the URL
Name Type Description key
string Argument name value
string Argument value Returns:
Type Description URLBuilder this -
addArgs(args){URLBuilder}
F:/Projects/jMod/main/bin/jMod.full.js, line 788 -
Add an array of arguments
Name Type Description args
Array.<string, string> Arguments array Returns:
Type Description URLBuilder this -
buildArgs(){string}
F:/Projects/jMod/main/bin/jMod.full.js, line 813 -
Build the full arguments for the URL
Returns:
Type Description string Arguments string -
setHostname(str){URLBuilder}
F:/Projects/jMod/main/bin/jMod.full.js, line 738 -
Parse a given URL for a hostname and/or protocol
Name Type Description str
string Input to parse Returns:
Type Description URLBuilder this -
setPath(str){URLBuilder}
F:/Projects/jMod/main/bin/jMod.full.js, line 762 -
Name Type Description str
string fooooo Returns:
Type Description URLBuilder this -
toString(){string}
F:/Projects/jMod/main/bin/jMod.full.js, line 829 -
Build the full URL string
Returns:
Type Description string URL String