Added SCOOP support for WSF.
WSF_SERVICE is deeply changed, and addition of WSF_EXECUTION. Todo: code cleaning, removing useless things.
This commit is contained in:
27
examples/debug/src/ewf_debug_execution.e
Normal file
27
examples/debug/src/ewf_debug_execution.e
Normal file
@@ -0,0 +1,27 @@
|
||||
note
|
||||
description: "Summary description for {EWF_DEBUG_EXECUTION}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
EWF_DEBUG_EXECUTION
|
||||
|
||||
inherit
|
||||
WSF_EXECUTION
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature -- Execution
|
||||
|
||||
execute
|
||||
local
|
||||
dbg: WSF_DEBUG_HANDLER
|
||||
do
|
||||
response.put_error ("DEBUG uri=" + request.request_uri + "%N")
|
||||
create dbg.make
|
||||
dbg.execute_starts_with ("", request, response)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -14,7 +14,7 @@ inherit
|
||||
initialize
|
||||
end
|
||||
|
||||
APPLICATION_LAUNCHER
|
||||
APPLICATION_LAUNCHER [EWF_DEBUG_EXECUTION]
|
||||
|
||||
create
|
||||
make_and_launch
|
||||
@@ -30,14 +30,14 @@ feature {NONE} -- Initialization
|
||||
-- set_service_option ("base", "/www-debug/debug_service.fcgi/")
|
||||
end
|
||||
|
||||
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||
local
|
||||
dbg: WSF_DEBUG_HANDLER
|
||||
do
|
||||
res.put_error ("DEBUG" + req.request_uri + "%N")
|
||||
create dbg.make
|
||||
dbg.execute_starts_with ("", req, res)
|
||||
end
|
||||
-- execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||
-- local
|
||||
-- dbg: WSF_DEBUG_HANDLER
|
||||
-- do
|
||||
-- res.put_error ("OH NO uri=" + req.request_uri + "%N")
|
||||
-- create dbg.make
|
||||
-- dbg.execute_starts_with ("", req, res)
|
||||
-- end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user