getXyz
/setXyz
methods return the decoded part
-- sogoog.Uri.parse('/foo%20bar').getPath()
will return the
decoded path, /foo bar
.
The constructor accepts an optional unparsed, raw URI string. The parser
is relaxed, so special characters that aren't escaped but don't cause
ambiguities will not cause parse failures.
All setters return this
and so may be chained, a la
goog.Uri.parse('/foo').setFragment('part').toString()
.
![]()
Creates a new goog.Uri object from unencoded parts.
Arguments:
Returns: !goog.Uri
The new URI object.
|
code » | |||||||||
![]()
Creates a new query data instance from parallel arrays of parameter names
and values. Allows for duplicate parameter names. Throws an error if the
lengths of the arrays differ.
Arguments:
Returns: !goog.Uri.QueryData
The populated query data instance.
|
code » | |||||||||
Creates a new query data instance from a map of names and values.
Arguments:
Returns: !goog.Uri.QueryData
The populated query data instance.
|
code » | |||||||||
Decodes a value or returns the empty string if it isn't defined or empty.
|
code » | |||||||||
Converts a character in [\01-\177] to its unicode character equivalent.
|
code » | |||||||||
If unescapedPart is non null, then escapes any characters in it that aren't
valid characters in a url and also escapes any special characters that
appear in extra.
|
code » | |||||||||
Checks whether two URIs have the same domain.
|
code » | |||||||||
Creates a uri from the string form. Basically an alias of new goog.Uri().
If a Uri object is passed to parse then it will return a clone of the object.
Arguments:
Returns: !goog.Uri
The new URI object.
|
code » | |||||||||
Removes dot segments in given path component, as described in
RFC 3986, section 5.2.4.
|
code » | |||||||||
Resolves a relative Uri against a base Uri, accepting both strings and
Uri objects.
Arguments:
Returns: !goog.Uri
Resolved uri.
|
code » |