6. XRootD.client.URL
: XRootD URL object¶
6.1. Class Reference¶
- class XRootD.client.URL[source]¶
Server URL object.
This class has each portion of an XRootD URL split up as attributes. For example, given the URL:
>>> url = URL(root://user1:passwd1@host1:1234//path?param1=val1¶m2=val2)
then
url.hostid
would return user1:passwd1@host1:1234.- Variables:
hostid – The host part of the URL, i.e.
user1:passwd1@host1:1234
protocol – The protocol part of the URL, i.e.
root
username – The username part of the URL, i.e.
user1
password – The password part of the URL, i.e.
passwd1
hostname – The name of the target host part of the URL, i.e.
host1
port – The target port part of the URL, i.e.
1234
path – The path part of the URL, i.e.
path
path_with_params – The path part of the URL with parameters, i.e.
path?param1=val1¶m2=val2