PageRenderTime 132ms CodeModel.GetById 61ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/library/server/rest/handler/rest_request_agent_handler.e

http://github.com/jocelyn/EiffelWebReloaded
Specman e | 55 lines | 42 code | 13 blank | 0 comment | 1 complexity | d93bef2e847974b67ece3c01826a92d5 MD5 | raw file
 1note
 2	description: "Summary description for REQUEST_AGENT_HANDLER."
 3	author: ""
 4	date: "$Date$"
 5	revision: "$Revision$"
 6
 7class
 8	REST_REQUEST_AGENT_HANDLER
 9
10inherit
11	REST_REQUEST_HANDLER
12
13create
14	make
15
16feature -- Initialization
17
18	make (act: like action; p: like path)
19		do
20			set_path (p)
21			action := act
22			initialize
23		end
24
25feature -- Access
26
27	action: PROCEDURE [ANY, TUPLE [env: REST_REQUEST_CONTEXT; format: detachable STRING; args: detachable STRING]]
28
29	authentication_required: BOOLEAN assign set_authentication_required
30
31feature -- Element change
32
33	set_authentication_required (b: like authentication_required)
34		do
35			authentication_required := b
36		end
37
38feature -- Execution
39
40	execute_application (ctx: REST_REQUEST_CONTEXT; a_format: detachable STRING; a_args: detachable STRING)
41		do
42			action.call ([ctx, a_format, a_args])
43		end
44
45note
46	copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
47	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
48	source: "[
49			Eiffel Software
50			5949 Hollister Ave., Goleta, CA 93117 USA
51			Telephone 805-685-1006, Fax 805-685-6869
52			Website http://www.eiffel.com
53			Customer support http://support.eiffel.com
54		]"
55end