2012-12-14 11:21:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Server.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2014-03-21 13:42:14 +00:00
|
|
|
|
|
|
|
/// Обработчик http-запросов в формате OLAP-server.
|
|
|
|
class OLAPHTTPHandler : public Poco::Net::HTTPRequestHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
OLAPHTTPHandler(Server & server_)
|
|
|
|
: server(server_)
|
|
|
|
, log(&Logger::get("OLAPHTTPHandler"))
|
2012-12-14 11:21:07 +00:00
|
|
|
{
|
2014-03-21 13:42:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Server & server;
|
|
|
|
|
|
|
|
Logger * log;
|
|
|
|
|
|
|
|
void processQuery(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response);
|
|
|
|
};
|
|
|
|
|
2012-12-14 11:21:07 +00:00
|
|
|
}
|