bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
ProxyConfig.h
1//
2// Created by ndp on 10/19/20.
3//
4
5#ifndef HYRAX_GIT_PROXYCONFIG_H
6#define HYRAX_GIT_PROXYCONFIG_H
7
8#include <string>
9#include <map>
10#include <vector>
11
12namespace http {
13
14 class ProxyConfig {
15 private:
16 static ProxyConfig *d_instance;
17
18 std::string d_protocol;
19 std::string d_host;
20 std::string d_user_password;
21 std::string d_user_id;
22 std::string d_proxy_password;
23 int d_port;
24 int d_auth_type;
25 std::string d_no_proxy_regex;
26 bool d_configured;
27
28 ProxyConfig() :
29 d_protocol(""),
30 d_host(""),
31 d_user_password(""),
32 d_user_id(""),
33 d_proxy_password(""),
34 d_port(-1),
35 d_auth_type(-1),
36 d_no_proxy_regex(""),
37 d_configured(false) {
38 load_proxy_from_keys();
39 }
40
41 void load_proxy_from_keys();
42
43 public:
44 static ProxyConfig *theOne();
45
46 std::string protocol() { return d_protocol; }
47
48 std::string host() { return d_host; }
49
50 std::string password() { return d_user_password; }
51
52 std::string user() { return d_user_id; }
53
54 std::string proxy_password() { return d_proxy_password; }
55
56 int port() { return d_port; }
57
58 int auth_type() { return d_auth_type; }
59
60 std::string no_proxy_regex() { return d_no_proxy_regex; }
61
62 bool is_configured() { return d_configured; }
63
64 };
65
66
67} // namespace http
68#endif //HYRAX_GIT_PROXYCONFIG_H
utility class for the HTTP catalog module
Definition TheBESKeys.h:51