Kea: ca_response_creator_factory.h Source File

| Kea 3.0.0

ca_response_creator_factory.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 CTRL_AGENT_RESPONSE_CREATOR_FACTORY_H
8#define CTRL_AGENT_RESPONSE_CREATOR_FACTORY_H
9
10#include <agent/ca_response_creator.h>
11#include <http/response_creator_factory.h>
12
13namespace isc {
14namespace agent {
15
26 class CtrlAgentResponseCreatorFactory : public http::HttpResponseCreatorFactory {
27public:
28
33 CtrlAgentResponseCreatorFactory()
34 : sole_creator_(new CtrlAgentResponseCreator()) {
35 }
36
41 virtual http::HttpResponseCreatorPtr create() const {
42 return (sole_creator_);
43 }
44
45private:
46
48 http::HttpResponseCreatorPtr sole_creator_;
49
50};
51
52} // end of namespace isc::agent
53} // end of namespace isc
54
55#endif
ca_response_creator.h
isc::agent::CtrlAgentResponseCreatorFactory::CtrlAgentResponseCreatorFactory
CtrlAgentResponseCreatorFactory()
Constructor.
Definition ca_response_creator_factory.h:33
isc::agent::CtrlAgentResponseCreatorFactory::create
virtual http::HttpResponseCreatorPtr create() const
Returns an instance of the CtrlAgentResponseCreator which is used by HTTP server to generate response...
Definition ca_response_creator_factory.h:41
isc::agent::CtrlAgentResponseCreator
Concrete implementation of the HTTP response creator used by the Control Agent.
Definition ca_response_creator.h:36
isc::http::HttpResponseCreatorFactory
Specifies the interface for implementing custom factory classes used to create instances of HttpRespo...
Definition response_creator_factory.h:35
isc::agent
Definition agent_parser.cc:148
isc::http::HttpResponseCreatorPtr
boost::shared_ptr< HttpResponseCreator > HttpResponseCreatorPtr
Pointer to the HttpResponseCreator object.
Definition response_creator.h:20
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148
response_creator_factory.h