56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
note
|
|
description: "Summary description for {URI_TEMPLATE_MATCH_RESULT}."
|
|
author: ""
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
URI_TEMPLATE_MATCH_RESULT
|
|
|
|
create
|
|
make,
|
|
make_empty
|
|
|
|
feature {NONE} -- Initialization
|
|
|
|
make (p: like path_variables; q: like query_variables)
|
|
do
|
|
path_variables := p
|
|
query_variables := q
|
|
end
|
|
|
|
make_empty
|
|
do
|
|
make (create {like path_variables}.make (0), create {like query_variables}.make (0))
|
|
end
|
|
|
|
feature -- Access
|
|
|
|
variable (n: STRING): detachable STRING
|
|
-- Value related to variable name `n'
|
|
do
|
|
Result := query_variables.item (n)
|
|
if Result = Void then
|
|
Result := path_variables.item (n)
|
|
end
|
|
end
|
|
|
|
path_variables: HASH_TABLE [STRING, STRING]
|
|
-- Variables being part of the path segments
|
|
|
|
query_variables: HASH_TABLE [STRING, STRING]
|
|
-- Variables being part of the query segments (i.e: after the ? )
|
|
|
|
;note
|
|
copyright: "2011-2011, Eiffel Software and others"
|
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
|
source: "[
|
|
Eiffel Software
|
|
5949 Hollister Ave., Goleta, CA 93117 USA
|
|
Telephone 805-685-1006, Fax 805-685-6869
|
|
Website http://www.eiffel.com
|
|
Customer support http://support.eiffel.com
|
|
]"
|
|
end
|
|
|