GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
NETWORK_RESOURCE_LOCATOR
+
Point of view
URL_VALIDITY
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
RECYCLING_POOL
URL_VALIDITY
URL
TCP_PROTOCOL
All features
class NETWORK_RESOURCE_LOCATOR
Summary
top
Provides meaning to a network
URL
(Universal Resource Locator) strings, by the use of accessors to different parts of it:
protocol
,
username
,
password
,
host
,
port
,
path
,
arguments
and
anchor
are different parts of the
URL
:
protocol://username:password@host:port/path?arguments#anchor
See also
RFC 1738
Direct parents
Inherit list:
RESOURCE_LOCATOR
Insert list:
NETWORK_RESOURCE_VALIDITY
Class invariant
top
has_host:
not
host
.is_empty
meaningful_port:
port
>= 0
has_path:
not
path
.is_empty
Overview
top
Creation features
Exported features
uri
:
STRING
valid_uri
(a_uri:
STRING
):
BOOLEAN
username
:
STRING
The optional user name.
password
:
STRING
The optional password.
host
:
STRING
The host name.
port
:
INTEGER_32
The port; 0 means use the standard port of the protocol.
path
:
STRING
The path.
arguments
:
STRING
The optional arguments.
anchor
:
STRING
The optional anchor.
is_equal
(other: NETWORK_RESOURCE_LOCATOR):
BOOLEAN
Is
other
attached to an object considered equal to current object?
uri
:
STRING
effective function
top
valid_uri
(a_uri:
STRING
):
BOOLEAN
effective function
top
username
:
STRING
writable attribute
top
The optional user name.
password
:
STRING
writable attribute
top
The optional password.
host
:
STRING
writable attribute
top
The host name.
port
:
INTEGER_32
writable attribute
top
The port; 0 means use the standard port of the protocol.
path
:
STRING
writable attribute
top
The path.
arguments
:
STRING
writable attribute
top
The optional arguments.
anchor
:
STRING
writable attribute
top
The optional anchor.
is_equal
(other: NETWORK_RESOURCE_LOCATOR):
BOOLEAN
effective function
top
Is
other
attached to an object considered equal to current object?
require
other /= Void
ensure
commutative:
generating_type = other.generating_type implies Result = other.is_equal(Current)