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.hostidwould return user1:passwd1@host1:1234.- Variables:
hostid – The host part of the URL, i.e.
user1:passwd1@host1:1234protocol – The protocol part of the URL, i.e.
rootusername – The username part of the URL, i.e.
user1password – The password part of the URL, i.e.
passwd1hostname – The name of the target host part of the URL, i.e.
host1port – The target port part of the URL, i.e.
1234path – The path part of the URL, i.e.
pathpath_with_params – The path part of the URL with parameters, i.e.
path?param1=val1¶m2=val2