added `a_request_methods' argument to WSF_ROUTER_SELF_DOCUMENTATION_HANDLER.mapping_documentation added similar argument to WSF_ROUTER_SELF_DOCUMENTATION_ROUTER_MAPPING.documentation Renamed WSF_ROUTER_METHODS as WSF_REQUEST_METHODS Enhanced WSF_REQUEST_METHODS with new has_... function Added WSF_ROUTER_VISITOR and WSF_ROUTER_ITERATOR that may be useful to iterate inside the router. we may improve the implementation of the router using those visitors in the future. Improved the WSF_DEFAULT_RESPONSE to embedded suggested items (typically based on pseudo self documented router)
42 lines
602 B
Plaintext
42 lines
602 B
Plaintext
note
|
|
description: "Summary description for {WSF_ROUTER_ITERATOR}."
|
|
author: ""
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
WSF_ROUTER_ITERATOR
|
|
|
|
inherit
|
|
WSF_ROUTER_VISITOR
|
|
|
|
feature -- Visitor
|
|
|
|
process_router (r: WSF_ROUTER)
|
|
do
|
|
across
|
|
r as c
|
|
loop
|
|
process_item (c.item)
|
|
end
|
|
end
|
|
|
|
process_item (i: WSF_ROUTER_ITEM)
|
|
do
|
|
process_mapping (i.mapping)
|
|
end
|
|
|
|
process_mapping (m: WSF_ROUTER_MAPPING)
|
|
do
|
|
process_handler (m.handler)
|
|
end
|
|
|
|
process_handler (h: WSF_HANDLER)
|
|
do
|
|
if attached {WSF_ROUTING_HANDLER} h as r then
|
|
process_router (r.router)
|
|
end
|
|
end
|
|
|
|
end
|