indexing
description: "File URL"
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
class interface
FILE_URL
create
make (a: STRING_8)
`a'
URL
require URL
address_specified: a /= Void and then not a.is_empty
ensure URL
address_set: address = a
port_set: port > 0
no_proxy_set: proxy_information = Void
feature
generating_type: STRING_8
ANY
generator: STRING_8
ANY
hash_code: INTEGER_32 is 0
location: STRING_8
name: FILE_NAME
port: INTEGER_32
URL
proxy_host: STRING_8
URL
require URL
proxy_supported: is_proxy_supported
has_proxy: is_proxy_used
ensure URL
result_not_empty: Result /= Void and then not Result.is_empty
proxy_port: INTEGER_32
URL
require URL
proxy_supported: is_proxy_supported
has_proxy: is_proxy_used
ensure URL
result_non_negative: Result >= 0
service: STRING_8 is "file"
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
default_port: INTEGER_32 is 0
has_username: BOOLEAN is False
is_correct: BOOLEAN
is_hashable: BOOLEAN is False
is_password_accepted: BOOLEAN is False
is_proxy_supported: BOOLEAN is False
is_proxy_used: BOOLEAN
URL
proxy_host_ok (host: STRING_8): BOOLEAN
require URL
proxy_supported: is_proxy_supported
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
reset_proxy
URL
require URL
proxy_supported: is_proxy_supported
ensure URL
no_proxy_set: not is_proxy_used
port_reset: proxy_port = 0
set_password (pw: STRING_8)
require URL
password_accepted: is_password_accepted
non_empty_password: pw /= Void and then not pw.is_empty
set_port (port_no: INTEGER_32)
`port_no'
URL
require URL
port_non_negative: port_no >= 0
ensure URL
port_set: port = port_no
set_proxy (host: STRING_8; port_no: INTEGER_32)
`host'`port_no'
URL
require URL
proxy_supported: is_proxy_supported
non_empty_host: host /= Void and then not host.is_empty
host_valid: proxy_host_ok (host)
non_negative_port: port_no >= 0
ensure URL
host_set: proxy_host = host
port_set: proxy_port = port_no
set_proxy_information (pi: PROXY_INFORMATION)
`pi'
URL
require URL
proxy_supported: is_proxy_supported
ensure URL
proxy_information_set: proxy_information = pi
set_username (un: STRING_8)
require URL
username_ok: has_username
non_empty_username: un /= Void and then not un.is_empty
feature
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
URL
proxy_used_definition: is_proxy_used = (proxy_information /= Void)
proxy_usage_constraint: is_proxy_used implies is_proxy_supported
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end FILE_URL