Javascript URI

From Yate Documentation
Revision as of 16:26, 6 September 2024 by Marian (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

General

URI (Uniform Resource Identifier) object.


Supported format:

[description] [proto:][//][user@]host[:port][/path][;params][?params][&params]


Constructor

  • new Engine.URI(str)

Parameters:
str String with URI data


Methods

  • getDescription()

Return: String with URI description part

  • getProtocol()

Return: String with URI protocol part

  • getUser()

Return: String with URI user part

  • getHost()

Return: String with URI host part

  • getPort()

Return: Numeric with URI port part. 0 if missing

  • getExtra()

Return: String with URI extra (parameters) part

  • getCanonical()

Return: String with URI canonical representation

Canonical representation (user present or not):

[proto:][user@[host[:port]]]
[proto:][host[:port]]]
Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers