Fix location of SetURL method wrongly copied from Gridftp plugin.

parent 949c763b
......@@ -44,6 +44,21 @@ namespace ArcDMCGridFTP {
return is_secure;
}
bool DataPointGridFTPDelegate::SetURL(const URL& u) {
if ((u.Protocol() != "gsiftp") && (u.Protocol() != "ftp")) {
return false;
}
if (u.Host() != url.Host()) {
return false;
}
// Globus FTP handle allows changing url completely
url = u;
if(triesleft < 1) triesleft = 1;
ResetMeta();
return true;
}
} // namespace ArcDMCGridFTP
extern Arc::PluginDescriptor const ARC_PLUGINS_TABLE_NAME[] = {
......
......@@ -31,6 +31,7 @@ namespace ArcDMCGridFTP {
virtual ~DataPointGridFTPDelegate();
static Plugin* Instance(PluginArgument *arg);
virtual bool RequiresCredentials() const;
virtual bool SetURL(const Arc::URL&);
private:
bool is_secure;
......
......@@ -586,21 +586,6 @@ namespace Arc {
return false;
}
bool DataPointDelegate::SetURL(const URL& u) {
// implement
if ((u.Protocol() != "gsiftp") && (u.Protocol() != "ftp")) {
return false;
}
if (u.Host() != url.Host()) {
return false;
}
// Globus FTP handle allows changing url completely
url = u;
if(triesleft < 1) triesleft = 1;
ResetMeta();
return true;
}
std::string::size_type const DataPointDelegate::LogRedirect::level_size_max_ = 32;
std::string::size_type const DataPointDelegate::LogRedirect::buffer_size_max_ = 4096;
......
......@@ -77,7 +77,6 @@ namespace Arc {
virtual ~DataPointDelegate();
static Plugin* Instance(PluginArgument *arg);
virtual bool SetURL(const URL& url);
virtual DataStatus StartReading(DataBuffer& buf);
virtual DataStatus StartWriting(DataBuffer& buf,
DataCallback *space_cb = NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment