diff --git a/examples/debug/debug.ecf b/examples/debug/debug.ecf
index 7b1f2b7b..26bf2100 100644
--- a/examples/debug/debug.ecf
+++ b/examples/debug/debug.ecf
@@ -18,12 +18,20 @@
+
-
-
+
+
+
+
+
+
+
+
+
@@ -32,7 +40,7 @@
-
+
diff --git a/examples/debug/launcher/any/application_launcher.e b/examples/debug/launcher/any/application_launcher.e
index 0ef505c3..bb184d0a 100644
--- a/examples/debug/launcher/any/application_launcher.e
+++ b/examples/debug/launcher/any/application_launcher.e
@@ -8,10 +8,10 @@ note
revision: "$Revision: 36 $"
class
- APPLICATION_LAUNCHER
+ APPLICATION_LAUNCHER [G -> WSF_EXECUTION create make end]
inherit
- APPLICATION_LAUNCHER_I
+ APPLICATION_LAUNCHER_I [G]
feature -- Custom
diff --git a/examples/debug/launcher/any/application_launcher_i.e b/examples/debug/launcher/any/application_launcher_i.e
index 0744c801..22f94cab 100644
--- a/examples/debug/launcher/any/application_launcher_i.e
+++ b/examples/debug/launcher/any/application_launcher_i.e
@@ -10,24 +10,26 @@ note
revision: "$Revision: 36 $"
deferred class
- APPLICATION_LAUNCHER_I
+ APPLICATION_LAUNCHER_I [G -> WSF_EXECUTION create make end]
inherit
SHARED_EXECUTION_ENVIRONMENT
feature -- Execution
- launch (a_service: WSF_SERVICE; opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
+ launch (opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
local
nature: like launcher_nature
do
nature := launcher_nature
- if nature = Void or else nature = nature_nino then
- launch_nino (a_service, opts)
+ if nature = Void or else nature = nature_httpd then
+ launch_httpd (opts)
+ elseif nature = nature_nino then
+ launch_nino (opts)
elseif nature = nature_cgi then
- launch_cgi (a_service, opts)
+ launch_cgi (opts)
elseif nature = nature_libfcgi then
- launch_libfcgi (a_service, opts)
+ launch_libfcgi (opts)
else
-- bye bye
(create {EXCEPTIONS}).die (-1)
@@ -43,14 +45,16 @@ feature {NONE} -- Access
--| and we could use WSF_DEFAULT_SERVICE_LAUNCHER to configure this at compilation time.
local
p: PATH
- l_entry_name: READABLE_STRING_32
ext: detachable READABLE_STRING_32
do
create p.make_from_string (execution_environment.arguments.command_name)
if attached p.entry as l_entry then
- ext := l_entry.extension
+ ext := l_entry.extension
end
if ext /= Void then
+ if ext.same_string (nature_httpd) then
+ Result := nature_httpd
+ end
if ext.same_string (nature_nino) then
Result := nature_nino
end
@@ -61,39 +65,51 @@ feature {NONE} -- Access
Result := nature_libfcgi
end
end
+ Result := nature_httpd
+ end
+
+feature {NONE} -- nino
+
+ nature_httpd: STRING = "httpd"
+
+ launch_httpd (opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
+ local
+ launcher: WSF_HTTPD_SERVICE_LAUNCHER [G]
+ do
+ create launcher.make_and_launch (opts)
end
feature {NONE} -- nino
nature_nino: STRING = "nino"
- launch_nino (a_service: WSF_SERVICE; opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
+ launch_nino (opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
local
- launcher: WSF_NINO_SERVICE_LAUNCHER
+ launcher: WSF_NINO_SERVICE_LAUNCHER [G]
do
- create launcher.make_and_launch (a_service, opts)
+ create launcher.make_and_launch (opts)
end
feature {NONE} -- cgi
nature_cgi: STRING = "cgi"
- launch_cgi (a_service: WSF_SERVICE; opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
+ launch_cgi (opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
local
- launcher: WSF_CGI_SERVICE_LAUNCHER
+ launcher: WSF_CGI_SERVICE_LAUNCHER [G]
do
- create launcher.make_and_launch (a_service, opts)
+ create launcher.make_and_launch (opts)
end
feature {NONE} -- libfcgi
nature_libfcgi: STRING = "libfcgi"
- launch_libfcgi (a_service: WSF_SERVICE; opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
+ launch_libfcgi (opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
local
- launcher: WSF_LIBFCGI_SERVICE_LAUNCHER
+ launcher: WSF_LIBFCGI_SERVICE_LAUNCHER [G]
do
- create launcher.make_and_launch (a_service, opts)
+ create launcher.make_and_launch (opts)
end
diff --git a/examples/debug/launcher/default/application_launcher.e b/examples/debug/launcher/default/application_launcher.e
index 0ef505c3..bb184d0a 100644
--- a/examples/debug/launcher/default/application_launcher.e
+++ b/examples/debug/launcher/default/application_launcher.e
@@ -8,10 +8,10 @@ note
revision: "$Revision: 36 $"
class
- APPLICATION_LAUNCHER
+ APPLICATION_LAUNCHER [G -> WSF_EXECUTION create make end]
inherit
- APPLICATION_LAUNCHER_I
+ APPLICATION_LAUNCHER_I [G]
feature -- Custom
diff --git a/examples/debug/launcher/default/application_launcher_i.e b/examples/debug/launcher/default/application_launcher_i.e
index 2cd4a73d..ef8f0037 100644
--- a/examples/debug/launcher/default/application_launcher_i.e
+++ b/examples/debug/launcher/default/application_launcher_i.e
@@ -10,15 +10,15 @@ note
revision: "$Revision: 36 $"
deferred class
- APPLICATION_LAUNCHER_I
+ APPLICATION_LAUNCHER_I [G -> WSF_EXECUTION create make end]
feature -- Execution
- launch (a_service: WSF_SERVICE; opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
+ launch (opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
local
- launcher: WSF_SERVICE_LAUNCHER
+ launcher: WSF_SERVICE_LAUNCHER [G]
do
- create {WSF_DEFAULT_SERVICE_LAUNCHER} launcher.make_and_launch (a_service, opts)
+ create {WSF_DEFAULT_SERVICE_LAUNCHER [G]} launcher.make_and_launch (opts)
end
end
diff --git a/examples/debug/src/ewf_debug_execution.e b/examples/debug/src/ewf_debug_execution.e
new file mode 100644
index 00000000..f75c44c2
--- /dev/null
+++ b/examples/debug/src/ewf_debug_execution.e
@@ -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
diff --git a/examples/debug/src/ewf_debug_server.e b/examples/debug/src/ewf_debug_server.e
index 3725bfc9..17f6f954 100644
--- a/examples/debug/src/ewf_debug_server.e
+++ b/examples/debug/src/ewf_debug_server.e
@@ -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
diff --git a/examples/simple/simple.ecf b/examples/simple/simple.ecf
index d0fccfd8..4bf050c9 100644
--- a/examples/simple/simple.ecf
+++ b/examples/simple/simple.ecf
@@ -13,6 +13,14 @@
+
+
+
+
+
+