57 string d_rc_file_path;
61 unsigned int _dods_cache_max;
62 unsigned int _dods_cached_obj;
63 int _dods_ign_expires;
79 int _dods_default_expires;
80 int _dods_always_validate;
83 string d_dods_proxy_server_protocol;
84 string d_dods_proxy_server_host;
85 int d_dods_proxy_server_port;
86 string d_dods_proxy_server_userpw;
91 string _dods_proxy_server_host_url;
96 string _dods_proxy_for_regexp;
97 string _dods_proxy_for_proxy_host_url;
98 int _dods_proxy_for_regexp_flags;
101 bool d_dods_no_proxy_for;
102 string d_dods_no_proxy_for_protocol;
103 string d_dods_no_proxy_for_host;
104 int _dods_no_proxy_for_port;
108 string d_ais_database;
118 bool write_rc_file(
const string &pathname);
119 bool read_rc_file(
const string &pathname);
122 string check_env_var(
const string &variable_name);
123 string check_string(
string env_var);
125 static void initialize_instance();
126 static void delete_instance();
128 friend class RCReaderTest;
129 friend class HTTPConnectTest;
135 string get_dods_cache_root()
const throw()
139 bool get_use_cache()
const throw()
141 return _dods_use_cache;
143 int get_max_cache_size()
const throw()
145 return _dods_cache_max;
147 unsigned int get_max_cached_obj()
const throw()
149 return _dods_cached_obj;
151 int get_ignore_expires()
const throw()
153 return _dods_ign_expires;
155 int get_default_expires()
const throw()
157 return _dods_default_expires;
159 int get_always_validate()
const throw()
161 return _dods_always_validate;
163 int get_validate_ssl()
const throw()
165 return d_validate_ssl;
168 bool get_deflate()
const throw()
170 return _dods_deflate;
174 string get_proxy_server_protocol()
const throw()
176 return d_dods_proxy_server_protocol;
179 string get_proxy_server_host()
const throw()
181 return d_dods_proxy_server_host;
184 int get_proxy_server_port()
const throw()
186 return d_dods_proxy_server_port;
189 string get_proxy_server_userpw()
const throw()
191 return d_dods_proxy_server_userpw;
194 string get_proxy_server_host_url()
const throw()
196 return (d_dods_proxy_server_userpw.empty() ?
"" : d_dods_proxy_server_userpw +
"@")
197 + d_dods_proxy_server_host
208 bool is_proxy_for_used() throw()
210 return _dods_proxy_for;
213 string get_proxy_for_regexp()
const throw()
215 return _dods_proxy_for_regexp;
218 string get_proxy_for_proxy_host_url()
const throw()
220 return _dods_proxy_for_proxy_host_url;
224 int get_proxy_for_regexp_flags()
const throw()
226 return _dods_proxy_for_regexp_flags;
234 bool is_no_proxy_for_used() throw()
236 return d_dods_no_proxy_for;
238 string get_no_proxy_for_protocol()
const throw()
240 return d_dods_no_proxy_for_protocol;
242 string get_no_proxy_for_host()
const throw()
244 return d_dods_no_proxy_for_host;
248 int get_no_proxy_for_port()
const throw()
250 return _dods_no_proxy_for_port;
253 string get_ais_database()
const throw()
255 return d_ais_database;
258 string get_cookie_jar()
const throw()
264 void set_use_cache(
bool b)
throw()
268 void set_max_cache_size(
int i)
throw()
272 void set_max_cached_obj(
int i)
throw()
274 _dods_cached_obj = i;
276 void set_ignore_expires(
int i)
throw()
278 _dods_ign_expires = i;
280 void set_default_expires(
int i)
throw()
282 _dods_default_expires = i;
284 void set_always_validate(
int i)
throw()
286 _dods_always_validate = i;
288 void set_validate_ssl(
int i)
throw()
293 void set_deflate(
bool b)
throw()
298 void set_proxy_server_protocol(
const string &s)
throw()
300 d_dods_proxy_server_protocol = s;
302 void set_proxy_server_host(
const string &s)
throw()
304 d_dods_proxy_server_host = s;
306 void set_proxy_server_port(
int l)
throw()
308 d_dods_proxy_server_port = l;
310 void set_proxy_server_userpw(
const string &s)
throw()
312 d_dods_proxy_server_userpw = s;
316 void set_proxy_server_host_url(
const string &s)
throw()
318 _dods_proxy_server_host_url = s;
322 void set_proxy_for_regexp(
const string &s)
throw()
324 _dods_proxy_for_regexp = s;
327 void set_proxy_for_proxy_host_url(
const string &s)
throw()
329 _dods_proxy_for_proxy_host_url = s;
332 void set_proxy_for_regexp_flags(
int i)
throw()
334 _dods_proxy_for_regexp_flags = i;
337 void set_no_proxy_for_protocol(
const string &s)
throw()
339 d_dods_no_proxy_for_protocol = s;
341 void set_no_proxy_for_host(
const string &s)
throw()
343 d_dods_no_proxy_for_host = s;
347 void set_no_proxy_for_port(
int i)
throw()
349 _dods_no_proxy_for_port = i;
352 void set_ais_database(
const string &db)
throw()
360 #endif // _RCReader_h_