Javascript URI

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
== General ==
 
== General ==
  
URI (Uniform Resource Identifier encapsulation) object.<br>
+
URI (Uniform Resource Identifier) object.<br>
  
  
Line 39: Line 39:
  
 
Canonical representation (user present or not):<br/>
 
Canonical representation (user present or not):<br/>
  [proto:][user@[host[:port]]]:<br/>
+
  [proto:][user@[host[:port]]]
  [proto:][host[:port]]]:<br/>
+
  [proto:][host[:port]]]

Latest revision as of 15:26, 6 September 2024

[edit] General

URI (Uniform Resource Identifier) object.


Supported format:

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


[edit] Constructor

  • new Engine.URI(str)

Parameters:
str String with URI data


[edit] 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