|
SMACC2
|
#include <cp_http_session_manager.hpp>


Classes | |
| class | ServerConfig |
Public Member Functions | |
| CpHttpSessionManager () | |
| virtual | ~CpHttpSessionManager () |
| void | onInitialize () override |
| void | setServerUrl (const std::string &server_url) |
| std::shared_ptr< http_session_base > | createSession (boost::asio::any_io_executor executor, std::function< void(const http_session_base::TResponse &)> callback) |
| bool | isSSL () const |
| std::string | getServerName () const |
| std::string | getPort () const |
Public Member Functions inherited from smacc2::ISmaccComponent | |
| ISmaccComponent () | |
| virtual | ~ISmaccComponent () |
| virtual std::string | getName () const |
Private Attributes | |
| std::unique_ptr< ServerConfig > | server_config_ |
| boost::asio::ssl::context | ssl_context_ |
| bool | initialized_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
| template<typename TOrthogonal , typename TClient > | |
| void | onComponentInitialization () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| template<typename TComponent > | |
| void | requiresComponent (TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TComponent > | |
| void | requiresComponent (std::string name, TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TClient > | |
| void | requiresClient (TClient *&requiredClientStorage) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingComponent (TArgs... targs) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingNamedComponent (std::string name, TArgs... targs) |
| rclcpp::Node::SharedPtr | getNode () |
| rclcpp::Logger | getLogger () const |
| ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
| ISmaccStateMachine * | stateMachine_ |
| ISmaccClient * | owner_ |
Definition at line 33 of file cp_http_session_manager.hpp.
| cl_http::CpHttpSessionManager::CpHttpSessionManager | ( | ) |
Definition at line 43 of file cp_http_session_manager.cpp.
References ssl_context_.
|
virtual |
Definition at line 50 of file cp_http_session_manager.cpp.
| std::shared_ptr< http_session_base > cl_http::CpHttpSessionManager::createSession | ( | boost::asio::any_io_executor | executor, |
| std::function< void(const http_session_base::TResponse &)> | callback ) |
Definition at line 59 of file cp_http_session_manager.cpp.
References server_config_, and ssl_context_.
Referenced by cl_http::CpHttpRequestExecutor::executeRequest().

| std::string cl_http::CpHttpSessionManager::getPort | ( | ) | const |
Definition at line 88 of file cp_http_session_manager.cpp.
References server_config_.
Referenced by cl_http::CpHttpRequestExecutor::executeRequest().

| std::string cl_http::CpHttpSessionManager::getServerName | ( | ) | const |
Definition at line 83 of file cp_http_session_manager.cpp.
References server_config_.
Referenced by cl_http::CpHttpRequestExecutor::executeRequest().

| bool cl_http::CpHttpSessionManager::isSSL | ( | ) | const |
Definition at line 78 of file cp_http_session_manager.cpp.
References server_config_.
Referenced by cl_http::CpHttpRequestExecutor::executeRequest().

|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 52 of file cp_http_session_manager.cpp.
References initialized_.
| void cl_http::CpHttpSessionManager::setServerUrl | ( | const std::string & | server_url | ) |
Definition at line 54 of file cp_http_session_manager.cpp.
References server_config_.
Referenced by cl_http::ClHttp::onComponentInitialization().

|
private |
Definition at line 76 of file cp_http_session_manager.hpp.
Referenced by onInitialize().
|
private |
Definition at line 74 of file cp_http_session_manager.hpp.
Referenced by createSession(), getPort(), getServerName(), isSSL(), and setServerUrl().
|
private |
Definition at line 75 of file cp_http_session_manager.hpp.
Referenced by CpHttpSessionManager(), and createSession().