11#ifndef SERVICE_PROPERTY_H
12#define SERVICE_PROPERTY_H
14#define SERVICE_DEFAULT_VERBOSITY 1
15#define WEBSERVER_DEFAULT_PORT_STR "8080"
17#include <dds/core/macros.hpp>
18#include <rti/core/NativeValueType.hpp>
20#include <rti/webdds/Dll.hpp>
22namespace rti {
namespace webdds {
25class AccessController;
127 AccessController *acl()
const;
136 const std::string& option,
137 const std::string& value);
245 int param_verbosity();
255 int wsdds_verbosity();
312 bool enable_resource_caching_;
313 bool enable_builtin_topics_;
314 bool enable_websockets_;
317 std::string cfgfile_;
318 std::string cfgname_;
319 std::string acl_file_;
320 std::string create_api_key_;
321 std::string delete_api_key_;
322 std::string heap_snapshot_dir_;
325 int wsdds_verbosity_;
326 int max_objects_per_thread_;
329 std::vector<std::string> webserver_options_;
332 bool use_custom_logger_;
333 std::unique_ptr<LoggerDevice> logger_device_;
336 std::unique_ptr<AccessController> acl_;
Configuration properties for a RTI Web Integration Service object.
Definition: ServiceProperty.hpp:33
const std::vector< std::string > & webserver_options() const
This method return the webserver_options_ array. the values are used as pairs of key-value each 2 val...
const std::string & acl_file() const
Getter (see setter with the same name).
ServiceProperty & use_custom_logger(bool value)
Enables the use of a custom logger.
ServiceProperty()
Construct a new Service Property object.
ServiceProperty & cfgname(const std::string &cfgname)
The name of the RTI Web Integration Service configuration to run.
ServiceProperty & list_api_keys(bool value)
Set it to true to list all the API keys available in an Access Control List file.
~ServiceProperty()
Destroy the Service Property object.
ServiceProperty & create_api_key(const std::string &api_key)
Add a new api key to the list of api keys.
ServiceProperty & setup_verbosity_level()
Set the up verbosity level that is in verbosity_ atributte.
bool enable_builtin_topics() const
Getter (see setter with the same name).
int max_objects_per_thread()
Getter (see setter with the same name).
ServiceProperty & enable_builtin_topics(bool value)
Set it to true to enable the Builtin Topics REST API.
const std::string * webserver_option(const std::string &option) const
Get the value of the webserver option.
bool enable_resource_caching() const
Getter (see setter with the same name).
ServiceProperty & delete_api_key(const std::string &api_key)
Delete an api key from the list of api keys.
ServiceProperty & enable_resource_caching(bool value)
Caches entities thread-specific storage.
bool enable_websockets() const
Getter (see setter with the same name).
const std::string & create_api_key() const
Getter (see setter with the same name).
bool list_api_keys() const
Getter (see setter with the same name).
ServiceProperty & cfgfile(const std::string &cfgfile)
Specifies a configuration file to be loaded.
const std::string & cfgfile() const
Getter (see setter with the same name).
ServiceProperty & max_objects_per_thread(int max_objects_per_thread)
Use this attribute to increase the maximum number of objects per thread of RTI Data Distribution Serv...
ServiceProperty & setup_verbosity_level(int verbosity_level)
Controls what type of messages are logged.
ServiceProperty & enable_websockets(bool value)
Set it to true to enable the WebSockets REST API.
ServiceProperty & acl_file(const std::string &acl_file)
The name of the Access Control List file.
bool use_custom_logger() const
Getter (see setter with the same name).
const std::string & delete_api_key() const
Getter (see setter with the same name).
const std::string & cfgname() const
Getter (see setter with the same name).