Added WSF_REQUEST.path_parameter (a_name): detachable WSF_VALUE
- fill path_parameters using `import_raw_path_parameters"
when executing the route
- reset to previous value with reset_path_parameters (..),
just in case the request is executed via severals routes.
61 lines
1.2 KiB
Plaintext
61 lines
1.2 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 -- Request data
|
|
|
|
apply (req: WSF_REQUEST)
|
|
-- <Precursor>
|
|
do
|
|
end
|
|
|
|
revert (req: WSF_REQUEST)
|
|
-- <Precursor>
|
|
do
|
|
end
|
|
|
|
feature -- Item
|
|
|
|
item (a_name: READABLE_STRING_32): 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
|