WebFramework v3.0.12
Web framework for C++.
Loading...
Searching...
No Matches
HTTPSSingleton.cpp
1#include "HTTPSSingleton.h"
2
3using namespace std;
4
5namespace framework
6{
7 namespace utility
8 {
9 HTTPSSingleton::HTTPSSingleton() :
10 useHTTPS(false)
11 {
12
13 }
14
15 HTTPSSingleton& HTTPSSingleton::get()
16 {
17 static HTTPSSingleton instance;
18
19 return instance;
20 }
21
22 void HTTPSSingleton::setUseHTTPS(bool useHTTPS)
23 {
24 this->useHTTPS = useHTTPS;
25 }
26
27 void HTTPSSingleton::setPathToCertificate(const filesystem::path& pathToCertificate)
28 {
29 this->pathToCertificate = pathToCertificate;
30 }
31
32 void HTTPSSingleton::setPathToKey(const filesystem::path& pathToKey)
33 {
34 this->pathToKey = pathToKey;
35 }
36
37 bool HTTPSSingleton::getUseHTTPS() const
38 {
39 return useHTTPS;
40 }
41
42 const filesystem::path& HTTPSSingleton::getPathToCertificate() const
43 {
44 return pathToCertificate;
45 }
46
47 const filesystem::path& HTTPSSingleton::getPathToKey() const
48 {
49 return pathToKey;
50 }
51 }
52}