From 30d4843a5bb2de4c247d315bf05b6bb1fc0d3773 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 14 Jul 2011 14:56:34 +0200 Subject: [PATCH] rename new_request_context by new_request --- library/server/ewsgi/src/gw_application.e | 6 +++--- .../server/ewsgi/src/implementation/gw_agent_application.e | 4 ++-- .../server/ewsgi/src/implementation/gw_application_imp.e | 2 +- library/server/ewsgi/src/implementation/gw_request_imp.e | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/library/server/ewsgi/src/gw_application.e b/library/server/ewsgi/src/gw_application.e index 341e2106..a0a9370b 100644 --- a/library/server/ewsgi/src/gw_application.e +++ b/library/server/ewsgi/src/gw_application.e @@ -14,12 +14,12 @@ feature -- Process request -- Process request with environment `env', and i/o streams `a_input' and `a_output' local rescued: BOOLEAN - req: detachable like new_request_context + req: detachable like new_request res: detachable like new_response do if not rescued then pre_execute (env) - req := new_request_context (env, a_input) + req := new_request (env, a_input) res := new_response (a_output) execute (req, res) post_execute (req, res) @@ -57,7 +57,7 @@ feature {NONE} -- Execution feature -- Factory - new_request_context (env: GW_ENVIRONMENT; a_input: GW_INPUT_STREAM): GW_REQUEST + new_request (env: GW_ENVIRONMENT; a_input: GW_INPUT_STREAM): GW_REQUEST -- New Request context based on `env' and `a_input' --| note: you can redefine this function to create your own --| descendant of GW_REQUEST_CONTEXT , or even to reuse/recycle existing diff --git a/library/server/ewsgi/src/implementation/gw_agent_application.e b/library/server/ewsgi/src/implementation/gw_agent_application.e index 5e27cfb4..4f8a9c0d 100644 --- a/library/server/ewsgi/src/implementation/gw_agent_application.e +++ b/library/server/ewsgi/src/implementation/gw_agent_application.e @@ -23,10 +23,10 @@ feature {NONE} -- Implementation feature {NONE} -- Implementation - callback: PROCEDURE [ANY, TUPLE [req: like new_request_context; res: like new_response]] + callback: PROCEDURE [ANY, TUPLE [req: like new_request; res: like new_response]] -- Procedure called on `execute' - execute (req: like new_request_context; res: like new_response) + execute (req: like new_request; res: like new_response) -- Execute the request do callback.call ([req, res]) diff --git a/library/server/ewsgi/src/implementation/gw_application_imp.e b/library/server/ewsgi/src/implementation/gw_application_imp.e index f11af8df..7c80b53e 100644 --- a/library/server/ewsgi/src/implementation/gw_application_imp.e +++ b/library/server/ewsgi/src/implementation/gw_application_imp.e @@ -30,7 +30,7 @@ feature -- Execution feature -- Factory - new_request_context (env: GW_ENVIRONMENT; a_input: GW_INPUT_STREAM): GW_REQUEST + new_request (env: GW_ENVIRONMENT; a_input: GW_INPUT_STREAM): GW_REQUEST do create {GW_REQUEST_IMP} Result.make (env, a_input) Result.execution_variables.set_variable (request_count.out, "REQUEST_COUNT") diff --git a/library/server/ewsgi/src/implementation/gw_request_imp.e b/library/server/ewsgi/src/implementation/gw_request_imp.e index 4b1f8ee5..90116110 100644 --- a/library/server/ewsgi/src/implementation/gw_request_imp.e +++ b/library/server/ewsgi/src/implementation/gw_request_imp.e @@ -5,7 +5,7 @@ note You can create your own descendant of this class to add/remove specific value or processing - This object is created by {GW_APPLICATION}.new_request_context + This object is created by {GW_APPLICATION}.new_request ]" legal: "See notice at end of class." status: "See notice at end of class."