7#ifndef HTTP_RESPONSE_CREATOR_H
8#define HTTP_RESPONSE_CREATOR_H
12#include <boost/shared_ptr.hpp>
17class HttpResponseCreator;
Specifies an interface for classes creating HTTP responses from HTTP requests.
virtual HttpResponsePtr createHttpResponse(HttpRequestPtr request) final
Create HTTP response from HTTP request received.
virtual HttpResponsePtr createDynamicHttpResponse(HttpRequestPtr request)=0
Creates implementation specific HTTP response.
virtual HttpRequestPtr createNewHttpRequest() const =0
Create a new request.
virtual ~HttpResponseCreator()
Destructor.
virtual HttpResponsePtr createStockHttpResponse(const HttpRequestPtr &request, const HttpStatusCode &status_code) const =0
Creates implementation specific HTTP response.
HttpStatusCode
HTTP status codes (cf RFC 2068)
boost::shared_ptr< HttpResponseCreator > HttpResponseCreatorPtr
Pointer to the HttpResponseCreator object.
boost::shared_ptr< HttpResponse > HttpResponsePtr
Pointer to the HttpResponse object.
boost::shared_ptr< HttpRequest > HttpRequestPtr
Pointer to the HttpRequest object.
Defines the logger used by the top-level component of kea-lfc.