Changed ITERATION_CURSOR [WGI_VALUE] into ITERABLE [WGI_VALUE] for WGI_REQUEST.*parameters* and similar

Applied recent changes on EWF_HEADER
This commit is contained in:
Jocelyn Fiat
2011-09-26 17:10:05 +02:00
parent d397d4e35d
commit 738eb7555f
5 changed files with 39 additions and 61 deletions

View File

@@ -174,9 +174,9 @@ feature {NONE} -- Access: CGI meta parameters
feature -- Access: CGI meta parameters
meta_variables: ITERATION_CURSOR [WGI_VALUE]
meta_variables: ITERABLE [WGI_VALUE]
do
Result := meta_variables_table.new_cursor
Result := meta_variables_table
end
meta_variable (a_name: READABLE_STRING_GENERAL): detachable WGI_VALUE
@@ -429,9 +429,9 @@ feature {NONE} -- Query parameters
feature -- Query parameters
query_parameters: ITERATION_CURSOR [WGI_VALUE]
query_parameters: ITERABLE [WGI_VALUE]
do
Result := query_parameters_table.new_cursor
Result := query_parameters_table
end
query_parameter (a_name: READABLE_STRING_GENERAL): detachable WGI_VALUE
@@ -538,9 +538,9 @@ feature {NONE} -- Form fields and related
feature -- Form fields and related
form_data_parameters: ITERATION_CURSOR [WGI_VALUE]
form_data_parameters: ITERABLE [WGI_VALUE]
do
Result := form_data_parameters_table.new_cursor
Result := form_data_parameters_table
end
form_data_parameter (a_name: READABLE_STRING_GENERAL): detachable WGI_VALUE
@@ -606,9 +606,9 @@ feature {NONE} -- Cookies
feature -- Cookies
cookies: ITERATION_CURSOR [WGI_VALUE]
cookies: ITERABLE [WGI_VALUE]
do
Result := cookies_table.new_cursor
Result := cookies_table
end
cookie (a_name: READABLE_STRING_GENERAL): detachable WGI_VALUE
@@ -623,57 +623,40 @@ feature {NONE} -- Access: global variable
-- Table containing all the various variables
-- Warning: this is computed each time, if you change the content of other containers
-- this won't update this Result's content, unless you query it again
local
vars: ITERATION_CURSOR [WGI_VALUE]
do
create Result.make (100)
vars := meta_variables
from
-- vars.start
until
vars.after
across
meta_variables as vars
loop
Result.force (vars.item, vars.item.name)
vars.forth
end
vars := query_parameters
from
-- vars.start
until
vars.after
across
query_parameters as vars
loop
Result.force (vars.item, vars.item.name)
vars.forth
end
vars := form_data_parameters
from
-- vars.start
until
vars.after
across
form_data_parameters as vars
loop
Result.force (vars.item, vars.item.name)
vars.forth
end
vars := cookies
from
-- vars.start
until
vars.after
across
cookies as vars
loop
Result.force (vars.item, vars.item.name)
vars.forth
end
end
feature -- Access: global variable
items: ITERATION_CURSOR [WGI_VALUE]
items: ITERABLE [WGI_VALUE]
do
Result := items_table.new_cursor
Result := items_table
end
item (a_name: READABLE_STRING_GENERAL): detachable WGI_VALUE