Reverted change that made WSF_URI_HANDLER and WSF_URI_TEMPLATE_HANDLER inheriting from WSF_EXECUTE_HANDLER, as it breaks existing project using EiffelWeb.

This commit is contained in:
Jocelyn Fiat
2017-11-07 23:05:22 +01:00
parent f91a676f41
commit 6ca3cca88b
8 changed files with 76 additions and 8 deletions

View File

@@ -50,6 +50,7 @@ feature -- Status report
feature -- Execution feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE) execute (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Execute `req' responding in `res'.
local local
fut: FILE_UTILITIES fut: FILE_UTILITIES
l_exec_path: PATH l_exec_path: PATH

View File

@@ -32,7 +32,7 @@ feature -- Execution
end end
note note
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others" copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
Eiffel Software Eiffel Software

View File

@@ -8,10 +8,20 @@ deferred class
WSF_URI_RESPONSE_HANDLER WSF_URI_RESPONSE_HANDLER
inherit inherit
WSF_EXECUTE_HANDLER WSF_HANDLER
WSF_URI_HANDLER WSF_URI_HANDLER
feature -- Response
response (req: WSF_REQUEST): WSF_RESPONSE_MESSAGE
require
is_valid_context: is_valid_context (req)
deferred
ensure
Result_attached: Result /= Void
end
note note
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others" copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"

View File

@@ -8,10 +8,20 @@ deferred class
WSF_URI_HANDLER WSF_URI_HANDLER
inherit inherit
WSF_EXECUTE_HANDLER WSF_HANDLER
WSF_ROUTER_MAPPING_FACTORY WSF_ROUTER_MAPPING_FACTORY
feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Execute `req' responding in `res'.
require
req_attached: req /= Void
res_attached: res /= Void
deferred
end
feature {WSF_ROUTER} -- Mapping feature {WSF_ROUTER} -- Mapping
new_mapping (a_uri: READABLE_STRING_8): WSF_ROUTER_MAPPING new_mapping (a_uri: READABLE_STRING_8): WSF_ROUTER_MAPPING

View File

@@ -8,10 +8,20 @@ deferred class
WSF_URI_TEMPLATE_RESPONSE_HANDLER WSF_URI_TEMPLATE_RESPONSE_HANDLER
inherit inherit
WSF_EXECUTE_RESPONSE_HANDLER WSF_RESPONSE_HANDLER
WSF_URI_TEMPLATE_HANDLER WSF_URI_TEMPLATE_HANDLER
feature -- Response
response (req: WSF_REQUEST): WSF_RESPONSE_MESSAGE
require
is_valid_context: is_valid_context (req)
deferred
ensure
Result_attached: Result /= Void
end
note note
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others" copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"

View File

@@ -8,10 +8,20 @@ deferred class
WSF_URI_TEMPLATE_HANDLER WSF_URI_TEMPLATE_HANDLER
inherit inherit
WSF_EXECUTE_HANDLER WSF_HANDLER
WSF_ROUTER_MAPPING_FACTORY WSF_ROUTER_MAPPING_FACTORY
feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Execute `req' responding in `res'.
require
req_attached: req /= Void
res_attached: res /= Void
deferred
end
feature {WSF_ROUTER} -- Mapping feature {WSF_ROUTER} -- Mapping
new_mapping (a_tpl: READABLE_STRING_8): WSF_ROUTER_MAPPING new_mapping (a_tpl: READABLE_STRING_8): WSF_ROUTER_MAPPING

View File

@@ -0,0 +1,24 @@
note
description: "[
Represents the ancestor of all the WSF_ROUTER handler based on message response.
]"
date: "$Date$"
revision: "$Revision$"
class
WSF_RESPONSE_HANDLER
inherit
WSF_HANDLER
note
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, 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

View File

@@ -8,7 +8,7 @@ deferred class
WSF_ROUTING_HANDLER WSF_ROUTING_HANDLER
inherit inherit
WSF_EXECUTE_HANDLER WSF_HANDLER
feature {NONE} -- Initialization feature {NONE} -- Initialization
@@ -48,7 +48,10 @@ feature -- Element change
feature -- Execution feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE) execute (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Execute request handler -- Execute `req' responding in `res'.
require
req_attached: req /= Void
res_attached: res /= Void
local local
sess: WSF_ROUTER_SESSION sess: WSF_ROUTER_SESSION
do do
@@ -60,7 +63,7 @@ feature -- Execution
end end
note note
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others" copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
Eiffel Software Eiffel Software