2012-04-29 18:52:25 +00:00
|
|
|
//
|
|
|
|
// HTTPServerConnectionFactory.cpp
|
|
|
|
//
|
|
|
|
// Library: Net
|
|
|
|
// Package: HTTPServer
|
|
|
|
// Module: HTTPServerConnectionFactory
|
|
|
|
//
|
|
|
|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
2014-05-04 21:02:42 +02:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
2012-04-29 18:52:25 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#include "Poco/Net/HTTPServerConnectionFactory.h"
|
|
|
|
#include "Poco/Net/HTTPServerConnection.h"
|
|
|
|
#include "Poco/Net/HTTPRequestHandlerFactory.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Poco {
|
|
|
|
namespace Net {
|
|
|
|
|
|
|
|
|
|
|
|
HTTPServerConnectionFactory::HTTPServerConnectionFactory(HTTPServerParams::Ptr pParams, HTTPRequestHandlerFactory::Ptr pFactory):
|
|
|
|
_pParams(pParams),
|
|
|
|
_pFactory(pFactory)
|
|
|
|
{
|
|
|
|
poco_check_ptr (pFactory);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTPServerConnectionFactory::~HTTPServerConnectionFactory()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TCPServerConnection* HTTPServerConnectionFactory::createConnection(const StreamSocket& socket)
|
|
|
|
{
|
|
|
|
return new HTTPServerConnection(socket, _pParams, _pFactory);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} } // namespace Poco::Net
|