Added WSF_ROUTE to replace a TUPLE [H, C] WSF_ROUTER.route (req): detachable WSF_ROUTE WSF_ROUTER.execute_route (a_route, req, res) To help usage of Routers Remove WSF_HANDLER_CONTEXT obsolete features. Added comments
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
note
|
|
description: "[
|
|
Context for the handler execution
|
|
|
|
It does not provide additional information compared to {WSF_HANDLER_CONTEXT}
|
|
- request: WSF_REQUEST -- Associated request
|
|
- path: READABLE_STRING_8 -- Associated path
|
|
]"
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
WSF_URI_HANDLER_CONTEXT
|
|
|
|
inherit
|
|
WSF_HANDLER_CONTEXT
|
|
|
|
create
|
|
make
|
|
|
|
feature {NONE} -- Initialization
|
|
|
|
make (req: WSF_REQUEST; p: like path)
|
|
do
|
|
request := req
|
|
path := p
|
|
end
|
|
|
|
feature -- Item
|
|
|
|
item (a_name: READABLE_STRING_8): detachable WSF_VALUE
|
|
-- Variable value for parameter or variable `a_name'
|
|
-- See `{WSF_REQUEST}.item(s)'
|
|
do
|
|
Result := request.item (a_name)
|
|
end
|
|
|
|
note
|
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
|
source: "[
|
|
Eiffel Software
|
|
5949 Hollister Ave., Goleta, CA 93117 USA
|
|
Telephone 805-685-1006, Fax 805-685-6869
|
|
Website http://www.eiffel.com
|
|
Customer support http://support.eiffel.com
|
|
]"
|
|
end
|