Added simple console wizard for Eiffel Studio.

(It is not very user friendly, this is a first draft)
It should be improved in the future (with GUI, ...)
This commit is contained in:
Jocelyn Fiat
2012-06-22 15:54:50 +02:00
parent 87c2074d2b
commit 9b13aa27dd
14 changed files with 843 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
note
description: "[
This class implements the web service
It inherits from WSF_DEFAULT_SERVICE to get default EWF connector ready
It just implements `execute'
`initialize' can be redefine to provide custom options if needed.
]"
class
EWF_APPLICATION
inherit
WSF_DEFAULT_SERVICE
redefine
initialize
end
create
make_and_launch
feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Default request handler if no other are relevant
local
mesg: WSF_HTML_PAGE_RESPONSE
s: STRING_8
l_user_name: READABLE_STRING_32
do
create mesg.make
mesg.set_title ("Hello World!")
mesg.set_body ("<h1>Hello World!</h1>")
res.send (mesg)
end
feature {NONE} -- Initialization
initialize
do
--| The following line is to be able to load options from the file ewf.ini
create {WSF_SERVICE_LAUNCHER_OPTIONS_FROM_INI} service_options.make_from_file ("ewf.ini")
--| If you don't need any custom options, you are not obliged to redefine `initialize'
Precursor
--| Initialize router
initialize_router
end
end