diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-23 06:50:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-23 06:50:15 +0000 |
commit | 2faafb710633884260b070e1d4ed4ef46326612a (patch) | |
tree | deea4d9ecb9e799fcd28900a1b76c6c0bce01cbf /sca-cpp/trunk/components | |
parent | 8f252e970a8b3584d3f566dba619b79d70b5efcf (diff) |
Support cookies over outgoing HTTP calls and a shorter component URL addressing scheme.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1126336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components')
-rw-r--r-- | sca-cpp/trunk/components/cache/client-test.cpp | 6 | ||||
-rw-r--r-- | sca-cpp/trunk/components/chat/client-test.cpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/components/filedb/client-test.cpp | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/components/http/client-test.cpp | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/components/http/httpdelete.cpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/components/http/httpget.cpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/components/log/client-test.cpp | 6 | ||||
-rw-r--r-- | sca-cpp/trunk/components/nosqldb/client-test.cpp | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/components/queue/client-test.cpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/components/sqldb/client-test.cpp | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/components/webservice/client-test.cpp | 2 |
11 files changed, 19 insertions, 19 deletions
diff --git a/sca-cpp/trunk/components/cache/client-test.cpp b/sca-cpp/trunk/components/cache/client-test.cpp index bef5aa454a..c44060b7a4 100644 --- a/sca-cpp/trunk/components/cache/client-test.cpp +++ b/sca-cpp/trunk/components/cache/client-test.cpp @@ -41,7 +41,7 @@ const string datacacheuri("http://localhost:8090/datacache"); const string memocacheuri("http://localhost:8090/memocache"); bool testCache(const string& uri) { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const list<value> i = list<value>() + "content" + (list<value>() + "item" + (list<value>() + "name" + string("Apple")) @@ -101,7 +101,7 @@ bool testDatacache() { } bool testMemocache() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> res = http::evalExpr(mklist<value>(string("add"), 33, 22), memocacheuri, cs); assert(hasContent(res)); @@ -137,7 +137,7 @@ bool testGetPerf() { + (list<value>() + "id" + string("cart-53d67a61-aa5e-4e5e-8401-39edeba8b83b")) + i); - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> id = http::post(a, memcacheuri, cs); assert(hasContent(id)); const string p = path(content(id)); diff --git a/sca-cpp/trunk/components/chat/client-test.cpp b/sca-cpp/trunk/components/chat/client-test.cpp index cd1021c147..9595194fe9 100644 --- a/sca-cpp/trunk/components/chat/client-test.cpp +++ b/sca-cpp/trunk/components/chat/client-test.cpp @@ -86,7 +86,7 @@ bool testListen() { bool testPost() { gc_scoped_pool pool; - http::CURLSession ch("", "", ""); + http::CURLSession ch("", "", "", ""); const failable<value> id = http::post(entry, "http://localhost:8090/print-sender/sca2@localhost", ch); assert(hasContent(id)); return true; diff --git a/sca-cpp/trunk/components/filedb/client-test.cpp b/sca-cpp/trunk/components/filedb/client-test.cpp index 97141eba97..19f76c22fe 100644 --- a/sca-cpp/trunk/components/filedb/client-test.cpp +++ b/sca-cpp/trunk/components/filedb/client-test.cpp @@ -39,7 +39,7 @@ namespace filedb { const string uri("http://localhost:8090/filedb"); bool testFileDB() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const list<value> i = list<value>() + "content" + (list<value>() + "item" + (list<value>() + "name" + string("Apple")) @@ -113,7 +113,7 @@ bool testGetPerf() { + (list<value>() + "id" + string("cart-53d67a61-aa5e-4e5e-8401-39edeba8b83b")) + i); - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> id = http::post(a, uri, cs); assert(hasContent(id)); const string p = path(content(id)); diff --git a/sca-cpp/trunk/components/http/client-test.cpp b/sca-cpp/trunk/components/http/client-test.cpp index eb8162b834..a83bf55252 100644 --- a/sca-cpp/trunk/components/http/client-test.cpp +++ b/sca-cpp/trunk/components/http/client-test.cpp @@ -39,7 +39,7 @@ namespace http { const string uri("http://localhost:8090/httpget"); bool testGet() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> val = http::get(uri, cs); assert(hasContent(val)); @@ -61,7 +61,7 @@ struct getLoop { }; bool testGetPerf() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const lambda<bool()> gl = getLoop(cs); cout << "HTTP get test " << time(gl, 5, 200) << " ms" << endl; diff --git a/sca-cpp/trunk/components/http/httpdelete.cpp b/sca-cpp/trunk/components/http/httpdelete.cpp index 0bebfb9de2..5386ba588f 100644 --- a/sca-cpp/trunk/components/http/httpdelete.cpp +++ b/sca-cpp/trunk/components/http/httpdelete.cpp @@ -69,7 +69,7 @@ private: */ const failable<value> start(const list<value>& params) { // Create a CURL session - http::CURLSession& ch = *(new (gc_new<http::CURLSession>()) http::CURLSession("", "", "")); + http::CURLSession& ch = *(new (gc_new<http::CURLSession>()) http::CURLSession("", "", "", "")); // Return the component implementation lambda function return value(lambda<value(const list<value>&)>(applyhttp(car(params), ch))); diff --git a/sca-cpp/trunk/components/http/httpget.cpp b/sca-cpp/trunk/components/http/httpget.cpp index e64761714c..ac7a99775b 100644 --- a/sca-cpp/trunk/components/http/httpget.cpp +++ b/sca-cpp/trunk/components/http/httpget.cpp @@ -69,7 +69,7 @@ private: */ const failable<value> start(const list<value>& params) { // Create a CURL session - http::CURLSession& ch = *(new (gc_new<http::CURLSession>()) http::CURLSession("", "", "")); + http::CURLSession& ch = *(new (gc_new<http::CURLSession>()) http::CURLSession("", "", "", "")); // Return the component implementation lambda function return value(lambda<value(const list<value>&)>(applyhttp(car(params), ch))); diff --git a/sca-cpp/trunk/components/log/client-test.cpp b/sca-cpp/trunk/components/log/client-test.cpp index 09651f4f43..c67d3a4b27 100644 --- a/sca-cpp/trunk/components/log/client-test.cpp +++ b/sca-cpp/trunk/components/log/client-test.cpp @@ -39,7 +39,7 @@ namespace log { const string uri("http://localhost:8090/log"); bool testLog() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const list<value> i = list<value>() + "content" + (list<value>() + "item" + (list<value>() + "name" + string("Apple")) @@ -77,7 +77,7 @@ bool testLogPerf() { + (list<value>() + "id" + string("cart-53d67a61-aa5e-4e5e-8401-39edeba8b83b")) + i); - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> id = http::post(a, uri, cs); assert(hasContent(id)); @@ -88,7 +88,7 @@ bool testLogPerf() { } bool testLogger() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> res = http::evalExpr(mklist<value>(string("sum"), 33, 22), string("http://localhost:8090/client"), cs); assert(hasContent(res)); diff --git a/sca-cpp/trunk/components/nosqldb/client-test.cpp b/sca-cpp/trunk/components/nosqldb/client-test.cpp index b64f838f46..970f817d5a 100644 --- a/sca-cpp/trunk/components/nosqldb/client-test.cpp +++ b/sca-cpp/trunk/components/nosqldb/client-test.cpp @@ -39,7 +39,7 @@ namespace nosqldb { const string uri("http://localhost:8090/nosqldb"); bool testNoSqlDb() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const list<value> i = list<value>() + "content" + (list<value>() + "item" + (list<value>() + "name" + string("Apple")) @@ -113,7 +113,7 @@ bool testGetPerf() { + (list<value>() + "id" + string("cart-53d67a61-aa5e-4e5e-8401-39edeba8b83b")) + i); - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> id = http::post(a, uri, cs); assert(hasContent(id)); const string p = path(content(id)); diff --git a/sca-cpp/trunk/components/queue/client-test.cpp b/sca-cpp/trunk/components/queue/client-test.cpp index d44fd0f37a..a88d9576cb 100644 --- a/sca-cpp/trunk/components/queue/client-test.cpp +++ b/sca-cpp/trunk/components/queue/client-test.cpp @@ -80,7 +80,7 @@ bool testListen() { bool testPost() { gc_scoped_pool pool; - http::CURLSession ch("", "", ""); + http::CURLSession ch("", "", "", ""); const failable<value> id = http::post(entry, "http://localhost:8090/print-sender", ch); assert(hasContent(id)); return true; diff --git a/sca-cpp/trunk/components/sqldb/client-test.cpp b/sca-cpp/trunk/components/sqldb/client-test.cpp index 9e2cbdc248..d5f07de969 100644 --- a/sca-cpp/trunk/components/sqldb/client-test.cpp +++ b/sca-cpp/trunk/components/sqldb/client-test.cpp @@ -39,7 +39,7 @@ namespace sqldb { const string uri("http://localhost:8090/sqldb"); bool testSqlDb() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const list<value> i = list<value>() + "content" + (list<value>() + "item" + (list<value>() + "name" + string("Apple")) @@ -113,7 +113,7 @@ bool testGetPerf() { + (list<value>() + "id" + string("cart-53d67a61-aa5e-4e5e-8401-39edeba8b83b")) + i); - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const failable<value> id = http::post(a, uri, cs); assert(hasContent(id)); const string p = path(content(id)); diff --git a/sca-cpp/trunk/components/webservice/client-test.cpp b/sca-cpp/trunk/components/webservice/client-test.cpp index 658c87e2fc..16dd659b22 100644 --- a/sca-cpp/trunk/components/webservice/client-test.cpp +++ b/sca-cpp/trunk/components/webservice/client-test.cpp @@ -60,7 +60,7 @@ bool testModAxis2() { } bool testEval() { - http::CURLSession cs("", "", ""); + http::CURLSession cs("", "", "", ""); const value func = "http://ws.apache.org/axis2/c/samples/echoString"; const list<value> arg = mklist<value>( |