summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/xhtml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-06-24 13:03:20 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-06-24 13:03:20 (GMT)
commit758bda908ded461c9d34d274a18454ffba4b7450 (patch)
treefb7f1ba28eab9f20b4ca16ed4dbc36d07dfce06e /src/uscxml/plugins/invoker/xhtml
parentfebde41c4c69d8f38967d5c195328d468834d037 (diff)
downloaduscxml-758bda908ded461c9d34d274a18454ffba4b7450.zip
uscxml-758bda908ded461c9d34d274a18454ffba4b7450.tar.gz
uscxml-758bda908ded461c9d34d274a18454ffba4b7450.tar.bz2
- Prolog DM compiles with recent SWI release again
- Bugfixes for stress test - Beautified code
Diffstat (limited to 'src/uscxml/plugins/invoker/xhtml')
-rw-r--r--src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp b/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp
index 0418f8a..5b67f7c 100644
--- a/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp
+++ b/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp
@@ -52,6 +52,7 @@ XHTMLInvoker::XHTMLInvoker() {
}
XHTMLInvoker::~XHTMLInvoker() {
+ HTTPServer::unregisterServlet(this);
};
boost::shared_ptr<InvokerImpl> XHTMLInvoker::create(InterpreterImpl* interpreter) {
@@ -210,11 +211,15 @@ void XHTMLInvoker::reply(const SendRequest& req, const HTTPServer::Request& long
}
void XHTMLInvoker::cancel(const std::string sendId) {
+ HTTPServer::unregisterServlet(this);
}
void XHTMLInvoker::invoke(const InvokeRequest& req) {
_invokeReq = req;
HTTPServer::registerServlet(_interpreter->getName() + "/" + req.invokeid + ".html", this);
+ if (_url.size() == 0) {
+ returnErrorExecution("No HTTP server running");
+ }
#if __APPLE__
# if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
# else