summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/http/HTTPServletInvoker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/plugins/invoker/http/HTTPServletInvoker.h')
-rw-r--r--src/uscxml/plugins/invoker/http/HTTPServletInvoker.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.h b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.h
index 1d667de..4ac87e0 100644
--- a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.h
+++ b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.h
@@ -13,7 +13,7 @@ namespace uscxml {
class HTTPServletInvoker : public InvokerImpl, public HTTPServlet {
public:
HTTPServletInvoker();
- HTTPServletInvoker(Interpreter* interpreter);
+ HTTPServletInvoker(Interpreter* interpreter);
virtual ~HTTPServletInvoker();
virtual boost::shared_ptr<IOProcessorImpl> create(Interpreter* interpreter);
@@ -29,21 +29,27 @@ public:
virtual void cancel(const std::string sendId);
virtual void invoke(const InvokeRequest& req);
- // HTTPServlet
- virtual void httpRecvRequest(const HTTPServer::Request& req);
- virtual std::string getPath();
- virtual void setURL(const std::string& url) { _url = url; }
+ // HTTPServlet
+ virtual void httpRecvRequest(const HTTPServer::Request& req);
+ virtual std::string getPath();
+ virtual void setURL(const std::string& url) {
+ _url = url;
+ }
+
+ tthread::recursive_mutex& getMutex() {
+ return _mutex;
+ }
+ std::map<std::string, HTTPServer::Request>& getRequests() {
+ return _requests;
+ }
- tthread::recursive_mutex& getMutex() { return _mutex; }
- std::map<std::string, HTTPServer::Request>& getRequests() { return _requests; }
-
protected:
- tthread::recursive_mutex _mutex;
- std::map<std::string, HTTPServer::Request> _requests;
- std::string _path;
- std::string _callback;
- std::string _url;
- bool _isInterpreterGlobal;
+ tthread::recursive_mutex _mutex;
+ std::map<std::string, HTTPServer::Request> _requests;
+ std::string _path;
+ std::string _callback;
+ std::string _url;
+ bool _isInterpreterGlobal;
};
#ifdef BUILD_AS_PLUGINS