summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 23:47:42 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 23:47:42 (GMT)
commit79b8a7941354416f83aae9cb53fbdf7e680beae2 (patch)
tree4eb3be0cf17403cf825f3050d9443fb536034946 /src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
parente9bd7e313c80ccdabc52757266177363c7638caf (diff)
downloaduscxml-79b8a7941354416f83aae9cb53fbdf7e680beae2.zip
uscxml-79b8a7941354416f83aae9cb53fbdf7e680beae2.tar.gz
uscxml-79b8a7941354416f83aae9cb53fbdf7e680beae2.tar.bz2
Removed interpreter global features
Diffstat (limited to 'src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp')
-rw-r--r--src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
index ad7bb15..223fe03 100644
--- a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
+++ b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
@@ -18,20 +18,6 @@ bool connect(pluma::Host& host) {
#endif
HTTPServletInvoker::HTTPServletInvoker() {
- _isInterpreterGlobal = false;
-}
-
-HTTPServletInvoker::HTTPServletInvoker(Interpreter* interpreter) {
- _isInterpreterGlobal = true;
- _interpreter = interpreter;
- std::stringstream path;
- path << _interpreter->getName();
- int i = 2;
- while(!HTTPServer::registerServlet(path.str(), this)) {
- path.clear();
- path.str();
- path << _interpreter->getName() << i++;
- }
}
HTTPServletInvoker::~HTTPServletInvoker() {
@@ -53,7 +39,6 @@ Data HTTPServletInvoker::getDataModelVariables() {
}
void HTTPServletInvoker::send(const SendRequest& req) {
- assert(!_isInterpreterGlobal);
if (req.name.find("reply.", 0, req.name.length())) {
// this is a reply
@@ -85,11 +70,9 @@ void HTTPServletInvoker::send(const SendRequest& req) {
}
void HTTPServletInvoker::cancel(const std::string sendId) {
- assert(!_isInterpreterGlobal);
}
void HTTPServletInvoker::invoke(const InvokeRequest& req) {
- assert(!_isInterpreterGlobal);
_invokeId = req.invokeid;
if (req.params.find("path") == req.params.end()) {
@@ -121,13 +104,8 @@ void HTTPServletInvoker::httpRecvRequest(const HTTPServer::Request& req) {
Event event = req;
- if (_isInterpreterGlobal) {
- event.name = "http." + event.data.compound["type"].atom;
- event.origin = toStr((uintptr_t)req.curlReq);
- } else {
- event.name = _callback;
- event.data.compound["reqId"] = Data(toStr((uintptr_t)req.curlReq), Data::VERBATIM);
- }
+ event.name = _callback;
+ event.data.compound["reqId"] = Data(toStr((uintptr_t)req.curlReq), Data::VERBATIM);
returnEvent(event);