diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-02 18:42:17 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-02 18:42:17 (GMT) |
commit | f627a8a8b139a42568f67dc18679d92806e0ff4e (patch) | |
tree | 0ef345134ce775c6fca5ec35d2b6eecddbf3450e /src/uscxml/server/InterpreterServlet.h | |
parent | f19be97dea6fd8da994392d6fa7de5b3f0d9bf3e (diff) | |
download | uscxml-f627a8a8b139a42568f67dc18679d92806e0ff4e.zip uscxml-f627a8a8b139a42568f67dc18679d92806e0ff4e.tar.gz uscxml-f627a8a8b139a42568f67dc18679d92806e0ff4e.tar.bz2 |
More bug-fixes for W3C tests
Diffstat (limited to 'src/uscxml/server/InterpreterServlet.h')
-rw-r--r-- | src/uscxml/server/InterpreterServlet.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/uscxml/server/InterpreterServlet.h b/src/uscxml/server/InterpreterServlet.h index 72f2f67..18e1d28 100644 --- a/src/uscxml/server/InterpreterServlet.h +++ b/src/uscxml/server/InterpreterServlet.h @@ -2,15 +2,30 @@ #define INTERPRETERSERVLET_H_XQLWNMH4 #include "HTTPServer.h" +#include "uscxml/Factory.h" namespace uscxml { class Interpreter; -class InterpreterServlet : public HTTPServlet { +class InterpreterServlet : public HTTPServlet, public IOProcessorImpl { public: + InterpreterServlet() {}; InterpreterServlet(Interpreter* interpreter); virtual ~InterpreterServlet() {} + + virtual boost::shared_ptr<IOProcessorImpl> create(Interpreter* interpreter); + + virtual std::set<std::string> getNames() { + std::set<std::string> names; + names.insert("http"); + names.insert("http://www.w3.org/TR/scxml/#HTTPEventProcessor"); + return names; + } + + Data getDataModelVariables(); + virtual void send(const SendRequest& req); + virtual void httpRecvRequest(const HTTPServer::Request& req); std::string getPath() { @@ -26,6 +41,7 @@ public: return false; } + std::map<std::string, HTTPServer::Request>& getRequests() { return _requests; } |