Added notion of mapping factory, so one can implement a handler without having to implement new_mapping

Added filter context handler
Added WSF_STARTS_WITH_ROUTING_HANDLER and WSF_URI_ROUTING_HANDLER (in addition to the uri template version)
This commit is contained in:
Jocelyn Fiat
2012-10-04 14:31:03 +02:00
parent f7615edec9
commit 2f6a6cbf5f
11 changed files with 148 additions and 21 deletions

View File

@@ -17,14 +17,7 @@ feature -- Status report
feature {WSF_ROUTER} -- Mapping
new_mapping (a_resource: READABLE_STRING_8): WSF_ROUTER_MAPPING
-- New mapping built with Current as handler
deferred
ensure
Result /= Void and then Result.handler = Current
end
on_mapped (a_mapping: like new_mapping; a_rqst_methods: detachable WSF_ROUTER_METHODS)
on_mapped (a_mapping: WSF_ROUTER_MAPPING; a_rqst_methods: detachable WSF_ROUTER_METHODS)
-- Callback called when a router map a route to Current handler
do
end