aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Foundation/src/URIStreamFactory.cpp
blob: 154693e16bbf21e779bf4df2613daff416e38f96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// URIStreamFactory.cpp
//
// Library: Foundation
// Package: URI
// Module:  URIStreamFactory
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:	BSL-1.0
//


#include "Poco/URIStreamFactory.h"
#include <algorithm>


namespace Poco {


URIStreamFactory::URIStreamFactory()
{
}


URIStreamFactory::~URIStreamFactory()
{
}


URIRedirection::URIRedirection(const std::string& rUri):
	_uri(rUri)
{
}


URIRedirection::URIRedirection(const URIRedirection& redir):
	_uri(redir._uri)
{
}


URIRedirection& URIRedirection::operator = (const URIRedirection& redir)
{
	URIRedirection tmp(redir);
	swap(tmp);
	return *this;
}


void URIRedirection::swap(URIRedirection& redir)
{
	std::swap(_uri, redir._uri);
}


} // namespace Poco