27 #include "XrdVersion.hh"
39 const std::map<std::string, std::string>* config =
40 static_cast< const std::map<std::string, std::string>*
>(arg);
60 std::list<std::string> lst_envs;
61 lst_envs.push_back(
"XROOT_PROXY");
62 lst_envs.push_back(
"xroot_proxy");
63 lst_envs.push_back(
"XROOT_PROXY_EXCL_DOMAINS");
64 lst_envs.push_back(
"xroot_proxy_excl_domains");
66 for (std::list<std::string>::iterator it_env = lst_envs.begin();
67 it_env != lst_envs.end(); ++it_env) {
68 std::map<std::string, std::string>::const_iterator it_map =
69 config->find(*it_env);
71 if (it_map != config->end() && !it_map->second.empty()) {
72 if (setenv(it_map->first.c_str(), it_map->second.c_str(), 0)) {
73 log->
Error(1,
"Failed to set env variable %s from the configuration"
74 " file", it_map->first.c_str());
102 log->
Error(1,
"FileSystem plugin implementation not supported");
XrdVERSIONINFO(XrdClGetPlugIn, XrdClGetPlugIn) extern "C"
void * XrdClGetPlugIn(const void *)
static Log * GetLog()
Get default log.
An interface for file plug-ins.
An interface for file plug-ins.
void Error(uint64_t topic, const char *format,...)
Report an error.
XrdCl proxy prefix plugin factory.
ProxyFactory(const std::map< std::string, std::string > *config)
virtual ~ProxyFactory()
Destructor.
virtual XrdCl::FilePlugIn * CreateFile(const std::string &url)
Create a file plug-in for the given URL.
virtual XrdCl::FileSystemPlugIn * CreateFileSystem(const std::string &url)
Create a file system plug-in for the given URL.