rename application' as service'
This commit is contained in:
@@ -14,9 +14,9 @@ create
|
|||||||
|
|
||||||
feature {NONE} -- Initialization
|
feature {NONE} -- Initialization
|
||||||
|
|
||||||
make (a_app: like application)
|
make (a_service: like service)
|
||||||
do
|
do
|
||||||
application := a_app
|
service := a_service
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
@@ -29,7 +29,7 @@ feature -- Access
|
|||||||
|
|
||||||
feature {NONE} -- Access
|
feature {NONE} -- Access
|
||||||
|
|
||||||
application: WGI_SERVICE
|
service: WGI_SERVICE
|
||||||
-- Gateway Service
|
-- Gateway Service
|
||||||
|
|
||||||
feature -- Execution
|
feature -- Execution
|
||||||
@@ -43,7 +43,7 @@ feature -- Execution
|
|||||||
if not rescued then
|
if not rescued then
|
||||||
create req.make ((create {EXECUTION_ENVIRONMENT}).starting_environment_variables, create {WGI_CGI_INPUT_STREAM}.make, Current)
|
create req.make ((create {EXECUTION_ENVIRONMENT}).starting_environment_variables, create {WGI_CGI_INPUT_STREAM}.make, Current)
|
||||||
create res.make (create {WGI_CGI_OUTPUT_STREAM}.make)
|
create res.make (create {WGI_CGI_OUTPUT_STREAM}.make)
|
||||||
application.execute (req, res)
|
service.execute (req, res)
|
||||||
else
|
else
|
||||||
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
||||||
if res /= Void then
|
if res /= Void then
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ create
|
|||||||
|
|
||||||
feature {NONE} -- Initialization
|
feature {NONE} -- Initialization
|
||||||
|
|
||||||
make (a_app: like application)
|
make (a_service: like service)
|
||||||
do
|
do
|
||||||
application := a_app
|
service := a_service
|
||||||
create fcgi.make
|
create fcgi.make
|
||||||
create {WGI_LIBFCGI_INPUT_STREAM} input.make (fcgi)
|
create {WGI_LIBFCGI_INPUT_STREAM} input.make (fcgi)
|
||||||
create {WGI_LIBFCGI_OUTPUT_STREAM} output.make (fcgi)
|
create {WGI_LIBFCGI_OUTPUT_STREAM} output.make (fcgi)
|
||||||
@@ -34,7 +34,7 @@ feature -- Access
|
|||||||
|
|
||||||
feature {NONE} -- Access
|
feature {NONE} -- Access
|
||||||
|
|
||||||
application: WGI_SERVICE
|
service: WGI_SERVICE
|
||||||
-- Gateway Service
|
-- Gateway Service
|
||||||
|
|
||||||
feature -- Server
|
feature -- Server
|
||||||
@@ -64,7 +64,7 @@ feature -- Execution
|
|||||||
if not rescued then
|
if not rescued then
|
||||||
create req.make (vars, a_input, Current)
|
create req.make (vars, a_input, Current)
|
||||||
create res.make (a_output)
|
create res.make (a_output)
|
||||||
application.execute (req, res)
|
service.execute (req, res)
|
||||||
else
|
else
|
||||||
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
||||||
if res /= Void then
|
if res /= Void then
|
||||||
|
|||||||
@@ -16,21 +16,21 @@ create
|
|||||||
|
|
||||||
feature {NONE} -- Initialization
|
feature {NONE} -- Initialization
|
||||||
|
|
||||||
make (a_app: like application)
|
make (a_service: like service)
|
||||||
local
|
local
|
||||||
cfg: HTTP_SERVER_CONFIGURATION
|
cfg: HTTP_SERVER_CONFIGURATION
|
||||||
do
|
do
|
||||||
application := a_app
|
service := a_service
|
||||||
|
|
||||||
create cfg.make
|
create cfg.make
|
||||||
create server.make (cfg)
|
create server.make (cfg)
|
||||||
end
|
end
|
||||||
|
|
||||||
make_with_base (a_app: like application; a_base: like base)
|
make_with_base (a_service: like service; a_base: like base)
|
||||||
require
|
require
|
||||||
a_base_starts_with_slash: (a_base /= Void and then not a_base.is_empty) implies a_base.starts_with ("/")
|
a_base_starts_with_slash: (a_base /= Void and then not a_base.is_empty) implies a_base.starts_with ("/")
|
||||||
do
|
do
|
||||||
make (a_app)
|
make (a_service)
|
||||||
set_base (a_base)
|
set_base (a_base)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ feature -- Access
|
|||||||
|
|
||||||
feature {NONE} -- Access
|
feature {NONE} -- Access
|
||||||
|
|
||||||
application: WGI_SERVICE
|
service: WGI_SERVICE
|
||||||
-- Gateway Service
|
-- Gateway Service
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
@@ -124,7 +124,7 @@ feature -- Server
|
|||||||
create req.make (env, create {WGI_NINO_INPUT_STREAM}.make (a_socket), Current)
|
create req.make (env, create {WGI_NINO_INPUT_STREAM}.make (a_socket), Current)
|
||||||
create res.make (create {WGI_NINO_OUTPUT_STREAM}.make (a_socket))
|
create res.make (create {WGI_NINO_OUTPUT_STREAM}.make (a_socket))
|
||||||
req.set_meta_string_variable ("RAW_HEADER_DATA", a_headers_text)
|
req.set_meta_string_variable ("RAW_HEADER_DATA", a_headers_text)
|
||||||
application.execute (req, res)
|
service.execute (req, res)
|
||||||
else
|
else
|
||||||
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
||||||
if res /= Void then
|
if res /= Void then
|
||||||
|
|||||||
Reference in New Issue
Block a user