rename new_request_context by new_request

This commit is contained in:
Jocelyn Fiat
2011-07-14 14:56:34 +02:00
parent 3e73298806
commit 30d4843a5b
4 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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])

View File

@@ -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")

View File

@@ -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."