1//
2// HTTPServerConnectionFactory.cpp
3//
4// Library: Net
5// Package: HTTPServer
6// Module: HTTPServerConnectionFactory
7//
8// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Net/HTTPServerConnectionFactory.h"
16#include "Poco/Net/HTTPServerConnection.h"
17#include "Poco/Net/HTTPRequestHandlerFactory.h"
18
19
20namespace Poco {
21namespace Net {
22
23
24HTTPServerConnectionFactory::HTTPServerConnectionFactory(HTTPServerParams::Ptr pParams, HTTPRequestHandlerFactory::Ptr pFactory):
25 _pParams(pParams),
26 _pFactory(pFactory)
27{
28 poco_check_ptr (pFactory);
29}
30
31
32HTTPServerConnectionFactory::~HTTPServerConnectionFactory()
33{
34}
35
36
37TCPServerConnection* HTTPServerConnectionFactory::createConnection(const StreamSocket& socket)
38{
39 return new HTTPServerConnection(socket, _pParams, _pFactory);
40}
41
42
43} } // namespace Poco::Net
44