rename new_request_context by new_request
This commit is contained in:
@@ -14,12 +14,12 @@ feature -- Process request
|
|||||||
-- Process request with environment `env', and i/o streams `a_input' and `a_output'
|
-- Process request with environment `env', and i/o streams `a_input' and `a_output'
|
||||||
local
|
local
|
||||||
rescued: BOOLEAN
|
rescued: BOOLEAN
|
||||||
req: detachable like new_request_context
|
req: detachable like new_request
|
||||||
res: detachable like new_response
|
res: detachable like new_response
|
||||||
do
|
do
|
||||||
if not rescued then
|
if not rescued then
|
||||||
pre_execute (env)
|
pre_execute (env)
|
||||||
req := new_request_context (env, a_input)
|
req := new_request (env, a_input)
|
||||||
res := new_response (a_output)
|
res := new_response (a_output)
|
||||||
execute (req, res)
|
execute (req, res)
|
||||||
post_execute (req, res)
|
post_execute (req, res)
|
||||||
@@ -57,7 +57,7 @@ feature {NONE} -- Execution
|
|||||||
|
|
||||||
feature -- Factory
|
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'
|
-- New Request context based on `env' and `a_input'
|
||||||
--| note: you can redefine this function to create your own
|
--| note: you can redefine this function to create your own
|
||||||
--| descendant of GW_REQUEST_CONTEXT , or even to reuse/recycle existing
|
--| descendant of GW_REQUEST_CONTEXT , or even to reuse/recycle existing
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ feature {NONE} -- Implementation
|
|||||||
|
|
||||||
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'
|
-- 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
|
-- Execute the request
|
||||||
do
|
do
|
||||||
callback.call ([req, res])
|
callback.call ([req, res])
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ feature -- Execution
|
|||||||
|
|
||||||
feature -- Factory
|
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
|
do
|
||||||
create {GW_REQUEST_IMP} Result.make (env, a_input)
|
create {GW_REQUEST_IMP} Result.make (env, a_input)
|
||||||
Result.execution_variables.set_variable (request_count.out, "REQUEST_COUNT")
|
Result.execution_variables.set_variable (request_count.out, "REQUEST_COUNT")
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ note
|
|||||||
You can create your own descendant of this class to
|
You can create your own descendant of this class to
|
||||||
add/remove specific value or processing
|
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."
|
legal: "See notice at end of class."
|
||||||
status: "See notice at end of class."
|
status: "See notice at end of class."
|
||||||
|
|||||||
Reference in New Issue
Block a user