TROUri
Overview
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI.
Location
- Unit: uROUri.pas
constructor Create
Initializes a new instance of the Uri class with the specified URI.
constructor Create(const aUri: string)
Parameters:
- aUri: the specified URI.
Assign
Copies data from a given source.
procedure Assign(Source: TROUri)
Parameters:
- Source: Instance whose properties will be copied
Clear
Clears all properties
procedure Clear
Host
The host of this URI.
property Host: string read write
IsEqualTo
Compares incoming URI with this one.
function IsEqualTo(const aUri: TROUri): Boolean
Parameters:
- aUri: incoming URI
OnChanged
Fires when this URI was changed.
property OnChanged: TNotifyEvent read write
ParsePathElements
function ParsePathElements: TStringArray
Path
The path of this URI.
property Path: string read write
Port
The port number of this URI.
property Port: Integer read write
Protocol
The protocol of this URI.
property Protocol: string read write
URI
The URI.
property URI: string read write
Validate
Validates this URI.
procedure Validate
Host
The host of this URI.
property Host: string read write
Path
The path of this URI.
property Path: string read write
Port
The port number of this URI.
property Port: Integer read write
Protocol
The protocol of this URI.
property Protocol: string read write
URI
The URI.
property URI: string read write
constructor Create
Initializes a new instance of the Uri class with the specified URI.
constructor Create(const aUri: string)
Parameters:
- aUri: the specified URI.
Assign
Copies data from a given source.
procedure Assign(Source: TROUri)
Parameters:
- Source: Instance whose properties will be copied
Clear
Clears all properties
procedure Clear
IsEqualTo
Compares incoming URI with this one.
function IsEqualTo(const aUri: TROUri): Boolean
Parameters:
- aUri: incoming URI
ParsePathElements
function ParsePathElements: TStringArray
Validate
Validates this URI.
procedure Validate
OnChanged
Fires when this URI was changed.
property OnChanged: TNotifyEvent read write