XRootD
Loading...
Searching...
No Matches
XrdCl::URL Class Reference

URL representation. More...

#include <XrdClURL.hh>

+ Collaboration diagram for XrdCl::URL:

Public Types

typedef std::map< std::string, std::string > ParamsMap
 

Public Member Functions

 URL ()
 Default constructor.
 
 URL (const char *url)
 
 URL (const std::string &url)
 
void Clear ()
 Clear the url.
 
bool FromString (const std::string &url)
 Parse a string and fill the URL fields.
 
std::string GetChannelId () const
 
std::string GetHostId () const
 Get the host part of the URL (user:password@host:port)
 
const std::string & GetHostName () const
 Get the name of the target host.
 
std::string GetLocation () const
 Get location (protocol://host:port/path)
 
std::string GetLoginToken () const
 Get the login token if present in the opaque info.
 
std::string GetObfuscatedURL () const
 Get the URL with authz information obfuscated.
 
const ParamsMapGetParams () const
 Get the URL params.
 
std::string GetParamsAsString () const
 Get the URL params as string.
 
std::string GetParamsAsString (bool filter) const
 Get the URL params as string.
 
const std::string & GetPassword () const
 Get the password.
 
const std::string & GetPath () const
 Get the path.
 
std::string GetPathWithFilteredParams () const
 Get the path with params, filteres out 'xrdcl.'.
 
std::string GetPathWithParams () const
 Get the path with params.
 
int GetPort () const
 Get the target port.
 
const std::string & GetProtocol () const
 Get the protocol.
 
std::string GetURL () const
 Get the URL.
 
const std::string & GetUserName () const
 Get the username.
 
bool IsLocalFile () const
 
bool IsMetalink () const
 Is it a URL to a metalink.
 
bool IsSecure () const
 Does the protocol indicate encryption.
 
bool IsTPC () const
 Is the URL used in TPC context.
 
bool IsValid () const
 Is the url valid.
 
void SetHostName (const std::string &hostName)
 Set the host name.
 
void SetHostPort (const std::string &hostName, int port)
 
void SetParams (const ParamsMap &params)
 Set params.
 
void SetParams (const std::string &params)
 Set params.
 
void SetPassword (const std::string &password)
 Set the password.
 
void SetPath (const std::string &path)
 Set the path.
 
void SetPort (int port)
 
void SetProtocol (const std::string &protocol)
 Set protocol.
 
void SetUserName (const std::string &userName)
 Set the username.
 

Detailed Description

URL representation.

Definition at line 30 of file XrdClURL.hh.

Member Typedef Documentation

◆ ParamsMap

std::map<std::string, std::string> XrdCl::URL::ParamsMap

Map of get params

Definition at line 33 of file XrdClURL.hh.

Constructor & Destructor Documentation

◆ URL() [1/3]

XrdCl::URL::URL ( )

Default constructor.

Definition at line 38 of file XrdClURL.cc.

38 :
39 pPort( 1094 )
40 {
41 }

◆ URL() [2/3]

XrdCl::URL::URL ( const std::string & url)

Constructor

Parameters
urlan url in format: protocol://user:password@host:port/path?param1=x&param2=y

Definition at line 46 of file XrdClURL.cc.

46 :
47 pPort( 1094 )
48 {
49 FromString( url );
50 }
bool FromString(const std::string &url)
Parse a string and fill the URL fields.
Definition XrdClURL.cc:61

References FromString().

+ Here is the call graph for this function:

◆ URL() [3/3]

XrdCl::URL::URL ( const char * url)

Constructor

Parameters
urlan url in format: protocol://user:password@host:port/path?param1=x&param2=y

Definition at line 52 of file XrdClURL.cc.

52 : pPort( 1094 )
53 {
54 FromString( url );
55 }

References FromString().

+ Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void XrdCl::URL::Clear ( )

Clear the url.

Definition at line 429 of file XrdClURL.cc.

430 {
431 pHostId.clear();
432 pProtocol.clear();
433 pUserName.clear();
434 pPassword.clear();
435 pHostName.clear();
436 pPort = 1094;
437 pPath.clear();
438 pParams.clear();
439 pURL.clear();
440 }

Referenced by FromString().

+ Here is the caller graph for this function:

◆ FromString()

bool XrdCl::URL::FromString ( const std::string & url)

Parse a string and fill the URL fields.

Definition at line 61 of file XrdClURL.cc.

62 {
63 Log *log = DefaultEnv::GetLog();
64
65 Clear();
66
67 if( url.length() == 0 )
68 {
69 log->Error( UtilityMsg, "The given URL is empty" );
70 return false;
71 }
72
73 //--------------------------------------------------------------------------
74 // Extract the protocol, assume file:// if none found
75 //--------------------------------------------------------------------------
76 size_t pos = url.find( "://" );
77
78 std::string current;
79 if( pos != std::string::npos )
80 {
81 pProtocol = url.substr( 0, pos );
82 current = url.substr( pos+3 );
83 }
84 else if( url[0] == '/' )
85 {
86 pProtocol = "file";
87 current = url;
88 }
89 else if( url[0] == '-' )
90 {
91 pProtocol = "stdio";
92 current = "-";
93 pPort = 0;
94 }
95 else
96 {
97 pProtocol = "root";
98 current = url;
99 }
100
101 //--------------------------------------------------------------------------
102 // If the protocol is HTTP or HTTPS, change the default port number
103 //--------------------------------------------------------------------------
104 if (pProtocol == "http") {
105 pPort = 80;
106 }
107 if (pProtocol == "https") {
108 pPort = 443;
109 }
110
111 //--------------------------------------------------------------------------
112 // Extract host info and path
113 //--------------------------------------------------------------------------
114 std::string path;
115 std::string hostInfo;
116
117 if( pProtocol == "stdio" )
118 path = current;
119 else if( pProtocol == "file")
120 {
121 if( current[0] == '/' )
122 current = "localhost" + current;
123 pos = current.find( '/' );
124 if( pos == std::string::npos )
125 hostInfo = current;
126 else
127 {
128 hostInfo = current.substr( 0, pos );
129 path = current.substr( pos );
130 }
131 }
132 else
133 {
134 pos = current.find( '/' );
135 if( pos == std::string::npos )
136 hostInfo = current;
137 else
138 {
139 hostInfo = current.substr( 0, pos );
140 path = current.substr( pos+1 );
141 }
142 }
143
144 if( !ParseHostInfo( hostInfo ) )
145 {
146 Clear();
147 return false;
148 }
149
150 if( !ParsePath( path ) )
151 {
152 Clear();
153 return false;
154 }
155
156 ComputeURL();
157
158 //--------------------------------------------------------------------------
159 // Dump the url
160 //--------------------------------------------------------------------------
161 std::string urlLog = url;
162 if( unlikely(log->GetLevel() >= Log::DumpMsg)) {
163 urlLog = obfuscateAuth(urlLog);
164 }
165 log->Dump( UtilityMsg,
166 "URL: %s\n"
167 "Protocol: %s\n"
168 "User Name: %s\n"
169 "Password: %s\n"
170 "Host Name: %s\n"
171 "Port: %d\n"
172 "Path: %s\n",
173 urlLog.c_str(), pProtocol.c_str(), pUserName.c_str(),
174 pPassword.c_str(), pHostName.c_str(), pPort, pPath.c_str() );
175 return true;
176 }
#define unlikely(x)
std::string obfuscateAuth(const std::string &input)
static Log * GetLog()
Get default log.
@ DumpMsg
print details of the request and responses
Definition XrdClLog.hh:113
void Clear()
Clear the url.
Definition XrdClURL.cc:429
const uint64_t UtilityMsg
XrdSysError Log
Definition XrdConfig.cc:112

References Clear(), XrdCl::Log::Dump(), XrdCl::Log::DumpMsg, XrdCl::Log::Error(), XrdCl::Log::GetLevel(), XrdCl::DefaultEnv::GetLog(), obfuscateAuth(), unlikely, and XrdCl::UtilityMsg.

Referenced by URL(), and URL().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetChannelId()

std::string XrdCl::URL::GetChannelId ( ) const

Get the host part of the URL (user:password@host:port) plus channel specific CGI (xrdcl.identity & xrd.gsiusrpxy)

Definition at line 505 of file XrdClURL.cc.

506 {
507 std::string ret = pProtocol + "://" + pHostId + "/";
508 bool hascgi = false;
509
510 std::string keys[] = { "xrdcl.intent",
511 "xrd.gsiusrpxy",
512 "xrd.gsiusrcrt",
513 "xrd.gsiusrkey",
514 "xrd.sss",
515 "xrd.k5ccname" };
516 size_t size = sizeof( keys ) / sizeof( std::string );
517
518 for( size_t i = 0; i < size; ++i )
519 {
520 ParamsMap::const_iterator itr = pParams.find( keys[i] );
521 if( itr != pParams.end() )
522 {
523 ret += hascgi ? '&' : '?';
524 ret += itr->first;
525 ret += '=';
526 ret += itr->second;
527 hascgi = true;
528 }
529 }
530
531 return ret;
532 }

Referenced by XrdCl::Channel::Channel(), XrdCl::XRootDChannelInfo::XRootDChannelInfo(), XrdCl::PostMaster::CollapseRedirect(), XrdCl::PostMaster::ForceDisconnect(), XrdCl::PostMaster::ForceReconnect(), XrdCl::SIDMgrPool::GetSIDMgr(), and XrdCl::PostMaster::QueryTransport().

+ Here is the caller graph for this function:

◆ GetHostId()

◆ GetHostName()

const std::string & XrdCl::URL::GetHostName ( ) const
inline

Get the name of the target host.

Definition at line 170 of file XrdClURL.hh.

171 {
172 return pHostName;
173 }

Referenced by XrdCl::Stream::CanCollapse(), XrdCl::AsyncSocketHandler::DoTlsHandShake(), XrdCl::Stream::EnableLink(), XrdCl::Utils::GetHostAddresses(), XrdCl::HttpFileSystemPlugIn::Mv(), and XrdCl::HttpFileSystemPlugIn::Stat().

+ Here is the caller graph for this function:

◆ GetLocation()

std::string XrdCl::URL::GetLocation ( ) const

Get location (protocol://host:port/path)

Get protocol://host:port/path.

Definition at line 337 of file XrdClURL.cc.

338 {
339 std::ostringstream o;
340 o << pProtocol << "://";
341 if( pProtocol == "file" )
342 o << pHostName;
343 else
344 o << pHostName << ":" << pPort << "/";
345 o << pPath;
346 return o.str();
347 }

Referenced by XrdCl::RedirectorRegistry::Get(), XrdCl::HttpFilePlugIn::Open(), XrdCl::RedirectorRegistry::Release(), and XrdCl::RedirectEntry::ToString().

+ Here is the caller graph for this function:

◆ GetLoginToken()

std::string XrdCl::URL::GetLoginToken ( ) const

Get the login token if present in the opaque info.

Definition at line 360 of file XrdClURL.cc.

361 {
362 auto itr = pParams.find( "xrd.logintoken" );
363 if( itr == pParams.end() )
364 return "";
365 return itr->second;
366 }

Referenced by XrdCl::XRootDTransport::InitializeChannel().

+ Here is the caller graph for this function:

◆ GetObfuscatedURL()

std::string XrdCl::URL::GetObfuscatedURL ( ) const

Get the URL with authz information obfuscated.

Definition at line 491 of file XrdClURL.cc.

491 {
492 return obfuscateAuth(pURL);
493 }

References obfuscateAuth().

Referenced by XrdCl::FileSystem::FileSystem(), XrdCl::HttpFileSystemPlugIn::HttpFileSystemPlugIn(), XrdCl::FileStateHandler::AfterForkChild(), DoTail(), XrdPosixAdmin::isOK(), XrdCl::FileStateHandler::OnClose(), XrdCl::FileStateHandler::OnOpen(), and XrdCl::FileStateHandler::TimeOutRequests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetParams()

const ParamsMap & XrdCl::URL::GetParams ( ) const
inline

Get the URL params.

Definition at line 244 of file XrdClURL.hh.

245 {
246 return pParams;
247 }

Referenced by XrdCl::Channel::Channel(), XrdCl::Utils::CheckEC(), XrdCl::GetEcHandler(), XrdCl::Utils::GetIntParameter(), XrdCl::FileSystemUtils::GetSpaceInfo(), XrdCl::Utils::GetStringParameter(), XrdCl::FileStateHandler::OnOpen(), XrdCl::HttpFilePlugIn::Open(), XrdCl::CopyProcess::Prepare(), XrdCl::XRootDMsgHandler::Process(), XrdCl::MessageUtils::RewriteCGIAndPath(), and XrdCl::ClassicCopyJob::Run().

+ Here is the caller graph for this function:

◆ GetParamsAsString() [1/2]

std::string XrdCl::URL::GetParamsAsString ( ) const

Get the URL params as string.

Definition at line 352 of file XrdClURL.cc.

353 {
354 return GetParamsAsString( false );
355 }
std::string GetParamsAsString() const
Get the URL params as string.
Definition XrdClURL.cc:352

References GetParamsAsString().

Referenced by GetParamsAsString(), GetPathWithFilteredParams(), and GetPathWithParams().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetParamsAsString() [2/2]

std::string XrdCl::URL::GetParamsAsString ( bool filter) const

Get the URL params as string.

Get the URL params as string

Parameters
filter: if set to true filters out 'xrdcl.'

Definition at line 371 of file XrdClURL.cc.

372 {
373 if( pParams.empty() )
374 return "";
375
376 std::ostringstream o;
377 o << "?";
378 ParamsMap::const_iterator it;
379 for( it = pParams.begin(); it != pParams.end(); ++it )
380 {
381 // we filter out client specific parameters
382 if( filter && it->first.compare( 0, 6, "xrdcl." ) == 0 )
383 continue;
384 if( it != pParams.begin() ) o << "&";
385 o << it->first << "=" << it->second;
386 }
387 std::string ret = o.str();
388 if( ret == "?" ) ret.clear();
389 return ret;
390 }

◆ GetPassword()

const std::string & XrdCl::URL::GetPassword ( ) const
inline

Get the password.

Definition at line 153 of file XrdClURL.hh.

154 {
155 return pPassword;
156 }

Referenced by XrdCl::XRootDMsgHandler::Process().

+ Here is the caller graph for this function:

◆ GetPath()

◆ GetPathWithFilteredParams()

std::string XrdCl::URL::GetPathWithFilteredParams ( ) const

Get the path with params, filteres out 'xrdcl.'.

Definition at line 324 of file XrdClURL.cc.

325 {
326 std::ostringstream o;
327 if( !pPath.empty() )
328 o << pPath;
329
330 o << GetParamsAsString( true );
331 return o.str();
332 }

References GetParamsAsString().

Referenced by XrdCl::MessageUtils::RewriteCGIAndPath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPathWithParams()

std::string XrdCl::URL::GetPathWithParams ( ) const

Get the path with params.

Definition at line 311 of file XrdClURL.cc.

312 {
313 std::ostringstream o;
314 if( !pPath.empty() )
315 o << pPath;
316
317 o << GetParamsAsString();
318 return o.str();
319 }

References GetParamsAsString().

Referenced by XrdPosixAdmin::FanOut(), main(), XrdPosixXrootd::Mkdir(), XrdPosixDir::Open(), XrdPosixAdmin::Query(), XrdPosixXrootd::Rename(), XrdPosixXrootd::Rmdir(), XrdPosixAdmin::Stat(), XrdPosixAdmin::Stat(), XrdPosixXrootd::Statvfs(), XrdPosixXrootd::Truncate(), and XrdPosixXrootd::Unlink().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPort()

int XrdCl::URL::GetPort ( ) const
inline

Get the target port.

Definition at line 188 of file XrdClURL.hh.

189 {
190 return pPort;
191 }

Referenced by XrdPosixXrootd::endPoint(), XrdCl::Utils::GetHostAddresses(), XrdCl::HttpFileSystemPlugIn::Mv(), and XrdCl::HttpFileSystemPlugIn::Stat().

+ Here is the caller graph for this function:

◆ GetProtocol()

const std::string & XrdCl::URL::GetProtocol ( ) const
inline

Get the protocol.

Definition at line 118 of file XrdClURL.hh.

119 {
120 return pProtocol;
121 }

Referenced by XrdCl::Channel::Channel(), XrdCl::PostMaster::CollapseRedirect(), XrdCl::PlugInManager::GetFactory(), XrdCl::Utils::InferChecksumType(), XrdCl::HttpFileSystemPlugIn::Mv(), XrdCl::CopyProcess::Prepare(), ProgressDisplay::PrintCheckSum(), XrdCl::XRootDMsgHandler::Process(), and XrdCl::HttpFileSystemPlugIn::Stat().

+ Here is the caller graph for this function:

◆ GetURL()

std::string XrdCl::URL::GetURL ( ) const
inline

Get the URL.

Definition at line 86 of file XrdClURL.hh.

87 {
88 return pURL;
89 }

Referenced by XrdCl::FileSystem::FileSystem(), XrdCl::FSExecutor::FSExecutor(), ProgressDisplay::BeginJob(), DoTail(), XrdCl::LocalFileHandler::ExecRequest(), XrdCl::FileStateHandler::GetProperty(), main(), XrdCl::LocalFileHandler::Open(), XrdCl::CopyProcess::Prepare(), XrdCl::XRootDMsgHandler::Process(), and XrdCl::PropertyList::Set().

+ Here is the caller graph for this function:

◆ GetUserName()

const std::string & XrdCl::URL::GetUserName ( ) const
inline

Get the username.

Definition at line 135 of file XrdClURL.hh.

136 {
137 return pUserName;
138 }

Referenced by XrdCl::XRootDMsgHandler::Process().

+ Here is the caller graph for this function:

◆ IsLocalFile()

bool XrdCl::URL::IsLocalFile ( ) const

Is it a URL to a local file (file://localhost

Definition at line 467 of file XrdClURL.cc.

468 {
469 return pProtocol == "file" && pHostName == "localhost";
470 }

Referenced by XrdCl::FileStateHandler::~FileStateHandler(), XrdCl::Utils::HasPgRW(), XrdCl::Utils::HasXAttr(), XrdCl::Utils::InferChecksumType(), XrdCl::FileStateHandler::OnOpen(), ProgressDisplay::PrintCheckSum(), and XrdCl::XRootDMsgHandler::Process().

+ Here is the caller graph for this function:

◆ IsMetalink()

bool XrdCl::URL::IsMetalink ( ) const

Is it a URL to a metalink.

Definition at line 458 of file XrdClURL.cc.

459 {
460 Env *env = DefaultEnv::GetEnv();
461 int mlProcessing = DefaultMetalinkProcessing;
462 env->GetInt( "MetalinkProcessing", mlProcessing );
463 if( !mlProcessing ) return false;
464 return PathEndsWith( ".meta4" ) || PathEndsWith( ".metalink" );
465 }
static Env * GetEnv()
Get default client environment.
const int DefaultMetalinkProcessing

References XrdCl::DefaultMetalinkProcessing, XrdCl::DefaultEnv::GetEnv(), and XrdCl::Env::GetInt().

Referenced by XrdCl::FileStateHandler::~FileStateHandler(), XrdCl::Utils::InferChecksumType(), XrdCl::FileStateHandler::OnOpen(), XrdCl::CopyProcess::Prepare(), and XrdCl::XRootDMsgHandler::Process().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsSecure()

bool XrdCl::URL::IsSecure ( ) const

Does the protocol indicate encryption.

Definition at line 475 of file XrdClURL.cc.

476 {
477 return ( pProtocol == "roots" || pProtocol == "xroots" );
478 }

Referenced by XrdCl::XRootDTransport::InitializeChannel().

+ Here is the caller graph for this function:

◆ IsTPC()

bool XrdCl::URL::IsTPC ( ) const

Is the URL used in TPC context.

Definition at line 483 of file XrdClURL.cc.

484 {
485 ParamsMap::const_iterator itr = pParams.find( "xrdcl.intent" );
486 if( itr != pParams.end() )
487 return itr->second == "tpc";
488 return false;
489 }

Referenced by XrdCl::XRootDTransport::InitializeChannel().

+ Here is the caller graph for this function:

◆ IsValid()

bool XrdCl::URL::IsValid ( ) const

Is the url valid.

Definition at line 445 of file XrdClURL.cc.

446 {
447 if( pProtocol.empty() )
448 return false;
449 if( pProtocol == "file" && pPath.empty() )
450 return false;
451 if( pProtocol == "stdio" && pPath != "-" )
452 return false;
453 if( pProtocol != "file" && pProtocol != "stdio" && pHostName.empty() )
454 return false;
455 return true;
456 }

Referenced by XrdCl::Stream::EnableLink(), XrdCl::FileSystemUtils::GetSpaceInfo(), XrdPosixAdmin::isOK(), main(), main(), XrdCl::CopyProcess::Prepare(), XrdCl::XRootDMsgHandler::Process(), XrdPosixXrootd::Rename(), XrdCl::MessageUtils::SendMessage(), and XrdCl::XRootDMsgHandler::SetLoadBalancer().

+ Here is the caller graph for this function:

◆ SetHostName()

void XrdCl::URL::SetHostName ( const std::string & hostName)
inline

Set the host name.

Definition at line 178 of file XrdClURL.hh.

179 {
180 pHostName = hostName;
181 ComputeHostId();
182 ComputeURL();
183 }

Referenced by XrdPosixAdmin::FanOut().

+ Here is the caller graph for this function:

◆ SetHostPort()

void XrdCl::URL::SetHostPort ( const std::string & hostName,
int port )
inline

Definition at line 206 of file XrdClURL.hh.

207 {
208 pHostName = hostName;
209 pPort = port;
210 ComputeHostId();
211 ComputeURL();
212 }

◆ SetParams() [1/2]

void XrdCl::URL::SetParams ( const ParamsMap & params)
inline

Set params.

Definition at line 274 of file XrdClURL.hh.

275 {
276 pParams = params;
277 ComputeURL();
278 }

◆ SetParams() [2/2]

void XrdCl::URL::SetParams ( const std::string & params)

Set params.

Definition at line 395 of file XrdClURL.cc.

396 {
397 pParams.clear();
398 std::string p = params;
399
400 if( p.empty() )
401 return;
402
403 if( p[0] == '?' )
404 p.erase( 0, 1 );
405
406 std::vector<std::string> paramsVect;
407 std::vector<std::string>::iterator it;
408 Utils::splitString( paramsVect, p, "&" );
409 for( it = paramsVect.begin(); it != paramsVect.end(); ++it )
410 {
411 if( it->empty() ) continue;
412 size_t qpos = it->find( '?' );
413 if( qpos != std::string::npos ) // we have login token
414 {
415 pParams["xrd.logintoken"] = it->substr( qpos + 1 );
416 it->erase( qpos );
417 }
418 size_t pos = it->find( "=" );
419 if( pos == std::string::npos )
420 pParams[*it] = "";
421 else
422 pParams[it->substr(0, pos)] = it->substr( pos+1, it->length() );
423 }
424 }
static void splitString(Container &result, const std::string &input, const std::string &delimiter)
Split a string.
Definition XrdClUtils.hh:56

References XrdCl::Utils::splitString().

Referenced by XrdCl::Channel::Channel(), XrdCl::FileStateHandler::OnOpen(), XrdCl::XRootDMsgHandler::Process(), XrdCl::MessageUtils::RewriteCGIAndPath(), and XrdCl::ClassicCopyJob::Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPassword()

void XrdCl::URL::SetPassword ( const std::string & password)
inline

Set the password.

Definition at line 161 of file XrdClURL.hh.

162 {
163 pPassword = password;
164 ComputeURL();
165 }

Referenced by XrdCl::XRootDMsgHandler::Process().

+ Here is the caller graph for this function:

◆ SetPath()

void XrdCl::URL::SetPath ( const std::string & path)
inline

Set the path.

Definition at line 225 of file XrdClURL.hh.

226 {
227 pPath = path;
228 ComputeURL();
229 }

Referenced by XrdCl::ZipListHandler::ZipListHandler(), XrdCl::HttpFileSystemPlugIn::DirList(), DoTail(), XrdCl::HttpFileSystemPlugIn::MkDir(), XrdCl::FileStateHandler::OnOpen(), XrdCl::CopyProcess::Prepare(), XrdCl::MessageUtils::RewriteCGIAndPath(), XrdCl::HttpFileSystemPlugIn::Rm(), and XrdCl::HttpFileSystemPlugIn::RmDir().

+ Here is the caller graph for this function:

◆ SetPort()

void XrdCl::URL::SetPort ( int port)
inline

Definition at line 196 of file XrdClURL.hh.

197 {
198 pPort = port;
199 ComputeHostId();
200 ComputeURL();
201 }

Referenced by XrdPosixAdmin::FanOut().

+ Here is the caller graph for this function:

◆ SetProtocol()

void XrdCl::URL::SetProtocol ( const std::string & protocol)
inline

Set protocol.

Definition at line 126 of file XrdClURL.hh.

127 {
128 pProtocol = protocol;
129 ComputeURL();
130 }

Referenced by XrdCl::Channel::Channel(), XrdCl::FileSystem::DirList(), and XrdCl::XRootDMsgHandler::Process().

+ Here is the caller graph for this function:

◆ SetUserName()

void XrdCl::URL::SetUserName ( const std::string & userName)
inline

Set the username.

Definition at line 143 of file XrdClURL.hh.

144 {
145 pUserName = userName;
146 ComputeHostId();
147 ComputeURL();
148 }

Referenced by XrdCl::XRootDMsgHandler::Process().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: