prior to refactoring for WSF_ROUTED_SKELETON_SERVICE

This commit is contained in:
Colin Adams
2013-03-18 14:21:53 +00:00
parent dd63042ec4
commit d56f4e6c7d
6 changed files with 251 additions and 28 deletions

View File

@@ -277,6 +277,26 @@ feature -- Status report
end
end
all_allowed_methods: WSF_REQUEST_METHODS
-- Methods allowed for ALL requests handled by `Current'
local
l_mapping: WSF_ROUTER_MAPPING
do
create Result
across
mappings as c
loop
if attached c.item.request_methods as m then
Result := Result + m
end
l_mapping := c.item.mapping
if attached {WSF_ROUTING_HANDLER} l_mapping.handler as l_routing then
Result := Result + l_routing.router.all_allowed_methods
end
--| not sure if that covers everything - Jocelyn, please comment
end
end
feature -- Hook
execute_before (a_mapping: WSF_ROUTER_MAPPING)