From 830adbe10cefddde0687760ad488a04500e7fc16 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Tue, 7 Nov 2017 23:52:42 +0100 Subject: [PATCH] Fixed response handlers compilation. --- .../support/uri/helpers/wsf_uri_response_agent_handler.e | 4 +++- .../router/support/uri/helpers/wsf_uri_response_handler.e | 8 ++++++++ .../helpers/wsf_uri_template_response_agent_handler.e | 3 +++ .../helpers/wsf_uri_template_response_handler.e | 8 ++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/library/server/wsf/router/support/uri/helpers/wsf_uri_response_agent_handler.e b/library/server/wsf/router/support/uri/helpers/wsf_uri_response_agent_handler.e index 7595d696..1793538b 100644 --- a/library/server/wsf/router/support/uri/helpers/wsf_uri_response_agent_handler.e +++ b/library/server/wsf/router/support/uri/helpers/wsf_uri_response_agent_handler.e @@ -11,7 +11,9 @@ inherit WSF_EXECUTE_RESPONSE_AGENT_HANDLER WSF_URI_RESPONSE_HANDLER - + undefine + execute + end create make diff --git a/library/server/wsf/router/support/uri/helpers/wsf_uri_response_handler.e b/library/server/wsf/router/support/uri/helpers/wsf_uri_response_handler.e index 8a6ee91d..f01a3014 100644 --- a/library/server/wsf/router/support/uri/helpers/wsf_uri_response_handler.e +++ b/library/server/wsf/router/support/uri/helpers/wsf_uri_response_handler.e @@ -22,6 +22,14 @@ feature -- Response Result_attached: Result /= Void end +feature -- Execution + + execute (req: WSF_REQUEST; res: WSF_RESPONSE) + -- Execute request handler + do + res.send (response (req)) + end + note 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)" diff --git a/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_agent_handler.e b/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_agent_handler.e index a5e35a85..ffb44f8c 100644 --- a/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_agent_handler.e +++ b/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_agent_handler.e @@ -11,6 +11,9 @@ inherit WSF_EXECUTE_RESPONSE_AGENT_HANDLER WSF_URI_TEMPLATE_RESPONSE_HANDLER + undefine + execute + end create make diff --git a/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_handler.e b/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_handler.e index 01c28f0b..47c83266 100644 --- a/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_handler.e +++ b/library/server/wsf/router/support/uri_template/helpers/wsf_uri_template_response_handler.e @@ -22,6 +22,14 @@ feature -- Response Result_attached: Result /= Void end +feature -- Execution + + execute (req: WSF_REQUEST; res: WSF_RESPONSE) + -- Execute request handler + do + res.send (response (req)) + end + note 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)"