Migrated most of the example and library to new design.
This commit is contained in:
@@ -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
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user