Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
WebviewAspect () | |
Constructor. More... | |
virtual | ~WebviewAspect () |
Virtual empty Destructor. More... | |
void | init_WebviewAspect (WebUrlManager *url_manager, WebNavManager *nav_manager, WebRequestManager *request_manager, WebviewRestApiManager *rest_api_manager) |
Set URL manager. More... | |
![]() | |
const std::list< const char * > & | get_aspects () const |
Get list of aspect names attached to a aspected thread. More... | |
Protected Attributes | |
WebUrlManager * | webview_url_manager |
Webview request processor manager. More... | |
WebNavManager * | webview_nav_manager |
Webview navigation manager. More... | |
WebRequestManager * | webview_request_manager |
Webview request manager. More... | |
WebviewRestApiManager * | webview_rest_api_manager |
Webview REST API manager. More... | |
Additional Inherited Members | |
![]() | |
void | add_aspect (const char *name) |
Add an aspect to a thread. More... | |
Thread aspect to provide web pages via Webview.
The WebviewAspect differs from other aspects. It can be successfully initialized even if there currently is no plugin loaded to serve web pages. This is because the central interface, the WebUrlManager, is held by the WebviewAspectIniFin and thus processor can be registerd and deregistered all the time. The webview plugin itself has the WebviewAspect, but it uses its access to the WebUrlManager instance to serve requests and pass them on to the appropriate processor.
It is guaranteed that if used properly from within plugins that init_WebviewAspect() is called before the thread is started and that you can access the webview request processor manager in the thread's init() method.
fawkes::WebviewAspect::WebviewAspect | ( | ) |
Constructor.
Definition at line 55 of file webview.cpp.
|
virtual |
Virtual empty Destructor.
Definition at line 61 of file webview.cpp.
References webview_url_manager.
void fawkes::WebviewAspect::init_WebviewAspect | ( | WebUrlManager * | url_manager, |
WebNavManager * | nav_manager, | ||
WebRequestManager * | request_manager, | ||
WebviewRestApiManager * | rest_api_manager | ||
) |
Set URL manager.
It is guaranteed that this is called for a logging thread before Thread::start() is called (when running regularly inside Fawkes).
url_manager | URL manager to register processors to |
nav_manager | Navigation manager to add navigation entries |
request_manager | Request manager to query request information |
rest_api_manager | Manager to register REST APIs |
Definition at line 75 of file webview.cpp.
|
protected |
|
protected |
Webview request manager.
Definition at line 59 of file webview.h.
Referenced by WebviewThread::init().
|
protected |
Webview REST API manager.
Definition at line 61 of file webview.h.
Referenced by BackendInfoRestApi::finalize(), ClipsRestApi::finalize(), TransformsRestApi::finalize(), ConfigurationRestApi::finalize(), SkillerRestApi::finalize(), PluginRestApi::finalize(), ClipsExecutiveRestApi::finalize(), ImageRestApi::finalize(), BlackboardRestApi::finalize(), BackendInfoRestApi::init(), TransformsRestApi::init(), ClipsRestApi::init(), ConfigurationRestApi::init(), SkillerRestApi::init(), PluginRestApi::init(), WebviewThread::init(), ClipsExecutiveRestApi::init(), ImageRestApi::init(), and BlackboardRestApi::init().
|
protected |
Webview request processor manager.
Definition at line 55 of file webview.h.
Referenced by WebviewThread::finalize(), XmlRpcThread::finalize(), MetricsThread::finalize(), WebviewThread::init(), XmlRpcThread::init(), MetricsThread::init(), and ~WebviewAspect().