Ark Server API (ASE) - Wiki
|
A CertificateHandlerFactoryMgr manages all existing CertificateHandlerFactories. More...
#include <CertificateHandlerFactoryMgr.h>
Public Types | |
using | FactoriesMap = std::map<std::string, Poco::SharedPtr<CertificateHandlerFactory>> |
Public Member Functions | |
CertificateHandlerFactoryMgr () | |
~CertificateHandlerFactoryMgr () | |
Creates the CertificateHandlerFactoryMgr. | |
void | setFactory (const std::string &name, CertificateHandlerFactory *pFactory) |
Destroys the CertificateHandlerFactoryMgr. | |
bool | hasFactory (const std::string &name) const |
const CertificateHandlerFactory * | getFactory (const std::string &name) const |
Returns true if for the given name a factory is already registered. | |
void | removeFactory (const std::string &name) |
Returns NULL if for the given name a factory does not exist, otherwise the factory is returned. | |
Private Attributes | |
FactoriesMap | _factories |
Removes the factory from the manager. | |
A CertificateHandlerFactoryMgr manages all existing CertificateHandlerFactories.
Definition at line 31 of file CertificateHandlerFactoryMgr.h.
using Poco::Net::CertificateHandlerFactoryMgr::FactoriesMap = std::map<std::string, Poco::SharedPtr<CertificateHandlerFactory>> |
Definition at line 35 of file CertificateHandlerFactoryMgr.h.
Poco::Net::CertificateHandlerFactoryMgr::CertificateHandlerFactoryMgr | ( | ) |
Poco::Net::CertificateHandlerFactoryMgr::~CertificateHandlerFactoryMgr | ( | ) |
Creates the CertificateHandlerFactoryMgr.
const CertificateHandlerFactory * Poco::Net::CertificateHandlerFactoryMgr::getFactory | ( | const std::string & | name | ) | const |
Returns true if for the given name a factory is already registered.
bool Poco::Net::CertificateHandlerFactoryMgr::hasFactory | ( | const std::string & | name | ) | const |
Registers the factory. Class takes ownership of the pointer. If a factory with the same name already exists, an exception is thrown.
void Poco::Net::CertificateHandlerFactoryMgr::removeFactory | ( | const std::string & | name | ) |
Returns NULL if for the given name a factory does not exist, otherwise the factory is returned.
void Poco::Net::CertificateHandlerFactoryMgr::setFactory | ( | const std::string & | name, |
CertificateHandlerFactory * | pFactory ) |
Destroys the CertificateHandlerFactoryMgr.
|
private |
Removes the factory from the manager.
Definition at line 57 of file CertificateHandlerFactoryMgr.h.