Major renaming, adopt the WSF_ prefix for all classes under "wsf", and simplify some class names
Removed in WGI_INPUT_STREAM, the assertion "same_last_string_reference" Copyright updates
This commit is contained in:
@@ -8,7 +8,7 @@ class
|
|||||||
REST_REQUEST_AGENT_HANDLER [C -> REST_REQUEST_HANDLER_CONTEXT]
|
REST_REQUEST_AGENT_HANDLER [C -> REST_REQUEST_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_AGENT_HANDLER [C]
|
WSF_AGENT_HANDLER [C]
|
||||||
rename
|
rename
|
||||||
execute as execute_application
|
execute as execute_application
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ deferred class
|
|||||||
REST_REQUEST_HANDLER [C -> REST_REQUEST_HANDLER_CONTEXT]
|
REST_REQUEST_HANDLER [C -> REST_REQUEST_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER [C]
|
WSF_HANDLER [C]
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ deferred class
|
|||||||
REST_REQUEST_HANDLER_CONTEXT
|
REST_REQUEST_HANDLER_CONTEXT
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER_CONTEXT
|
WSF_HANDLER_CONTEXT
|
||||||
|
|
||||||
feature -- Accept: Content-Type
|
feature -- Accept: Content-Type
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ deferred class
|
|||||||
REST_REQUEST_ROUTER [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_HANDLER_CONTEXT]
|
REST_REQUEST_ROUTER [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_ROUTER [H, C]
|
WSF_ROUTER [H, C]
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
|
copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ deferred class
|
|||||||
REST_SERVICE_I [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_HANDLER_CONTEXT]
|
REST_SERVICE_I [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ROUTED_SERVICE_I [H, C]
|
WSF_ROUTED_SERVICE_I [H, C]
|
||||||
redefine
|
redefine
|
||||||
router
|
router
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_URI_HANDLER_CONTEXT}."
|
description: "Summary description for {WSF_URI_HANDLER_CONTEXT}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
@@ -8,7 +8,7 @@ class
|
|||||||
REST_REQUEST_URI_HANDLER_CONTEXT
|
REST_REQUEST_URI_HANDLER_CONTEXT
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_HANDLER_CONTEXT
|
WSF_URI_HANDLER_CONTEXT
|
||||||
|
|
||||||
REST_REQUEST_HANDLER_CONTEXT
|
REST_REQUEST_HANDLER_CONTEXT
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ class
|
|||||||
REST_REQUEST_URI_ROUTER_I [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_URI_HANDLER_CONTEXT create make end]
|
REST_REQUEST_URI_ROUTER_I [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_URI_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_ROUTER_I [H, C]
|
WSF_URI_ROUTER_I [H, C]
|
||||||
|
|
||||||
REST_REQUEST_ROUTER [H, C]
|
REST_REQUEST_ROUTER [H, C]
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_ROUTING_HANDLER}."
|
description: "Summary description for {WSF_ROUTING_HANDLER }."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
@@ -9,7 +9,7 @@ class
|
|||||||
C -> REST_REQUEST_URI_HANDLER_CONTEXT create make end]
|
C -> REST_REQUEST_URI_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_ROUTING_HANDLER_I [H, C]
|
WSF_URI_ROUTING_HANDLER_I [H, C]
|
||||||
redefine
|
redefine
|
||||||
router,
|
router,
|
||||||
execute
|
execute
|
||||||
@@ -38,7 +38,7 @@ feature -- Execution
|
|||||||
|
|
||||||
execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
do
|
do
|
||||||
Precursor {REQUEST_URI_ROUTING_HANDLER_I} (ctx, req, res)
|
Precursor {WSF_URI_ROUTING_HANDLER_I} (ctx, req, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
execute_application (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute_application (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_URI_TEMPLATE_HANDLER_CONTEXT}."
|
description: "Summary description for {WSF_URI_TEMPLATE_HANDLER_CONTEXT}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
@@ -8,7 +8,7 @@ class
|
|||||||
REST_REQUEST_URI_TEMPLATE_HANDLER_CONTEXT
|
REST_REQUEST_URI_TEMPLATE_HANDLER_CONTEXT
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_TEMPLATE_HANDLER_CONTEXT
|
WSF_URI_TEMPLATE_HANDLER_CONTEXT
|
||||||
|
|
||||||
REST_REQUEST_HANDLER_CONTEXT
|
REST_REQUEST_HANDLER_CONTEXT
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ class
|
|||||||
REST_REQUEST_URI_TEMPLATE_ROUTER_I [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
REST_REQUEST_URI_TEMPLATE_ROUTER_I [H -> REST_REQUEST_HANDLER [C], C -> REST_REQUEST_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_TEMPLATE_ROUTER_I [H, C]
|
WSF_URI_TEMPLATE_ROUTER_I [H, C]
|
||||||
|
|
||||||
REST_REQUEST_ROUTER [H, C]
|
REST_REQUEST_ROUTER [H, C]
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_ROUTING_HANDLER}."
|
description: "Summary description for {WSF_ROUTING_HANDLER }."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
@@ -9,7 +9,7 @@ class
|
|||||||
C -> REST_REQUEST_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
C -> REST_REQUEST_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_TEMPLATE_ROUTING_HANDLER_I [H, C]
|
WSF_URI_TEMPLATE_ROUTING_HANDLER_I [H, C]
|
||||||
redefine
|
redefine
|
||||||
router,
|
router,
|
||||||
execute
|
execute
|
||||||
@@ -40,7 +40,7 @@ feature -- Execution
|
|||||||
execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
do
|
do
|
||||||
pre_execute (ctx, req, res)
|
pre_execute (ctx, req, res)
|
||||||
Precursor {REQUEST_URI_TEMPLATE_ROUTING_HANDLER_I} (ctx, req, res)
|
Precursor {WSF_URI_TEMPLATE_ROUTING_HANDLER_I} (ctx, req, res)
|
||||||
post_execute (ctx, req, res)
|
post_execute (ctx, req, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
ORDER_HANDLER [C -> REQUEST_HANDLER_CONTEXT]
|
ORDER_HANDLER [C -> WSF_HANDLER_CONTEXT]
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER [C]
|
WSF_HANDLER [C]
|
||||||
REQUEST_RESOURCE_HANDLER_HELPER [C]
|
WSF_RESOURCE_HANDLER_HELPER [C]
|
||||||
redefine
|
redefine
|
||||||
do_get,
|
do_get,
|
||||||
do_post,
|
do_post,
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ class
|
|||||||
inherit
|
inherit
|
||||||
ANY
|
ANY
|
||||||
|
|
||||||
URI_TEMPLATE_ROUTED_SERVICE
|
WSF_URI_TEMPLATE_ROUTED_SERVICE
|
||||||
|
|
||||||
ROUTED_SERVICE_HELPER
|
WSF_HANDLER_HELPER
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -21,7 +21,7 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
make
|
make
|
||||||
local
|
local
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
do
|
do
|
||||||
initialize_router
|
initialize_router
|
||||||
create s.make_and_launch_with_options (agent execute, <<["port", 9090]>>)
|
create s.make_and_launch_with_options (agent execute, <<["port", 9090]>>)
|
||||||
@@ -34,7 +34,7 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
setup_router
|
setup_router
|
||||||
local
|
local
|
||||||
order_handler: ORDER_HANDLER [REQUEST_URI_TEMPLATE_HANDLER_CONTEXT]
|
order_handler: ORDER_HANDLER [WSF_URI_TEMPLATE_HANDLER_CONTEXT]
|
||||||
do
|
do
|
||||||
create order_handler
|
create order_handler
|
||||||
router.map_with_request_methods ("/order", order_handler, <<"POST">>)
|
router.map_with_request_methods ("/order", order_handler, <<"POST">>)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ feature {NONE} -- Initialization
|
|||||||
make
|
make
|
||||||
-- Run application.
|
-- Run application.
|
||||||
local
|
local
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
do
|
do
|
||||||
create s.make_and_launch (agent execute)
|
create s.make_and_launch (agent execute)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ feature {NONE} -- Initialization
|
|||||||
make
|
make
|
||||||
-- Run application.
|
-- Run application.
|
||||||
local
|
local
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
do
|
do
|
||||||
create s.make_and_launch (agent execute)
|
create s.make_and_launch (agent execute)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ class
|
|||||||
inherit
|
inherit
|
||||||
ANY
|
ANY
|
||||||
|
|
||||||
URI_TEMPLATE_ROUTED_SERVICE
|
WSF_URI_TEMPLATE_ROUTED_SERVICE
|
||||||
|
|
||||||
ROUTED_SERVICE_HELPER
|
WSF_HANDLER_HELPER
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -22,7 +22,7 @@ feature {NONE} -- Initialization
|
|||||||
make
|
make
|
||||||
-- Initialize Current
|
-- Initialize Current
|
||||||
local
|
local
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
do
|
do
|
||||||
initialize_router
|
initialize_router
|
||||||
create s.make_and_launch (agent execute)
|
create s.make_and_launch (agent execute)
|
||||||
@@ -39,7 +39,7 @@ feature {NONE} -- Initialization
|
|||||||
setup_router
|
setup_router
|
||||||
-- Setup router
|
-- Setup router
|
||||||
local
|
local
|
||||||
www: REQUEST_FILE_SYSTEM_HANDLER [REQUEST_URI_TEMPLATE_HANDLER_CONTEXT]
|
www: WSF_FILE_SYSTEM_HANDLER [WSF_URI_TEMPLATE_HANDLER_CONTEXT]
|
||||||
do
|
do
|
||||||
router.map_agent ("/upload{?nb}", agent execute_upload)
|
router.map_agent ("/upload{?nb}", agent execute_upload)
|
||||||
|
|
||||||
@@ -84,13 +84,13 @@ feature -- Execution
|
|||||||
res.redirect_now_with_content (req.script_url ("/"), "Redirection to " + req.script_url ("/"), "text/html")
|
res.redirect_now_with_content (req.script_url ("/"), "Redirection to " + req.script_url ("/"), "text/html")
|
||||||
end
|
end
|
||||||
|
|
||||||
execute_not_found (uri: READABLE_STRING_8; ctx: REQUEST_URI_TEMPLATE_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute_not_found (uri: READABLE_STRING_8; ctx: WSF_URI_TEMPLATE_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
-- `uri' is not found, redirect to default page
|
-- `uri' is not found, redirect to default page
|
||||||
do
|
do
|
||||||
res.redirect_now_with_content (req.script_url ("/"), uri + ": not found.%NRedirection to " + req.script_url ("/"), "text/html")
|
res.redirect_now_with_content (req.script_url ("/"), uri + ": not found.%NRedirection to " + req.script_url ("/"), "text/html")
|
||||||
end
|
end
|
||||||
|
|
||||||
execute_upload (ctx: REQUEST_URI_TEMPLATE_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute_upload (ctx: WSF_URI_TEMPLATE_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
-- Upload page is requested, either GET or POST
|
-- Upload page is requested, either GET or POST
|
||||||
-- On GET display the web form to upload file, by passing ?nb=5 you can upload 5 images
|
-- On GET display the web form to upload file, by passing ?nb=5 you can upload 5 images
|
||||||
-- On POST display the uploaded files
|
-- On POST display the uploaded files
|
||||||
|
|||||||
10
library/client/http_client/license.lic
Normal file
10
library/client/http_client/license.lic
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
${NOTE_KEYWORD}
|
||||||
|
copyright: "2011-${YEAR}, 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
|
||||||
|
]"
|
||||||
@@ -13,4 +13,14 @@ feature -- Status
|
|||||||
deferred
|
deferred
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -34,4 +34,14 @@ feature -- Auth type
|
|||||||
Auth_type_any: INTEGER = 3
|
Auth_type_any: INTEGER = 3
|
||||||
Auth_type_anysafe: INTEGER = 4
|
Auth_type_anysafe: INTEGER = 4
|
||||||
|
|
||||||
|
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
|
end
|
||||||
|
|||||||
@@ -198,4 +198,14 @@ feature {NONE} -- Utilities: encoding
|
|||||||
Result.replace_substring_all ("\\", "\")
|
Result.replace_substring_all ("\\", "\")
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -101,4 +101,14 @@ feature -- Element change
|
|||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -164,4 +164,14 @@ feature {NONE} -- Implementation
|
|||||||
internal_headers: detachable ARRAYED_LIST [TUPLE [key: READABLE_STRING_8; value: READABLE_STRING_8]]
|
internal_headers: detachable ARRAYED_LIST [TUPLE [key: READABLE_STRING_8; value: READABLE_STRING_8]]
|
||||||
-- Internal cached value for the headers
|
-- Internal cached value for the headers
|
||||||
|
|
||||||
|
;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
|
end
|
||||||
|
|||||||
@@ -203,4 +203,14 @@ feature -- Change
|
|||||||
max_redirects := n
|
max_redirects := n
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -81,11 +81,11 @@ feature {NONE} -- Implementation
|
|||||||
|
|
||||||
note
|
note
|
||||||
library: "cURL: Library of reusable components for Eiffel."
|
library: "cURL: Library of reusable components for Eiffel."
|
||||||
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
356 Storke Road, Goleta, CA 93117 USA
|
5949 Hollister Ave., Goleta, CA 93117 USA
|
||||||
Telephone 805-685-1006, Fax 805-685-6869
|
Telephone 805-685-1006, Fax 805-685-6869
|
||||||
Website http://www.eiffel.com
|
Website http://www.eiffel.com
|
||||||
Customer support http://support.eiffel.com
|
Customer support http://support.eiffel.com
|
||||||
|
|||||||
@@ -27,4 +27,14 @@ feature -- Status
|
|||||||
create Result.make (a_base_url)
|
create Result.make (a_base_url)
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -253,4 +253,14 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -121,4 +121,14 @@ feature {LIBCURL_HTTP_CLIENT_REQUEST} -- Curl implementation
|
|||||||
-- cURL easy externals
|
-- cURL easy externals
|
||||||
|
|
||||||
|
|
||||||
|
;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
|
end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Eiffel Software and others"
|
copyright: "2011-${YEAR}, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Javier Velilla, Jocelyn Fiat and others"
|
copyright: "2011-${YEAR}, Javier Velilla, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Eiffel Software and others"
|
copyright: "2011-${YEAR}, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ feature -- 5xx : Server Error
|
|||||||
user_access_denied: INTEGER = 530
|
user_access_denied: INTEGER = 530
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ feature -- Status messages
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Eiffel Software and others"
|
copyright: "2011-${YEAR}, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -176,6 +176,13 @@ feature -- Builder
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
expanded_string_with_base_url (a_base_url: READABLE_STRING_8; a_ht: HASH_TABLE [detachable ANY, STRING]): STRING
|
||||||
|
-- Expanded template using variable from `a_ht'
|
||||||
|
-- with based url
|
||||||
|
do
|
||||||
|
Result := a_base_url + expanded_string (a_ht)
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Match
|
feature -- Match
|
||||||
|
|
||||||
match (a_uri: READABLE_STRING_8): detachable URI_TEMPLATE_MATCH_RESULT
|
match (a_uri: READABLE_STRING_8): detachable URI_TEMPLATE_MATCH_RESULT
|
||||||
@@ -506,7 +513,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ feature -- Access
|
|||||||
|
|
||||||
last_string: STRING
|
last_string: STRING
|
||||||
-- Last string read
|
-- Last string read
|
||||||
|
-- <Precursor>
|
||||||
|
|
||||||
last_character: CHARACTER_8
|
last_character: CHARACTER_8
|
||||||
-- Last item read
|
-- Last item read
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Eiffel Software and others"
|
copyright: "2011-${YEAR}, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -36,21 +36,27 @@ feature -- Input
|
|||||||
read_character
|
read_character
|
||||||
-- Read the next character in input stream.
|
-- Read the next character in input stream.
|
||||||
-- Make the result available in `last_character'.
|
-- Make the result available in `last_character'.
|
||||||
|
local
|
||||||
|
src: like source
|
||||||
do
|
do
|
||||||
if source.socket_ok then
|
src := source
|
||||||
source.read_character
|
if src.socket_ok then
|
||||||
last_character := source.last_character
|
src.read_character
|
||||||
|
last_character := src.last_character
|
||||||
else
|
else
|
||||||
last_character := '%U'
|
last_character := '%U'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
read_string (nb: INTEGER)
|
read_string (nb: INTEGER)
|
||||||
|
local
|
||||||
|
src: like source
|
||||||
do
|
do
|
||||||
|
src := source
|
||||||
last_string.wipe_out
|
last_string.wipe_out
|
||||||
if source.socket_ok then
|
if src.socket_ok then
|
||||||
source.read_stream_thread_aware (nb)
|
src.read_stream_thread_aware (nb)
|
||||||
last_string.append_string (source.last_string)
|
last_string.append_string (src.last_string)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -58,7 +64,7 @@ feature -- Access
|
|||||||
|
|
||||||
last_string: STRING_8
|
last_string: STRING_8
|
||||||
-- Last string read
|
-- Last string read
|
||||||
-- (Note: this query always return the same object.
|
-- (Note: this query *might* return the same object.
|
||||||
-- Therefore a clone should be used if the result
|
-- Therefore a clone should be used if the result
|
||||||
-- is to be kept beyond the next call to this feature.
|
-- is to be kept beyond the next call to this feature.
|
||||||
-- However `last_string' is not shared between input objects.)
|
-- However `last_string' is not shared between input objects.)
|
||||||
@@ -81,7 +87,7 @@ feature -- Status report
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Eiffel Software and others"
|
copyright: "2011-${YEAR}, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ feature -- Access
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ feature -- Extra names
|
|||||||
orig_path_info: STRING = "ORIG_PATH_INFO"
|
orig_path_info: STRING = "ORIG_PATH_INFO"
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -626,7 +626,7 @@ invariant
|
|||||||
path_info_identical: path_info ~ meta_string_variable ({WGI_META_NAMES}.path_info)
|
path_info_identical: path_info ~ meta_string_variable ({WGI_META_NAMES}.path_info)
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ feature -- Output operation
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ invariant
|
|||||||
empty_string_unchanged: empty_string.is_empty
|
empty_string_unchanged: empty_string.is_empty
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ feature {NONE} -- Implementation: Access
|
|||||||
-- Server output channel
|
-- Server output channel
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ invariant
|
|||||||
callback_attached: callback /= Void
|
callback_attached: callback /= Void
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ feature {NONE} -- Implementation
|
|||||||
-- Input Stream
|
-- Input Stream
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -15,16 +15,16 @@ feature -- Input
|
|||||||
|
|
||||||
read_character
|
read_character
|
||||||
-- Read the next character in input stream.
|
-- Read the next character in input stream.
|
||||||
-- Make the result available in `last_character'.
|
-- Make the result available in `last_character'
|
||||||
require
|
require
|
||||||
is_open_read: is_open_read
|
is_open_read: is_open_read
|
||||||
not_end_of_input: not end_of_input
|
not_end_of_input: not end_of_input
|
||||||
deferred
|
deferred
|
||||||
ensure
|
|
||||||
same_last_string_reference: last_string = old last_string
|
|
||||||
end
|
end
|
||||||
|
|
||||||
read_string (nb: INTEGER)
|
read_string (nb: INTEGER)
|
||||||
|
-- Read the next `nb' characters and
|
||||||
|
-- make the string result available in `last_string'
|
||||||
require
|
require
|
||||||
is_open_read: is_open_read
|
is_open_read: is_open_read
|
||||||
not_end_of_input: not end_of_input
|
not_end_of_input: not end_of_input
|
||||||
@@ -33,7 +33,6 @@ feature -- Input
|
|||||||
ensure
|
ensure
|
||||||
last_string_count_small_enough: not end_of_input implies last_string.count <= nb
|
last_string_count_small_enough: not end_of_input implies last_string.count <= nb
|
||||||
character_read: not end_of_input implies last_string.count > 0
|
character_read: not end_of_input implies last_string.count > 0
|
||||||
same_last_string_reference: last_string = old last_string
|
|
||||||
end
|
end
|
||||||
|
|
||||||
read_to_string (a_string: STRING; pos, nb: INTEGER): INTEGER
|
read_to_string (a_string: STRING; pos, nb: INTEGER): INTEGER
|
||||||
@@ -74,14 +73,14 @@ feature -- Input
|
|||||||
nb_char_read_large_enough: Result >= 0
|
nb_char_read_large_enough: Result >= 0
|
||||||
nb_char_read_small_enough: Result <= nb
|
nb_char_read_small_enough: Result <= nb
|
||||||
character_read: not end_of_input implies Result > 0
|
character_read: not end_of_input implies Result > 0
|
||||||
same_last_string_reference: last_string = old last_string
|
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
last_string: STRING_8
|
last_string: STRING_8
|
||||||
-- Last string read
|
-- Last string read.
|
||||||
-- (Note: this query always return the same object.
|
--
|
||||||
|
-- Note: this query *might* return the same object.
|
||||||
-- Therefore a clone should be used if the result
|
-- Therefore a clone should be used if the result
|
||||||
-- is to be kept beyond the next call to this feature.
|
-- is to be kept beyond the next call to this feature.
|
||||||
-- However `last_string' is not shared between file objects.)
|
-- However `last_string' is not shared between file objects.)
|
||||||
@@ -94,7 +93,7 @@ feature -- Access
|
|||||||
end
|
end
|
||||||
|
|
||||||
last_character: CHARACTER_8
|
last_character: CHARACTER_8
|
||||||
-- Last item read
|
-- Last item read.
|
||||||
require
|
require
|
||||||
is_open_read: is_open_read
|
is_open_read: is_open_read
|
||||||
not_end_of_input: not end_of_input
|
not_end_of_input: not end_of_input
|
||||||
@@ -116,7 +115,7 @@ feature -- Status report
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ feature -- Basic operations
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ feature {WGI_CONNECTOR} -- Execution
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
${NOTE_KEYWORD}
|
${NOTE_KEYWORD}
|
||||||
copyright: "2011-${YEAR}, Eiffel Software and others"
|
copyright: "2011-${YEAR}, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ note
|
|||||||
|
|
||||||
How-to:
|
How-to:
|
||||||
|
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
create s.make_and_launch (agent execute)
|
create s.make_and_launch (agent execute)
|
||||||
|
|
||||||
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
@@ -18,10 +18,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
DEFAULT_SERVICE_LAUNCHER
|
WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
DEFAULT_SERVICE_LAUNCHER_I
|
WSF_DEFAULT_SERVICE_LAUNCHER_I
|
||||||
|
|
||||||
create
|
create
|
||||||
make,
|
make,
|
||||||
@@ -6,7 +6,7 @@ note
|
|||||||
|
|
||||||
How-to:
|
How-to:
|
||||||
|
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
create s.make_and_launch (agent execute)
|
create s.make_and_launch (agent execute)
|
||||||
|
|
||||||
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
@@ -18,10 +18,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
DEFAULT_SERVICE_LAUNCHER
|
WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
DEFAULT_SERVICE_LAUNCHER_I
|
WSF_DEFAULT_SERVICE_LAUNCHER_I
|
||||||
|
|
||||||
create
|
create
|
||||||
make,
|
make,
|
||||||
@@ -11,16 +11,16 @@ note
|
|||||||
verbose: to display verbose output, useful for Nino
|
verbose: to display verbose output, useful for Nino
|
||||||
force_single_threaded: use only one thread, useful for Nino
|
force_single_threaded: use only one thread, useful for Nino
|
||||||
|
|
||||||
check DEFAULT_SERVICE_LAUNCHER_I for more documentation
|
check WSF_DEFAULT_SERVICE_LAUNCHER_I for more documentation
|
||||||
]"
|
]"
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
DEFAULT_SERVICE_LAUNCHER
|
WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
DEFAULT_SERVICE_LAUNCHER_I
|
WSF_DEFAULT_SERVICE_LAUNCHER_I
|
||||||
redefine
|
redefine
|
||||||
launchable
|
launchable
|
||||||
end
|
end
|
||||||
10
library/server/wsf/license.lic
Normal file
10
library/server/wsf/license.lic
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
${NOTE_KEYWORD}
|
||||||
|
copyright: "2011-${YEAR}, 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
|
||||||
|
]"
|
||||||
@@ -5,13 +5,13 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
ROUTED_SERVICE
|
WSF_ROUTED_SERVICE
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ROUTED_SERVICE_I [REQUEST_HANDLER [REQUEST_HANDLER_CONTEXT], REQUEST_HANDLER_CONTEXT]
|
WSF_ROUTED_SERVICE_I [WSF_HANDLER [WSF_HANDLER_CONTEXT], WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_FORMAT_UTILITY}."
|
description: "Summary description for {WSF_FORMAT_UTILITY }."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_FORMAT_UTILITY
|
WSF_FORMAT_UTILITY
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {ROUTED_SERVICE_HELPER}."
|
description: "[
|
||||||
author: ""
|
Provides a few helpful feature to respond predefined message to the client
|
||||||
|
]"
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
ROUTED_SERVICE_HELPER
|
WSF_HANDLER_HELPER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ANY
|
ANY
|
||||||
@@ -83,7 +84,7 @@ feature -- Helper
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
note
|
note
|
||||||
description: "[
|
description: "[
|
||||||
Summary description for REQUEST_HANDLER_ROUTES_RECORDER.
|
Summary description for WSF_HANDLER_ROUTES_RECORDER.
|
||||||
|
|
||||||
You can inherit from this class from any REQUEST_HANDLER and redefine `on_handler_mapped'
|
You can inherit from this class from any WSF_HANDLER and redefine `on_handler_mapped'
|
||||||
to record the available routes if your handler needs it.
|
to record the available routes if your handler needs it.
|
||||||
]"
|
]"
|
||||||
author: ""
|
author: ""
|
||||||
@@ -10,14 +10,14 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
REQUEST_HANDLER_ROUTES_RECORDER
|
WSF_HANDLER_ROUTES_RECORDER
|
||||||
|
|
||||||
feature {REQUEST_HANDLER} -- Routes access
|
feature {WSF_HANDLER} -- Routes access
|
||||||
|
|
||||||
available_routes: detachable LIST [TUPLE [resource: READABLE_STRING_8; rqst_methods: detachable ARRAY [READABLE_STRING_8]]]
|
available_routes: detachable LIST [TUPLE [resource: READABLE_STRING_8; rqst_methods: detachable ARRAY [READABLE_STRING_8]]]
|
||||||
-- Available routes
|
-- Available routes
|
||||||
|
|
||||||
feature {REQUEST_ROUTER} -- Routes change
|
feature {WSF_ROUTER} -- Routes change
|
||||||
|
|
||||||
on_handler_mapped (a_resource: READABLE_STRING_8; a_rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
on_handler_mapped (a_resource: READABLE_STRING_8; a_rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
||||||
local
|
local
|
||||||
@@ -32,7 +32,7 @@ feature {REQUEST_ROUTER} -- Routes change
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -5,7 +5,7 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_RESOURCE_HANDLER_HELPER [C -> REQUEST_HANDLER_CONTEXT]
|
WSF_RESOURCE_HANDLER_HELPER [C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
feature -- Execute template
|
feature -- Execute template
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ feature -- Handle responses
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,24 +1,24 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {DEFAULT_URI_ROUTED_SERVICE}."
|
description: "Summary description for WSF_URI_ROUTED_SERVICE."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
URI_ROUTED_SERVICE
|
WSF_URI_ROUTED_SERVICE
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ROUTED_SERVICE_I [REQUEST_HANDLER [REQUEST_URI_HANDLER_CONTEXT], REQUEST_URI_HANDLER_CONTEXT]
|
WSF_ROUTED_SERVICE_I [WSF_HANDLER [WSF_URI_HANDLER_CONTEXT], WSF_URI_HANDLER_CONTEXT]
|
||||||
redefine
|
redefine
|
||||||
router
|
router
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Router
|
feature -- Router
|
||||||
|
|
||||||
router: REQUEST_URI_ROUTER
|
router: WSF_URI_ROUTER
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -5,10 +5,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_ROUTER
|
WSF_URI_ROUTER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_ROUTER_I [REQUEST_HANDLER [REQUEST_URI_HANDLER_CONTEXT], REQUEST_URI_HANDLER_CONTEXT]
|
WSF_URI_ROUTER_I [WSF_HANDLER [WSF_URI_HANDLER_CONTEXT], WSF_URI_HANDLER_CONTEXT]
|
||||||
redefine
|
redefine
|
||||||
map_agent_with_request_methods
|
map_agent_with_request_methods
|
||||||
end
|
end
|
||||||
@@ -17,17 +17,17 @@ create
|
|||||||
|
|
||||||
feature -- Mapping
|
feature -- Mapping
|
||||||
|
|
||||||
map_agent_with_request_methods (a_id: READABLE_STRING_8; a_action: PROCEDURE [ANY, TUPLE [ctx: REQUEST_URI_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE]];
|
map_agent_with_request_methods (a_id: READABLE_STRING_8; a_action: PROCEDURE [ANY, TUPLE [ctx: WSF_URI_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE]];
|
||||||
rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
||||||
local
|
local
|
||||||
h: REQUEST_AGENT_HANDLER [REQUEST_URI_HANDLER_CONTEXT]
|
h: WSF_AGENT_HANDLER [WSF_URI_HANDLER_CONTEXT]
|
||||||
do
|
do
|
||||||
create h.make (a_action)
|
create h.make (a_action)
|
||||||
map_with_request_methods (a_id, h, rqst_methods)
|
map_with_request_methods (a_id, h, rqst_methods)
|
||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -5,10 +5,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_ROUTING_HANDLER
|
WSF_URI_ROUTING_HANDLER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_ROUTING_HANDLER_I [REQUEST_HANDLER [REQUEST_URI_HANDLER_CONTEXT], REQUEST_URI_HANDLER_CONTEXT]
|
WSF_URI_ROUTING_HANDLER_I [WSF_HANDLER [WSF_URI_HANDLER_CONTEXT], WSF_URI_HANDLER_CONTEXT]
|
||||||
redefine
|
redefine
|
||||||
router
|
router
|
||||||
end
|
end
|
||||||
@@ -18,10 +18,10 @@ create
|
|||||||
|
|
||||||
feature {NONE} -- Routing
|
feature {NONE} -- Routing
|
||||||
|
|
||||||
router: REQUEST_URI_ROUTER
|
router: WSF_URI_ROUTER
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_URI_HANDLER_CONTEXT}."
|
description: "Summary description for {WSF_URI_HANDLER_CONTEXT}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_HANDLER_CONTEXT
|
WSF_URI_HANDLER_CONTEXT
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER_CONTEXT
|
WSF_HANDLER_CONTEXT
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -33,7 +33,7 @@ feature -- Query
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_URI_ROUTER}."
|
description: "Summary description for {WSF_URI_ROUTER}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_ROUTER_I [H -> REQUEST_HANDLER [C], C -> REQUEST_URI_HANDLER_CONTEXT create make end]
|
WSF_URI_ROUTER_I [H -> WSF_HANDLER [C], C -> WSF_URI_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_ROUTER [H, C]
|
WSF_ROUTER [H, C]
|
||||||
|
|
||||||
create
|
create
|
||||||
make,
|
make,
|
||||||
@@ -234,7 +234,7 @@ feature {NONE} -- Default: implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_ROUTING_HANDLER}."
|
description: "Summary description for {WSF_ROUTING_HANDLER }."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_ROUTING_HANDLER_I [H -> REQUEST_HANDLER [C],
|
WSF_URI_ROUTING_HANDLER_I [H -> WSF_HANDLER [C],
|
||||||
C -> REQUEST_URI_HANDLER_CONTEXT create make end]
|
C -> WSF_URI_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_ROUTING_HANDLER [H, C]
|
WSF_ROUTING_HANDLER [H, C]
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -23,10 +23,10 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
feature {NONE} -- Routing
|
feature {NONE} -- Routing
|
||||||
|
|
||||||
router: REQUEST_URI_ROUTER_I [H, C]
|
router: WSF_URI_ROUTER_I [H, C]
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -5,20 +5,20 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
URI_TEMPLATE_ROUTED_SERVICE
|
WSF_URI_TEMPLATE_ROUTED_SERVICE
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ROUTED_SERVICE_I [REQUEST_HANDLER [REQUEST_URI_TEMPLATE_HANDLER_CONTEXT], REQUEST_URI_TEMPLATE_HANDLER_CONTEXT]
|
WSF_ROUTED_SERVICE_I [WSF_HANDLER [WSF_URI_TEMPLATE_HANDLER_CONTEXT], WSF_URI_TEMPLATE_HANDLER_CONTEXT]
|
||||||
redefine
|
redefine
|
||||||
router
|
router
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Router
|
feature -- Router
|
||||||
|
|
||||||
router: REQUEST_URI_TEMPLATE_ROUTER
|
router: WSF_URI_TEMPLATE_ROUTER
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -5,10 +5,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_TEMPLATE_ROUTER
|
WSF_URI_TEMPLATE_ROUTER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_TEMPLATE_ROUTER_I [REQUEST_HANDLER [REQUEST_URI_TEMPLATE_HANDLER_CONTEXT], REQUEST_URI_TEMPLATE_HANDLER_CONTEXT]
|
WSF_URI_TEMPLATE_ROUTER_I [WSF_HANDLER [WSF_URI_TEMPLATE_HANDLER_CONTEXT], WSF_URI_TEMPLATE_HANDLER_CONTEXT]
|
||||||
redefine
|
redefine
|
||||||
map_agent_with_request_methods
|
map_agent_with_request_methods
|
||||||
end
|
end
|
||||||
@@ -19,17 +19,17 @@ create
|
|||||||
|
|
||||||
feature -- Mapping
|
feature -- Mapping
|
||||||
|
|
||||||
map_agent_with_request_methods (a_id: READABLE_STRING_8; a_action: PROCEDURE [ANY, TUPLE [ctx: REQUEST_URI_TEMPLATE_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE]];
|
map_agent_with_request_methods (a_id: READABLE_STRING_8; a_action: PROCEDURE [ANY, TUPLE [ctx: WSF_URI_TEMPLATE_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE]];
|
||||||
rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
||||||
local
|
local
|
||||||
h: REQUEST_AGENT_HANDLER [REQUEST_URI_TEMPLATE_HANDLER_CONTEXT]
|
h: WSF_AGENT_HANDLER [WSF_URI_TEMPLATE_HANDLER_CONTEXT]
|
||||||
do
|
do
|
||||||
create h.make (a_action)
|
create h.make (a_action)
|
||||||
map_with_request_methods (a_id, h, rqst_methods)
|
map_with_request_methods (a_id, h, rqst_methods)
|
||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -5,10 +5,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_TEMPLATE_ROUTING_HANDLER
|
WSF_URI_TEMPLATE_ROUTING_HANDLER
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_URI_TEMPLATE_ROUTING_HANDLER_I [REQUEST_HANDLER [REQUEST_URI_TEMPLATE_HANDLER_CONTEXT], REQUEST_URI_TEMPLATE_HANDLER_CONTEXT]
|
WSF_URI_TEMPLATE_ROUTING_HANDLER_I [WSF_HANDLER [WSF_URI_TEMPLATE_HANDLER_CONTEXT], WSF_URI_TEMPLATE_HANDLER_CONTEXT]
|
||||||
redefine
|
redefine
|
||||||
router
|
router
|
||||||
end
|
end
|
||||||
@@ -18,10 +18,10 @@ create
|
|||||||
|
|
||||||
feature {NONE} -- Routing
|
feature {NONE} -- Routing
|
||||||
|
|
||||||
router: REQUEST_URI_TEMPLATE_ROUTER
|
router: WSF_URI_TEMPLATE_ROUTER
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_URI_TEMPLATE_HANDLER_CONTEXT}."
|
description: "Summary description for {WSF_URI_TEMPLATE_HANDLER_CONTEXT}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_TEMPLATE_HANDLER_CONTEXT
|
WSF_URI_TEMPLATE_HANDLER_CONTEXT
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER_CONTEXT
|
WSF_HANDLER_CONTEXT
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -48,7 +48,7 @@ feature -- Query
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_URI_TEMPLATE_ROUTER}."
|
description: "Summary description for {WSF_URI_TEMPLATE_ROUTER}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_TEMPLATE_ROUTER_I [H -> REQUEST_HANDLER [C], C -> REQUEST_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
WSF_URI_TEMPLATE_ROUTER_I [H -> WSF_HANDLER [C], C -> WSF_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_ROUTER [H, C]
|
WSF_ROUTER [H, C]
|
||||||
|
|
||||||
create
|
create
|
||||||
make,
|
make,
|
||||||
@@ -106,7 +106,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
feature {ROUTED_SERVICE_I} -- Handler
|
feature {WSF_ROUTED_SERVICE_I} -- Handler
|
||||||
|
|
||||||
handler (req: WSF_REQUEST): detachable TUPLE [handler: attached like default_handler; context: like default_handler_context]
|
handler (req: WSF_REQUEST): detachable TUPLE [handler: attached like default_handler; context: like default_handler_context]
|
||||||
local
|
local
|
||||||
@@ -128,7 +128,7 @@ feature {ROUTED_SERVICE_I} -- Handler
|
|||||||
if is_matching_request_methods (l_req_method, l_info.request_methods) then
|
if is_matching_request_methods (l_req_method, l_info.request_methods) then
|
||||||
t := l_info.resource
|
t := l_info.resource
|
||||||
if
|
if
|
||||||
attached {REQUEST_ROUTING_HANDLER [H, C]} l_info.handler as rah and then
|
attached {WSF_ROUTING_HANDLER [H, C]} l_info.handler as rah and then
|
||||||
p.starts_with (t)
|
p.starts_with (t)
|
||||||
then
|
then
|
||||||
create l_res.make_empty
|
create l_res.make_empty
|
||||||
@@ -211,7 +211,7 @@ feature {NONE} -- Default: implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_ROUTING_HANDLER}."
|
description: "Summary description for {WSF_ROUTING_HANDLER }."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_URI_TEMPLATE_ROUTING_HANDLER_I [H -> REQUEST_HANDLER [C],
|
WSF_URI_TEMPLATE_ROUTING_HANDLER_I [H -> WSF_HANDLER [C],
|
||||||
C -> REQUEST_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
C -> WSF_URI_TEMPLATE_HANDLER_CONTEXT create make end]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_ROUTING_HANDLER [H, C]
|
WSF_ROUTING_HANDLER [H, C]
|
||||||
|
|
||||||
create
|
create
|
||||||
make,
|
make,
|
||||||
@@ -31,10 +31,10 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
feature {NONE} -- Routing
|
feature {NONE} -- Routing
|
||||||
|
|
||||||
router: REQUEST_URI_TEMPLATE_ROUTER_I [H, C]
|
router: WSF_URI_TEMPLATE_ROUTER_I [H, C]
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for REQUEST_AGENT_HANDLER."
|
description: "Summary description for WSF_AGENT_HANDLER."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_AGENT_HANDLER [C -> REQUEST_HANDLER_CONTEXT]
|
WSF_AGENT_HANDLER [C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER [C]
|
WSF_HANDLER [C]
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -32,7 +32,7 @@ feature -- Execution
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -6,10 +6,10 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
class
|
class
|
||||||
REQUEST_FILE_SYSTEM_HANDLER [C -> REQUEST_HANDLER_CONTEXT]
|
WSF_FILE_SYSTEM_HANDLER [C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER [C]
|
WSF_HANDLER [C]
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -336,7 +336,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,16 +1,22 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_HANDLER}."
|
description: "[
|
||||||
author: ""
|
Request handler object which is called by a WSF_ROUTER
|
||||||
|
An handler should implement the method
|
||||||
|
|
||||||
|
execute (ctx, req, res)
|
||||||
|
|
||||||
|
The class is generic, this way one can use a custom WSF_HANDLER_CONTEXT if needed
|
||||||
|
]"
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
REQUEST_HANDLER [C -> REQUEST_HANDLER_CONTEXT]
|
WSF_HANDLER [C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ANY
|
ANY
|
||||||
|
|
||||||
ROUTED_SERVICE_HELPER
|
WSF_HANDLER_HELPER
|
||||||
export
|
export
|
||||||
{NONE} all
|
{NONE} all
|
||||||
end
|
end
|
||||||
@@ -65,7 +71,7 @@ feature -- Execution: report
|
|||||||
result_attached: Result /= Void
|
result_attached: Result /= Void
|
||||||
end
|
end
|
||||||
|
|
||||||
feature {REQUEST_ROUTER} -- Routes change
|
feature {WSF_ROUTER} -- Routes change
|
||||||
|
|
||||||
on_handler_mapped (a_resource: READABLE_STRING_8; a_rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
on_handler_mapped (a_resource: READABLE_STRING_8; a_rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
||||||
-- Callback called when a router map a route to Current handler
|
-- Callback called when a router map a route to Current handler
|
||||||
@@ -73,7 +79,7 @@ feature {REQUEST_ROUTER} -- Routes change
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_HANDLER_CONTEXT}."
|
description: "[
|
||||||
|
|
||||||
|
]"
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
REQUEST_HANDLER_CONTEXT
|
WSF_HANDLER_CONTEXT
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ANY
|
ANY
|
||||||
|
|
||||||
REQUEST_FORMAT_UTILITY
|
WSF_FORMAT_UTILITY
|
||||||
export
|
export
|
||||||
{NONE} all
|
{NONE} all
|
||||||
end
|
end
|
||||||
@@ -248,7 +250,7 @@ feature -- Parameter
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {ROUTED_SERVICE}."
|
description: "Summary description for {WSF_ROUTED_SERVICE}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
ROUTED_SERVICE_I [H -> REQUEST_HANDLER [C], C -> REQUEST_HANDLER_CONTEXT]
|
WSF_ROUTED_SERVICE_I [H -> WSF_HANDLER [C], C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
feature -- Setup
|
feature -- Setup
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ feature -- Setup
|
|||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
router: REQUEST_ROUTER [H, C]
|
router: WSF_ROUTER [H, C]
|
||||||
-- Request router
|
-- Request router
|
||||||
|
|
||||||
feature -- Execution
|
feature -- Execution
|
||||||
@@ -50,7 +50,7 @@ feature -- Execution
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_ROUTER}."
|
description: "Summary description for {WSF_ROUTER}."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
REQUEST_ROUTER [H -> REQUEST_HANDLER [C], C -> REQUEST_HANDLER_CONTEXT]
|
WSF_ROUTER [H -> WSF_HANDLER [C], C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
ITERABLE [TUPLE [handler: H; resource: READABLE_STRING_8; request_methods: detachable ARRAY [READABLE_STRING_8]]]
|
ITERABLE [TUPLE [handler: H; resource: READABLE_STRING_8; request_methods: detachable ARRAY [READABLE_STRING_8]]]
|
||||||
@@ -66,7 +66,7 @@ feature -- Mapping
|
|||||||
map_agent_with_request_methods (a_resource: READABLE_STRING_8; a_action: PROCEDURE [ANY, TUPLE [ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE]];
|
map_agent_with_request_methods (a_resource: READABLE_STRING_8; a_action: PROCEDURE [ANY, TUPLE [ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE]];
|
||||||
rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
rqst_methods: detachable ARRAY [READABLE_STRING_8])
|
||||||
local
|
local
|
||||||
rah: REQUEST_AGENT_HANDLER [C]
|
rah: WSF_AGENT_HANDLER [C]
|
||||||
do
|
do
|
||||||
create rah.make (a_action)
|
create rah.make (a_action)
|
||||||
if attached {H} rah as h then
|
if attached {H} rah as h then
|
||||||
@@ -138,7 +138,7 @@ feature -- status report
|
|||||||
across
|
across
|
||||||
Current as curs
|
Current as curs
|
||||||
loop
|
loop
|
||||||
if attached {REQUEST_ROUTING_HANDLER [H, C]} curs.item.handler as rh then
|
if attached {WSF_ROUTING_HANDLER [H, C]} curs.item.handler as rh then
|
||||||
Result := Result + rh.count + 1 --| +1 for the handler itself
|
Result := Result + rh.count + 1 --| +1 for the handler itself
|
||||||
else
|
else
|
||||||
Result := Result + 1
|
Result := Result + 1
|
||||||
@@ -153,7 +153,7 @@ feature -- Traversing
|
|||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
feature {ROUTED_SERVICE_I} -- Handler
|
feature {WSF_ROUTED_SERVICE_I} -- Handler
|
||||||
|
|
||||||
source_uri (req: WSF_REQUEST): READABLE_STRING_32
|
source_uri (req: WSF_REQUEST): READABLE_STRING_32
|
||||||
-- URI to use to find handler.
|
-- URI to use to find handler.
|
||||||
@@ -236,7 +236,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
note
|
note
|
||||||
description: "Summary description for {REQUEST_ROUTING_HANDLER}."
|
description: "Summary description for {WSF_ROUTING_HANDLER }."
|
||||||
author: ""
|
author: ""
|
||||||
date: "$Date$"
|
date: "$Date$"
|
||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
REQUEST_ROUTING_HANDLER [H -> REQUEST_HANDLER [C],
|
WSF_ROUTING_HANDLER [H -> WSF_HANDLER [C],
|
||||||
C -> REQUEST_HANDLER_CONTEXT]
|
C -> WSF_HANDLER_CONTEXT]
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
REQUEST_HANDLER [C]
|
WSF_HANDLER [C]
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ feature -- Execution
|
|||||||
|
|
||||||
feature {NONE} -- Routing
|
feature {NONE} -- Routing
|
||||||
|
|
||||||
router: REQUEST_ROUTER [H, C]
|
router: WSF_ROUTER [H, C]
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ feature -- Mapping
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
note
|
|
||||||
description: "Summary description for {WSF_META_NAMES}."
|
|
||||||
author: ""
|
|
||||||
date: "$Date$"
|
|
||||||
revision: "$Revision$"
|
|
||||||
|
|
||||||
class
|
|
||||||
CGI_META_NAMES
|
|
||||||
|
|
||||||
inherit
|
|
||||||
WGI_META_NAMES
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -4,7 +4,7 @@ note
|
|||||||
|
|
||||||
How-to:
|
How-to:
|
||||||
|
|
||||||
s: DEFAULT_SERVICE_LAUNCHER
|
s: WSF_DEFAULT_SERVICE_LAUNCHER
|
||||||
create s.make_and_launch (agent execute)
|
create s.make_and_launch (agent execute)
|
||||||
|
|
||||||
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
@@ -29,7 +29,7 @@ note
|
|||||||
revision: "$Revision$"
|
revision: "$Revision$"
|
||||||
|
|
||||||
deferred class
|
deferred class
|
||||||
DEFAULT_SERVICE_LAUNCHER_I
|
WSF_DEFAULT_SERVICE_LAUNCHER_I
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
WSF_SERVICE
|
WSF_SERVICE
|
||||||
@@ -126,7 +126,7 @@ invariant
|
|||||||
connector_attached: connector /= Void
|
connector_attached: connector /= Void
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
@@ -56,7 +56,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ invariant
|
|||||||
string_values_not_empty: string_values.count >= 1
|
string_values_not_empty: string_values.count >= 1
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -150,4 +150,14 @@ feature -- Visitor
|
|||||||
vis.process_table (Current)
|
vis.process_table (Current)
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -214,4 +214,14 @@ feature -- Element change
|
|||||||
tmp_basename := n
|
tmp_basename := n
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -207,4 +207,14 @@ feature {NONE} -- Implementation: output
|
|||||||
f.close
|
f.close
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -248,4 +248,14 @@ feature {NONE} -- Implementation: output
|
|||||||
f.close
|
f.close
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -23,4 +23,14 @@ feature {NONE} -- Implementation
|
|||||||
content_type := {HTTP_MIME_TYPES}.application_force_download
|
content_type := {HTTP_MIME_TYPES}.application_force_download
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -168,4 +168,14 @@ feature -- Output
|
|||||||
res.put_string (s)
|
res.put_string (s)
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -102,4 +102,14 @@ feature -- Output
|
|||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ feature -- Visitor
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ create
|
|||||||
|
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -160,4 +160,14 @@ feature {NONE} -- Implementation
|
|||||||
create {UTF8_URL_ENCODER} Result
|
create {UTF8_URL_ENCODER} Result
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@@ -61,4 +61,14 @@ feature -- Execution
|
|||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user