From b781caa2c2080569afbaac02c9881df82954f51a Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Mon, 22 Oct 2012 14:04:42 +0200 Subject: [PATCH] Fixing design of draft rest lib (which is going to be removed soon) --- .../rest/src/rest_request_agent_handler.e | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/draft/library/server/request/rest/src/rest_request_agent_handler.e b/draft/library/server/request/rest/src/rest_request_agent_handler.e index bb5bf129..8b3c1e73 100644 --- a/draft/library/server/request/rest/src/rest_request_agent_handler.e +++ b/draft/library/server/request/rest/src/rest_request_agent_handler.e @@ -3,10 +3,37 @@ class inherit WSF_URI_TEMPLATE_AGENT_CONTEXT_HANDLER [C] + rename + execute as execute_application + end + + REST_REQUEST_HANDLER [C] + select + execute + end create make +feature -- status + + authentication_required (req: WSF_REQUEST): BOOLEAN + do + Result := internal_authentication_required + end + +feature -- Element change + + set_authentication_required (b: like authentication_required) + do + internal_authentication_required := b + end + +feature {NONE} -- Implementation + + internal_authentication_required: BOOLEAN + +invariant note copyright: "Copyright (c) 1984-2012, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"