6. XRootD.client.URL: XRootD URL object

6.1. Class Reference

class XRootD.client.URL

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&param2=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&param2=val2

6.1.1. Methods

URL.is_valid()

Return the validity of the URL

URL.clear()

Clear the URL

Table Of Contents

Previous topic

5. XRootD.client.flags: Flags and constants

Next topic

7. XRootD.client.utils: Making life easier

This Page