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:
@@ -35,10 +35,12 @@ feature {NONE} -- Events
|
||||
app: NINO_SERVICE
|
||||
wt: WORKER_THREAD
|
||||
e: EXECUTION_ENVIRONMENT
|
||||
w2w: WSF_TO_WGI_SERVICE
|
||||
do
|
||||
port_number := 0
|
||||
base_url := "test/"
|
||||
create app.make_custom (agent wgi_execute, base_url)
|
||||
create w2w.make_from_service (Current)
|
||||
create app.make_custom (w2w, base_url)
|
||||
web_app := app
|
||||
|
||||
create wt.make (agent app.listen (port_number))
|
||||
@@ -116,7 +118,7 @@ feature {NONE} -- Events
|
||||
page.put_string ("Bye")
|
||||
end
|
||||
|
||||
page.send_to (res)
|
||||
res.send (page)
|
||||
end
|
||||
|
||||
test_url (a_query_url: READABLE_STRING_8): READABLE_STRING_8
|
||||
|
||||
@@ -77,11 +77,11 @@ feature -- Tests
|
||||
|
||||
feature {NONE} -- Implementation
|
||||
|
||||
new_request (a_meta: ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_8]]): WSF_REQUEST
|
||||
new_request (a_meta: ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_8]]): WSF_REQUEST_NULL
|
||||
local
|
||||
wgi_req: WGI_REQUEST
|
||||
do
|
||||
create {WGI_REQUEST_NULL} wgi_req.make (Current, a_meta)
|
||||
create {WGI_REQUEST_NULL} wgi_req.make (a_meta)
|
||||
create Result.make_from_wgi (wgi_req)
|
||||
end
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (s: WSF_SERVICE; a_meta: ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_8]])
|
||||
make (a_meta: ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_8]])
|
||||
local
|
||||
ht: HASH_TABLE [READABLE_STRING_8, READABLE_STRING_8]
|
||||
i: WGI_NULL_INPUT_STREAM
|
||||
c: WGI_NULL_CONNECTOR
|
||||
do
|
||||
create c.make (s)
|
||||
create c.make
|
||||
create i.make
|
||||
create ht.make (a_meta.count)
|
||||
across
|
||||
|
||||
16
library/server/wsf/tests/src/wsf_request_null.e
Normal file
16
library/server/wsf/tests/src/wsf_request_null.e
Normal file
@@ -0,0 +1,16 @@
|
||||
note
|
||||
description: "Summary description for {WSF_REQUEST_NULL}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_REQUEST_NULL
|
||||
|
||||
inherit
|
||||
WSF_REQUEST
|
||||
|
||||
create {WSF_TO_WGI_SERVICE, WSF_SERVICE}
|
||||
make_from_wgi
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user