Implemented support for base url in httpd connector.

This commit is contained in:
2015-03-25 22:22:57 +01:00
parent b4a9c92ffc
commit 7d2ce8a77f
19 changed files with 168 additions and 198 deletions

View File

@@ -79,7 +79,7 @@ feature {NONE} -- Initialization
feature -- Execution
update_configuration (cfg: separate HTTPD_CONFIGURATION)
update_configuration (cfg: like connector.configuration)
do
if single_threaded then
cfg.set_force_single_threaded (True)

View File

@@ -1,27 +0,0 @@
note
description: "Summary description for {WSF_URI_ROUTED_SERVICE}."
author: ""
date: "$Date$"
revision: "$Revision$"
deferred class
WSF_URI_ROUTED_SERVICE
obsolete "Inherit from WSF_ROUTED_SERVICE and WSF_URI_HELPER_FOR_ROUTED_SERVICE [2013-mar-19]"
inherit
WSF_ROUTED_SERVICE
WSF_URI_HELPER_FOR_ROUTED_SERVICE
note
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, 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

View File

@@ -1,27 +0,0 @@
note
description: "Summary description for {WSF_URI_TEMPLATE_ROUTED_SERVICE}."
author: ""
date: "$Date$"
revision: "$Revision$"
deferred class
WSF_URI_TEMPLATE_ROUTED_SERVICE
obsolete "Inherit from WSF_ROUTED_SERVICE and WSF_URI_TEMPLATE_HELPER_FOR_ROUTED_SERVICE [2013-mar-19]"
inherit
WSF_ROUTED_SERVICE
WSF_URI_TEMPLATE_HELPER_FOR_ROUTED_SERVICE
note
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, 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

View File

@@ -8,7 +8,7 @@ note
revision: "$Revision$"
deferred class
WSF_RESPONSE_SERVICE
WSF_RESPONSE_SERVICE [G -> WSF_EXECUTION create make end]
inherit
WSF_SERVICE
@@ -29,7 +29,7 @@ feature -- Execution
end
note
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software

View File

@@ -34,9 +34,6 @@ note
deferred class
WSF_SERVICE_LAUNCHER [G -> WSF_EXECUTION create make end]
inherit
WSF_TO_WGI_SERVICE
feature {NONE} -- Initialization
frozen make (a_options: like options)

View File

@@ -15,7 +15,8 @@ inherit
redefine
make,
execute,
clean
clean,
is_valid_end_of_execution
end
--create
@@ -47,8 +48,24 @@ feature {NONE} -- Access
response: WSF_RESPONSE
-- Access to output stream, back to the client.
feature -- Execution
execute
-- Execute Current `request',
-- getting data from `request'
-- and response to client via `response'.
deferred
end
feature -- Status report
is_valid_end_of_execution: BOOLEAN
-- <Precursor>
do
--| Note: overwrite precursor implementation
Result := Precursor and response.status_is_set
end
message_writable: BOOLEAN
do
Result := response.message_writable
@@ -77,16 +94,6 @@ feature -- Helpers
response.put_error (err)
end
feature -- Execution
execute
-- Execute Current `request',
-- getting data from `request'
-- and response to client via `response'.
deferred
ensure then
status_is_set: response.status_is_set
end
feature -- Cleaning
@@ -97,6 +104,11 @@ feature -- Cleaning
request.destroy
end
invariant
wsf_request_set: request /= Void
wsf_response_set: response /= Void
note
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"