Kea 2.7.5
|
HTTP response creator factory for an API listener. More...
#include <cmd_response_creator_factory.h>
Public Member Functions | |
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 commands. | |
Public Member Functions inherited from isc::http::HttpResponseCreatorFactory | |
virtual | ~HttpResponseCreatorFactory () |
Virtual destructor. | |
HTTP response creator factory for an API listener.
emulate_agent_response | if true results for normal command outcomes are wrapped in Element::list. This emulates responses generated by kea-ctrl-agent. The value is passed into the CmdResponseCreator when created. Defaults to true. |
See the documentation of the isc::http::HttpResponseCreatorFactory for the details how the response factory object is used by the isc::http::HttpListener.
This class always returns the same instance of the CmdResponseCreator which isc::http::HttpListener and isc::http::HttpConnection classes use to generate HTTP response messages which comply with the formats required by the Control Agent.
Definition at line 31 of file cmd_response_creator_factory.h.
|
inline |
Constructor.
Creates sole instance of the CmdResponseCreator object returned by the CmdResponseCreatorFactory::create.
emulate_agent_response | if true, responses for normal command outcomes are guaranteed to be wrapped in an Element::list. This emulates how kea-ctrl-agent forms responses. Defaults to true. |
Definition at line 42 of file cmd_response_creator_factory.h.
|
inlinevirtual |
Returns an instance of the CmdResponseCreator which is used by HTTP server to generate responses to commands.
Implements isc::http::HttpResponseCreatorFactory.
Definition at line 50 of file cmd_response_creator_factory.h.