New design for self documented router.

The documentation is built only on demand.
A mapping entry can be hidden for the documentation
One can change the status code when building itself the WSF_ROUTER_SELF_DOCUMENTATION_MESSAGE
This commit is contained in:
Jocelyn Fiat
2012-11-23 22:49:11 +01:00
parent c654759d8e
commit af07986eec
9 changed files with 163 additions and 74 deletions

View File

@@ -10,6 +10,7 @@ deferred class
feature {NONE} -- Initialization
make (a_resource: READABLE_STRING_8; h: like handler)
-- Create mapping based on resource `a_resource' and handler `h'
deferred
end
@@ -25,6 +26,13 @@ feature -- Access
deferred
end
feature -- Documentation
description: READABLE_STRING_32
-- Short description of associated mapping.
deferred
end
feature -- Status
routed_handler (req: WSF_REQUEST; res: WSF_RESPONSE; a_router: WSF_ROUTER): detachable WSF_HANDLER