7 #ifndef CMD__RESPONSE_CREATOR_H
8 #define CMD__RESPONSE_CREATOR_H
12 #include <boost/shared_ptr.hpp>
40 : emulate_agent_response_(emulate_agent_response) {};
78 return (emulate_agent_response_);
108 bool emulate_agent_response_;
bool emulateAgentResponse()
Indicates whether or not agent response emulation is enabled.
boost::shared_ptr< CmdResponseCreator > CmdResponseCreatorPtr
Pointer to the CmdResponseCreator.
Specifies an interface for classes creating HTTP responses from HTTP requests.
const http::HttpAuthConfigPtr & getHttpAuthConfig()
Fetches the current authentication configuration.
virtual http::HttpRequestPtr createNewHttpRequest() const
Create a new request.
virtual http::HttpResponsePtr createStockHttpResponse(const http::HttpRequestPtr &request, const http::HttpStatusCode &status_code) const
Creates stock HTTP response.
boost::shared_ptr< HttpResponse > HttpResponsePtr
Pointer to the HttpResponse object.
CmdResponseCreator(bool emulate_agent_response=true)
Constructor.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Concrete implementation of the HTTP response creator used for processing API commands.
boost::shared_ptr< HttpRequest > HttpRequestPtr
Pointer to the HttpRequest object.
boost::shared_ptr< HttpAuthConfig > HttpAuthConfigPtr
Type of shared pointers to HTTP authentication configuration.
HttpStatusCode
HTTP status codes (cf RFC 2068)