65 TUrl() : fUrl(), fProtocol(), fUser(), fPasswd(), fHost(), fFile(),
66 fAnchor(), fOptions(), fFileOA(), fHostFQ(), fPort(-1), fOptionsMap(0) { }
91 void SetUser(
const char *user) { fUser = user; fUrl =
""; }
92 void SetPasswd(
const char *pw) { fPasswd = pw; fUrl =
""; }
93 void SetHost(
const char *host) { fHost = host; fUrl =
""; }
94 void SetFile(
const char *
file) { fFile = file; fUrl =
""; fFileOA =
"";}
95 void SetAnchor(
const char *anchor) { fAnchor = anchor; fUrl =
""; fFileOA =
""; }
96 void SetOptions(
const char *opt) { fOptions = opt; fUrl =
""; fFileOA =
""; }
void SetFile(const char *file)
static THashList * fgHostFQDNs
void SetProtocol(const char *proto, Bool_t setDefaultPort=kFALSE)
Set protocol and, optionally, change the port accordingly.
void SetPasswd(const char *pw)
This class represents a WWW compatible URL.
const char * GetProtocol() const
void SetUrl(const char *url, Bool_t defaultIsFile=kFALSE)
Parse url character string and split in its different subcomponents.
const char * GetFileAndOptions() const
Return the file and its options (the string specified behind the ?).
void SetUser(const char *user)
const char * GetOptions() const
const char * GetHostFQDN() const
Return fully qualified domain name of url host.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
TString fHostFQ
file with option and anchor
const char * GetFile() const
const char * GetHost() const
#define ClassDef(name, id)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
const char * GetAnchor() const
const char * GetValueFromOptions(const char *key) const
Return a value for a given key from the URL options.
const char * GetUser() const
const char * GetPasswd() const
TUrl & operator=(const TUrl &rhs)
TUrl assignment operator.
void Print(Option_t *option="") const
Print URL on stdout.
Int_t Compare(const TObject *obj) const
Compare two urls as strings.
Int_t fPort
fully qualified host name
static TObjArray * GetSpecialProtocols()
Read the list of special protocols from the rootrc files.
void SetHost(const char *host)
void SetAnchor(const char *anchor)
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
void ParseOptions() const
Parse URL options into a key/value map.
Mother of all ROOT objects.
static TObjArray * fgSpecialProtocols
map containing options key/value pairs
void SetOptions(const char *opt)
void FindFile(char *u, Bool_t stripDoubleSlash=kTRUE)
Find file and optionally anchor and options.
Int_t GetIntValueFromOptions(const char *key) const
Return a value for a given key from the URL options as an Int_t, a missing key returns -1...
Bool_t IsSortable() const
Bool_t HasOption(const char *key) const
Returns true if the given key appears in the URL options list.
void CleanRelativePath()
Recompute the path removing all relative directory jumps via '..'.