URI Class Reference
Encapsulation for an
URI.
More...
#include <yateclass.h>
List of all members.
Detailed Description
Encapsulation for an
URI.
Uniform Resource Identifier encapsulation and parser. For efficiency reason the parsing is delayed as long as possible
Constructor & Destructor Documentation
Copy constructor
- Parameters:
-
Constructor from a String that gets parsed later
- Parameters:
-
URI |
( |
const char * |
uri |
) |
[explicit] |
Constructor from a C string that gets parsed later
- Parameters:
-
URI |
( |
const char * |
proto, |
|
|
const char * |
user, |
|
|
const char * |
host, |
|
|
int |
port = 0 , |
|
|
const char * |
desc = 0 | |
|
) |
| | |
Constructor from URI components
- Parameters:
-
| proto | Protocol - something like "http", "sip", etc. |
| user | User component of the URI |
| host | Hostname component of the URI |
| port | Port part of the URI (optional) |
| desc | Description part in front of the URI (optional) |
Member Function Documentation
Calling this method ensures the string URI is parsed into components
URI& operator= |
( |
const URI & |
value |
) |
[inline] |
URI& operator= |
( |
const String & |
value |
) |
[inline] |
URI& operator= |
( |
const char * |
value |
) |
[inline] |
const String& getDescription |
( |
|
) |
const [inline] |
Access method to the description part of the URI
- Returns:
- Description part of the URI
const String& getProtocol |
( |
|
) |
const [inline] |
Access method to the protocol part of the URI
- Returns:
- Protocol part of the URI
const String& getUser |
( |
|
) |
const [inline] |
Access method to the user part of the URI
- Returns:
- User component of the URI
const String& getHost |
( |
|
) |
const [inline] |
Access method to the host part of the URI
- Returns:
- Hostname part of the URI
int getPort |
( |
|
) |
const [inline] |
Access method to the port part of the URI
- Returns:
- Port of the URI, zero if not set
const String& getExtra |
( |
|
) |
const [inline] |
Access method to the additional text part of the URI
- Returns:
- Additional text of the URI including the separator
virtual void changed |
( |
|
) |
[protected, virtual] |
Notification method called whenever the string URI has changed. The default behaviour is to invalidate the parsed flag and cal the method inherited from String.
Reimplemented from String.
The documentation for this class was generated from the following file: