Kea 3.3.1
cmd_response_creator_factory.h
Go to the documentation of this file.
1// Copyright (C) 2021-2026 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef CMD_RESPONSE_CREATOR_FACTORY_H
8#define CMD_RESPONSE_CREATOR_FACTORY_H
9
12
13namespace isc {
14namespace config {
15
27public:
28
37 std::unordered_set<std::string> command_accept_list)
38 : sole_creator_(new CmdResponseCreator(http_auth_config,
39 command_accept_list)) {
40 }
41
47 return (sole_creator_);
48 }
49
50private:
51
53 http::HttpResponseCreatorPtr sole_creator_;
54};
55
56} // end of namespace isc::config
57} // end of namespace isc
58
59#endif
CmdResponseCreatorFactory(http::HttpAuthConfigPtr http_auth_config, std::unordered_set< std::string > command_accept_list)
Constructor.
virtual http::HttpResponseCreatorPtr create() const
Returns an instance of the CmdResponseCreator which is used by HTTP server to generate responses to c...
Concrete implementation of the HTTP response creator used for processing API commands.
Specifies the interface for implementing custom factory classes used to create instances of HttpRespo...
boost::shared_ptr< HttpAuthConfig > HttpAuthConfigPtr
Type of shared pointers to HTTP authentication configuration.
Definition auth_config.h:97
boost::shared_ptr< HttpResponseCreator > HttpResponseCreatorPtr
Pointer to the HttpResponseCreator object.
Defines the logger used by the top-level component of kea-lfc.