1 | // |
---|---|
2 | // URIStreamFactory.cpp |
3 | // |
4 | // Library: Foundation |
5 | // Package: URI |
6 | // Module: URIStreamFactory |
7 | // |
8 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
9 | // and Contributors. |
10 | // |
11 | // SPDX-License-Identifier: BSL-1.0 |
12 | // |
13 | |
14 | |
15 | #include "Poco/URIStreamFactory.h" |
16 | #include <algorithm> |
17 | |
18 | |
19 | namespace Poco { |
20 | |
21 | |
22 | URIStreamFactory::URIStreamFactory() |
23 | { |
24 | } |
25 | |
26 | |
27 | URIStreamFactory::~URIStreamFactory() |
28 | { |
29 | } |
30 | |
31 | |
32 | URIRedirection::URIRedirection(const std::string& rUri): |
33 | _uri(rUri) |
34 | { |
35 | } |
36 | |
37 | |
38 | URIRedirection::URIRedirection(const URIRedirection& redir): |
39 | _uri(redir._uri) |
40 | { |
41 | } |
42 | |
43 | |
44 | URIRedirection& URIRedirection::operator = (const URIRedirection& redir) |
45 | { |
46 | URIRedirection tmp(redir); |
47 | swap(tmp); |
48 | return *this; |
49 | } |
50 | |
51 | |
52 | void URIRedirection::swap(URIRedirection& redir) |
53 | { |
54 | std::swap(_uri, redir._uri); |
55 | } |
56 | |
57 | |
58 | } // namespace Poco |
59 |