Renamed WGI_RESPONSE_BUFFER as WGI_RESPONSE to avoid confusion
Removed EWF_HEADER and removed related caller from WGI implementation,
now this is only part of WSF library
Added wgi_version, wgi_implementation and wgi_connector to the WGI_REQUEST interface
to give more information to the user
Added back WGI_CONNECTOR to WGI specification, mainly because of `{WGI_REQUEST}.wgi_connector'
simplified WGI_CONNECTOR to contain for now only `name' and `version'
if the implementation of connector inherit from WGI_CONNECTOR (recommended)
this might gives more access to the user using a reverse assignment for specific needs
(but this usage is not recommended due to portability issue on other connector)
Removed useless connector.ecf since now EWF/WGI library provides the helper classes
49 lines
970 B
Plaintext
49 lines
970 B
Plaintext
note
|
|
description: "Summary description for {WGI_AGENT_SERVICE}."
|
|
author: ""
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
WGI_AGENT_SERVICE
|
|
|
|
inherit
|
|
WGI_SERVICE
|
|
|
|
create
|
|
make
|
|
|
|
feature {NONE} -- Implementation
|
|
|
|
make (a_callback: like callback)
|
|
-- Initialize `Current'.
|
|
do
|
|
callback := a_callback
|
|
end
|
|
|
|
feature {NONE} -- Implementation
|
|
|
|
callback: PROCEDURE [ANY, TUPLE [req: WGI_REQUEST; res: WGI_RESPONSE]]
|
|
-- Procedure called on `execute'
|
|
|
|
execute (req: WGI_REQUEST; res: WGI_RESPONSE)
|
|
-- Execute the request
|
|
do
|
|
callback.call ([req, res])
|
|
end
|
|
|
|
invariant
|
|
callback_attached: callback /= Void
|
|
|
|
note
|
|
copyright: "2011-2011, Eiffel Software and others"
|
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
|
source: "[
|
|
Eiffel Software
|
|
5949 Hollister Ave., Goleta, CA 93117 USA
|
|
Telephone 805-685-1006, Fax 805-685-6869
|
|
Website http://www.eiffel.com
|
|
Customer support http://support.eiffel.com
|
|
]"
|
|
end
|