/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

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