Removed WSF_AGENT_HANDLER since it was an artificial notion,

as we have no common ancestor for WSF_HANDLER having
   execute (req: WSF_REQUEST; res: WSF_RESPONSE)
This commit is contained in:
Jocelyn Fiat
2013-03-21 15:50:10 +01:00
parent de8d36d0db
commit 813caa15e0
3 changed files with 36 additions and 51 deletions

View File

@@ -10,14 +10,27 @@ class
inherit
WSF_URI_HANDLER
WSF_AGENT_HANDLER
rename
set_action as make
end
create
make
feature {NONE} -- Initialization
make (a_action: like action)
do
action := a_action
end
feature -- Access
action: PROCEDURE [ANY, TUPLE [request: WSF_REQUEST; response: WSF_RESPONSE]]
feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
action.call ([req, res])
end
note
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"

View File

@@ -10,14 +10,27 @@ class
inherit
WSF_URI_TEMPLATE_HANDLER
WSF_AGENT_HANDLER
rename
set_action as make
end
create
make
feature {NONE} -- Initialization
make (a_action: like action)
do
action := a_action
end
feature -- Access
action: PROCEDURE [ANY, TUPLE [request: WSF_REQUEST; response: WSF_RESPONSE]]
feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
action.call ([req, res])
end
note
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"