Added WSF_ROUTER.pre_route_execution_actions: ACTION_SEQUENCE [like route]

This way, one can add logger hook to router, to see which "route" was taken by the request.
This commit is contained in:
Jocelyn Fiat
2012-04-13 16:40:19 +02:00
parent 0bd2d16c12
commit 21b03a05fd
6 changed files with 25 additions and 7 deletions

View File

@@ -36,11 +36,10 @@ feature -- Setup
feature -- Execution
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
local
l_handled: BOOLEAN
do
l_handled := router.dispatch (req, res)
if not l_handled then
if attached router.route (req) as r then
router.execute_route (r, req, res)
else
execute_default (req, res)
end
end