Migrated most of the example and library to new design.

This commit is contained in:
2015-03-31 14:50:20 +02:00
parent 7d2ce8a77f
commit 4907bc3085
124 changed files with 2399 additions and 1789 deletions

View File

@@ -1,31 +1,22 @@
note
description: "[
Inherit from this class to implement the main entry of your web service
You just need to implement `execute', get data from the request `req'
and return a response message
]"
description: "Summary description for {WSF_EXECUTION_FACTORY}."
author: ""
date: "$Date$"
revision: "$Revision$"
deferred class
WSF_RESPONSE_SERVICE [G -> WSF_EXECUTION create make end]
WSF_EXECUTION_FACTORY
inherit
WSF_SERVICE
feature -- Response
response (req: WSF_REQUEST): WSF_RESPONSE_MESSAGE
deferred
ensure
Result_attached: Result /= Void
WGI_EXECUTION_FACTORY
redefine
execution
end
feature -- Execution
feature -- Factory
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
res.send (response (req))
execution (req: WGI_REQUEST; res: WGI_RESPONSE): WSF_EXECUTION
deferred
end
note

View File

@@ -19,7 +19,7 @@ note
class
WSF_RESPONSE
create {WSF_TO_WGI_SERVICE, WSF_EXECUTION, WGI_EXPORTER}
create {WSF_EXECUTION, WGI_EXPORTER}
make_from_wgi
create {WSF_RESPONSE}