Kea 2.5.8
cmd_response_creator_factory.h
Go to the documentation of this file.
1// Copyright (C) 2021 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
32public:
33
42 CmdResponseCreatorFactory(bool emulate_agent_response = true)
43 : sole_creator_(new CmdResponseCreator(emulate_agent_response)) {
44 }
45
51 return (sole_creator_);
52 }
53
54private:
55
57 http::HttpResponseCreatorPtr sole_creator_;
58};
59
60} // end of namespace isc::config
61} // end of namespace isc
62
63#endif
HTTP response creator factory for an API listener.
CmdResponseCreatorFactory(bool emulate_agent_response=true)
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< HttpResponseCreator > HttpResponseCreatorPtr
Pointer to the HttpResponseCreator object.
Defines the logger used by the top-level component of kea-lfc.