Fawkes API
Fawkes Development Version
xmlrpc_thread.h
1
2
/***************************************************************************
3
* xmlrpc_thread.h - Thread that handles xml-rpc requests
4
*
5
* Created: Sun Aug 30 12:44:30 2009
6
* Copyright 2006-2009 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef _PLUGINS_XMLRPC_XMLRPC_THREAD_H_
24
#define _PLUGINS_XMLRPC_XMLRPC_THREAD_H_
25
26
#include <aspect/blackboard.h>
27
#include <aspect/configurable.h>
28
#include <aspect/logger.h>
29
#include <aspect/logging.h>
30
#include <aspect/network.h>
31
#include <aspect/plugin_director.h>
32
#include <aspect/webview.h>
33
#include <core/threading/thread.h>
34
#include <logging/cache.h>
35
36
namespace
fawkes
{
37
class
NetworkService;
38
class
WebRequestDispatcher;
39
class
WebUrlManager;
40
class
WebServer;
41
}
// namespace fawkes
42
43
class
XmlRpcRequestProcessor
;
44
class
XmlRpcPluginMethods
;
45
class
XmlRpcLogMethods
;
46
47
class
XmlRpcThread
:
public
fawkes::Thread
,
48
public
fawkes::LoggingAspect
,
49
public
fawkes::ConfigurableAspect
,
50
public
fawkes::BlackBoardAspect
,
51
public
fawkes::NetworkAspect
,
52
public
fawkes::LoggerAspect
,
53
public
fawkes::PluginDirectorAspect
,
54
public
fawkes::WebviewAspect
55
{
56
public
:
57
XmlRpcThread
();
58
~
XmlRpcThread
();
59
60
virtual
void
init
();
61
virtual
void
finalize
();
62
virtual
void
loop
();
63
64
/** Stub to see name in backtrace for easier debugging. @see Thread::run() */
65
protected
:
66
virtual
void
67
run
()
68
{
69
Thread::run();
70
}
71
72
private
:
73
fawkes::WebServer
* webserver_;
74
fawkes::WebRequestDispatcher
*dispatcher_;
75
fawkes::WebUrlManager
* url_manager_;
76
77
XmlRpcRequestProcessor
*processor_;
78
XmlRpcPluginMethods
* plugin_methods_;
79
XmlRpcLogMethods
* log_methods_;
80
81
bool
custom_server_;
82
unsigned
int
cfg_port_;
83
84
fawkes::CacheLogger
cache_logger_;
85
fawkes::NetworkService
*xmlrpc_service_;
86
};
87
88
#endif
XmlRpcThread::XmlRpcThread
XmlRpcThread()
Constructor.
Definition:
xmlrpc_thread.cpp:43
fawkes::PluginDirectorAspect
Definition:
plugin_director.h:38
XmlRpcThread::init
virtual void init()
Initialize the thread.
Definition:
xmlrpc_thread.cpp:54
XmlRpcRequestProcessor
Definition:
xmlrpc_processor.h:40
XmlRpcThread::finalize
virtual void finalize()
Finalize the thread.
Definition:
xmlrpc_thread.cpp:105
XmlRpcThread::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition:
xmlrpc_thread.h:67
fawkes::WebServer
Definition:
server.h:43
fawkes::WebUrlManager
Definition:
url_manager.h:45
fawkes::CacheLogger
Definition:
cache.h:43
fawkes::WebRequestDispatcher
Definition:
request_dispatcher.h:51
fawkes::LoggerAspect
Definition:
logger.h:39
XmlRpcThread
Definition:
xmlrpc_thread.h:47
XmlRpcThread::loop
virtual void loop()
Code to execute in the thread.
Definition:
xmlrpc_thread.cpp:123
fawkes::NetworkService
Definition:
service.h:43
fawkes::BlackBoardAspect
Definition:
blackboard.h:38
fawkes
fawkes::LoggingAspect
Definition:
logging.h:38
fawkes::WebviewAspect
Definition:
webview.h:42
XmlRpcLogMethods
Definition:
log.h:34
XmlRpcPluginMethods
Definition:
plugin.h:33
fawkes::Thread
Definition:
thread.h:45
fawkes::ConfigurableAspect
Definition:
configurable.h:38
fawkes::NetworkAspect
Definition:
network.h:40
src
plugins
xmlrpc
xmlrpc_thread.h
Generated by
1.8.17