31#ifndef I_AllowedHosts_H
32#define I_AllowedHosts_H 1
40#define ALLOWED_HOSTS_BES_KEY "AllowedHosts"
57 std::vector<std::string> d_allowed_hosts;
59 static void initialize_instance();
60 static void delete_instance();
64 bool check(
const std::string &
url);
71 bool is_allowed(std::shared_ptr<http::url> candidate_url);
72 bool is_allowed(std::shared_ptr<http::url> candidate_url, std::string &whynot);
Can a given URL be dereferenced given the BES's configuration?
bool is_allowed(std::shared_ptr< http::url > candidate_url)
static AllowedHosts * theHosts()
Static accessor for the singleton.
utility class for the HTTP catalog module