Added example to help debugging EWF

This is mainly a kind of echo server .. that return the request information.
This commit is contained in:
2014-06-12 19:52:41 +02:00
parent ce4c62a989
commit 394ca46f03
6 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
note
description: "[
application service
]"
date: "$Date$"
revision: "$Revision$"
class
EWF_DEBUG_SERVER
inherit
WSF_LAUNCHABLE_SERVICE
redefine
initialize
end
APPLICATION_LAUNCHER
create
make_and_launch
feature {NONE} -- Initialization
initialize
-- Initialize current service.
do
Precursor
set_service_option ("verbose", True)
set_service_option ("port", 9090)
set_service_option ("base", "/www-debug/debug_service.fcgi")
end
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
local
dbg: WSF_DEBUG_HANDLER
m: WSF_PAGE_RESPONSE
do
create dbg.make
dbg.execute_starts_with ("", req, res)
--create m.make_with_body ("This is ewf debug")
--res.send (m)
end
end