Class TUri
TUri class
TUri represents a URI. Given a URI http://joe:whatever@example.com:8080/path/to/script.php?param=value#anchor it will be decomposed as follows, - scheme: http
- host: example.com
- port: 8080
- user: joe
- password: whatever
- path: /path/to/script.php
- query: param=value
- fragment: anchor
Constructor Summary |
public |
Constructor.
|
Method Summary |
string
|
|
string
|
|
string
|
|
string
|
|
integer
|
|
string
|
|
string
|
|
string
|
|
string
|
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Constructor Details |
__construct
Constructor.
Decomposes the specified URI into parts.
Throws:
TInvalidDataValueException if URI is of bad format
|
Method Details |
getFragment
public string getFragment |
() |
Output |
string
| fragment of the URI |
Exception |
|
getHost
Output |
string
| hostname of the URI |
Exception |
|
getPassword
public string getPassword |
() |
Output |
string
| password of the URI |
Exception |
|
getPath
Output |
string
| path of the URI |
Exception |
|
getPort
public integer getPort |
() |
Output |
integer
| port number of the URI |
Exception |
|
getQuery
public string getQuery |
() |
Output |
string
| query string of the URI |
Exception |
|
getScheme
public string getScheme |
() |
Output |
string
| scheme of the URI, such as 'http', 'https', 'ftp', etc. |
Exception |
|
getUri
Output |
string
| URI |
Exception |
|
getUser
Output |
string
| username of the URI |
Exception |
|
|