added REQUEST.execution_variables ... to provide a solution to store data during request execution
could be used for SESSION, or any "shared" data inside the same Request
This commit is contained in:
@@ -38,6 +38,11 @@ feature -- Visitor
|
||||
process_iterable_of_value (v)
|
||||
end
|
||||
|
||||
process_any (v: WSF_ANY)
|
||||
do
|
||||
end
|
||||
|
||||
|
||||
;note
|
||||
copyright: "2011-2011, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
|
||||
@@ -25,6 +25,10 @@ feature -- Visitor
|
||||
do
|
||||
end
|
||||
|
||||
process_any (v: WSF_ANY)
|
||||
do
|
||||
end
|
||||
|
||||
;note
|
||||
copyright: "2011-2011, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
|
||||
@@ -35,6 +35,12 @@ feature -- Visitor
|
||||
deferred
|
||||
end
|
||||
|
||||
process_any (v: WSF_ANY)
|
||||
require
|
||||
v_attached: v /= Void
|
||||
deferred
|
||||
end
|
||||
|
||||
;note
|
||||
copyright: "2011-2011, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
note
|
||||
description: "Summary description for {WSF_ANY}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_ANY
|
||||
|
||||
inherit
|
||||
WSF_VALUE
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (a_name: READABLE_STRING_8; a_value: like item)
|
||||
do
|
||||
name := url_decoded_string (a_name)
|
||||
item := a_value
|
||||
end
|
||||
|
||||
feature -- Access
|
||||
|
||||
name: READABLE_STRING_32
|
||||
|
||||
item: detachable ANY
|
||||
|
||||
feature -- Status report
|
||||
|
||||
is_string: BOOLEAN = False
|
||||
-- Is Current as a WSF_STRING representation?
|
||||
|
||||
feature -- Query
|
||||
|
||||
string_representation: STRING_32
|
||||
-- String representation of Current
|
||||
-- if possible
|
||||
do
|
||||
if attached item as i then
|
||||
Result := i.generating_type
|
||||
else
|
||||
Result := "Void"
|
||||
end
|
||||
end
|
||||
|
||||
feature -- Visitor
|
||||
|
||||
process (vis: WSF_VALUE_VISITOR)
|
||||
do
|
||||
vis.process_any (Current)
|
||||
end
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user