Created widget-project testapp project.

This commit is contained in:
Severin Münger
2013-08-27 13:48:44 +02:00
parent 9938cc941d
commit b5b71a3db0
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
note
description: "simple application root class"
date: "$Date$"
revision: "$Revision$"
class
APPLICATION
inherit
WSF_DEFAULT_SERVICE
redefine
initialize
end
create
make_and_launch
feature {NONE} -- Initialization
initialize
-- Initialize current service.
do
set_service_option ("port", 9090)
end
feature -- Basic operations
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
-- To send a response we need to setup, the status code and
-- the response headers.
res.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/plain"], ["Content-Length", "11"]>>)
res.put_string ("Hello World 99 just another mod")
res.put_string ("Hello World reloaded")
end
end