From b5b71a3db0078b260d6e0670b559f64b46ae25fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20M=C3=BCnger?= Date: Tue, 27 Aug 2013 13:48:44 +0200 Subject: [PATCH] Created widget-project testapp project. --- examples/widgetapp/application.e | 38 +++++++++++++++++++++++++++++ examples/widgetapp/widgetapp.ecf | 42 ++++++++++++++++++++++++++++++++ examples/widgetapp/widgetapp.rc | 1 + 3 files changed, 81 insertions(+) create mode 100644 examples/widgetapp/application.e create mode 100644 examples/widgetapp/widgetapp.ecf create mode 100644 examples/widgetapp/widgetapp.rc diff --git a/examples/widgetapp/application.e b/examples/widgetapp/application.e new file mode 100644 index 00000000..e898b73b --- /dev/null +++ b/examples/widgetapp/application.e @@ -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 diff --git a/examples/widgetapp/widgetapp.ecf b/examples/widgetapp/widgetapp.ecf new file mode 100644 index 00000000..52254872 --- /dev/null +++ b/examples/widgetapp/widgetapp.ecf @@ -0,0 +1,42 @@ + + + + + /EIFGENs$ + /CVS$ + /.svn$ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/widgetapp/widgetapp.rc b/examples/widgetapp/widgetapp.rc new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/examples/widgetapp/widgetapp.rc @@ -0,0 +1 @@ +