Implemented WSF_RESPONSE.put_error (...) and related
Added WSF_RESPONSE.put_character Renamed WGI_OUTPUT_STREAM.put_character_8 as put_character to follow style of put_string (and not put_string_8) Refactored the WSF_DEFAULT_SERVICE_LAUNCHER Added WSF_DEFAULT_SERVICE to be more user friendly Splitted the wsf/default/ libraries to have wsf/connector/... and being able to handle more than one connector in the same application
This commit is contained in:
@@ -20,8 +20,8 @@ feature {NONE} -- Initialization
|
||||
do
|
||||
service := a_service
|
||||
create fcgi.make
|
||||
create {WGI_LIBFCGI_INPUT_STREAM} input.make (fcgi)
|
||||
create {WGI_LIBFCGI_OUTPUT_STREAM} output.make (fcgi)
|
||||
create input.make (fcgi)
|
||||
create output.make (fcgi)
|
||||
end
|
||||
|
||||
feature -- Access
|
||||
@@ -63,7 +63,7 @@ feature -- Execution
|
||||
do
|
||||
if not rescued then
|
||||
create req.make (vars, a_input, Current)
|
||||
create res.make (a_output)
|
||||
create res.make (a_output, a_output)
|
||||
service.execute (req, res)
|
||||
else
|
||||
if attached (create {EXCEPTION_MANAGER}).last_exception as e and then attached e.exception_trace as l_trace then
|
||||
@@ -84,10 +84,10 @@ feature -- Execution
|
||||
|
||||
feature -- Input/Output
|
||||
|
||||
input: WGI_INPUT_STREAM
|
||||
input: WGI_LIBFCGI_INPUT_STREAM
|
||||
-- Input from client (from httpd server via FCGI)
|
||||
|
||||
output: WGI_OUTPUT_STREAM
|
||||
output: WGI_LIBFCGI_OUTPUT_STREAM
|
||||
-- Output to client (via httpd server/fcgi)
|
||||
|
||||
feature {NONE} -- Implementation
|
||||
|
||||
@@ -11,6 +11,8 @@ class
|
||||
inherit
|
||||
WGI_OUTPUT_STREAM
|
||||
|
||||
WGI_ERROR_STREAM
|
||||
|
||||
HTTP_STATUS_CODE_MESSAGES
|
||||
export
|
||||
{NONE} all
|
||||
@@ -68,6 +70,12 @@ feature -- Basic operation
|
||||
fcgi.put_string (s)
|
||||
end
|
||||
|
||||
put_character (c: CHARACTER_8)
|
||||
-- Send `c' to http client
|
||||
do
|
||||
fcgi.put_string (c.out)
|
||||
end
|
||||
|
||||
feature -- Basic operations
|
||||
|
||||
flush
|
||||
@@ -75,6 +83,13 @@ feature -- Basic operations
|
||||
do
|
||||
end
|
||||
|
||||
feature -- Error
|
||||
|
||||
put_error (a_message: READABLE_STRING_8)
|
||||
do
|
||||
fcgi.put_error (a_message)
|
||||
end
|
||||
|
||||
feature {NONE} -- Implementation
|
||||
|
||||
fcgi: FCGI
|
||||
|
||||
Reference in New Issue
Block a user