Renamed DEFAULT_SERVICE as DEFAULT_SERVICE_LAUNCHER

This commit is contained in:
Jocelyn Fiat
2011-12-12 18:17:27 +01:00
parent 68e4ac9a8f
commit 0335226e8b
7 changed files with 53 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ feature {NONE} -- Initialization
make make
local local
s: DEFAULT_SERVICE s: DEFAULT_SERVICE_LAUNCHER
do do
initialize_router initialize_router
create s.make_and_launch (agent execute) create s.make_and_launch (agent execute)

View File

@@ -21,7 +21,7 @@ feature {NONE} -- Initialization
make make
local local
s: DEFAULT_SERVICE s: DEFAULT_SERVICE_LAUNCHER
do do
initialize_router initialize_router
create s.make_and_launch (agent execute) create s.make_and_launch (agent execute)

View File

@@ -14,7 +14,7 @@ feature {NONE} -- Initialization
make make
-- Run application. -- Run application.
local local
s: DEFAULT_SERVICE s: DEFAULT_SERVICE_LAUNCHER
do do
create s.make_and_launch (agent execute) create s.make_and_launch (agent execute)
end end

View File

@@ -14,7 +14,7 @@ feature {NONE} -- Initialization
make make
-- Run application. -- Run application.
local local
s: DEFAULT_SERVICE s: DEFAULT_SERVICE_LAUNCHER
do do
create s.make_and_launch (agent execute) create s.make_and_launch (agent execute)
end end

View File

@@ -1,10 +1,24 @@
note note
description: "Summary description for {DEFAULT_SERVICE}." description: "[
Component to launch the service using the default connector
which is CGI for this class
How-to:
s: DEFAULT_SERVICE_LAUNCHER
create s.make_and_launch (agent execute)
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
-- ...
end
]"
date: "$Date$" date: "$Date$"
revision: "$Revision$" revision: "$Revision$"
class class
DEFAULT_SERVICE DEFAULT_SERVICE_LAUNCHER
inherit inherit
WSF_SERVICE WSF_SERVICE

View File

@@ -1,10 +1,24 @@
note note
description: "Summary description for {DEFAULT_SERVICE}." description: "[
Component to launch the service using the default connector
which is libFCGI for this class
How-to:
s: DEFAULT_SERVICE_LAUNCHER
create s.make_and_launch (agent execute)
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
-- ...
end
]"
date: "$Date$" date: "$Date$"
revision: "$Revision$" revision: "$Revision$"
class class
DEFAULT_SERVICE DEFAULT_SERVICE_LAUNCHER
inherit inherit
WSF_SERVICE WSF_SERVICE

View File

@@ -1,10 +1,24 @@
note note
description: "Summary description for {DEFAULT_SERVICE}." description: "[
Component to launch the service using the default connector
which is Eiffel Web Nino for this class
How-to:
s: DEFAULT_SERVICE_LAUNCHER
create s.make_and_launch (agent execute)
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
-- ...
end
]"
date: "$Date$" date: "$Date$"
revision: "$Revision$" revision: "$Revision$"
class class
DEFAULT_SERVICE DEFAULT_SERVICE_LAUNCHER
inherit inherit
WSF_SERVICE WSF_SERVICE
@@ -21,7 +35,7 @@ feature {NONE} -- Initialization
base_url: STRING base_url: STRING
do do
action := a_action action := a_action
port_number := 80 --| Default, but quite often, this port is already used ... port_number := 8087 --| Default, but quite often, this port is already used ...
base_url := "" base_url := ""
debug ("nino") debug ("nino")
print ("Example: start a Nino web server on port " + port_number.out + print ("Example: start a Nino web server on port " + port_number.out +