Moving things around to make it more structured. and turn into library

This commit is contained in:
Jocelyn Fiat
2011-05-27 15:21:30 +02:00
parent c553bd1e1e
commit 54b95650c5
90 changed files with 24 additions and 2 deletions

37
web_server/application.e Normal file
View File

@@ -0,0 +1,37 @@
note
description : "nino application root class"
date : "$Date$"
revision : "$Revision$"
class
APPLICATION
inherit
ARGUMENTS
create
make
feature {NONE} -- Initialization
make
-- Run application.
local
l_server : HTTP_SERVER
l_cfg: HTTP_SERVER_CONFIGURATION
l_http_handler : HTTP_HANDLER
do
create l_cfg.make
l_cfg.http_server_port := 9_000
l_cfg.document_root := default_document_root
create l_server.make (l_cfg)
create {APPLICATION_CONNECTION_HANDLER} l_http_handler.make (l_server, "HTTP_HANDLER")
l_server.setup (l_http_handler)
end
feature -- Access
default_document_root: STRING = "webroot"
end