75 TUri(
const char *uri);
#define ClassDef(name, id)
Bool_t operator==(const TUri &u1, const TUri &u2)
Implementation of a TUri Equivalence operator that uses syntax-based normalisation see chapter 6....
Mother of all ROOT objects.
This class represents a RFC 3986 compatible URI.
const TString GetRelativePart() const
relative-part = "//" authority path-abempty
static Bool_t IsPath(const TString &)
Returns kTRUE if string qualifies as valid path component:
Bool_t SetScheme(const TString &scheme)
Set scheme component of URI:
Bool_t IsRelative() const
Returns kTRUE if instance qualifies as relative-ref relative-ref = relative-part [ "?...
static const TString RemoveDotSegments(const TString &)
This functions implements the "remove_dot_segments" routine of chapter 5.2.4 "for interpreting and re...
Bool_t SetFragment(const TString &fragment)
Set fragment component of URI:
Bool_t SetPath(const TString &path)
Set path component of URI:
static Bool_t IsPathAbempty(const TString &)
Returns kTRUE if string qualifies as valid path-abempty component:
Bool_t SetRelativePart(const TString &)
Returns kTRUE is string qualifies as relative-part:
Bool_t IsAbsolute() const
Returns kTRUE if instance qualifies as absolute-URI absolute-URI = scheme ":" hier-part [ "?...
const TString GetHost() const
Bool_t IsSortable() const
static Bool_t IsFragment(const TString &)
Returns kTRUE if string qualifies as valid fragment component.
Bool_t SetUserInfo(const TString &userinfo)
Set userinfo component of URI:
static Bool_t IsQuery(const TString &)
Returns kTRUE if string qualifies as URI query:
const TString GetPort() const
Bool_t IsUri() const
Returns kTRUE if instance qualifies as URI URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] ...
static const TString PctEncode(const TString &source)
Percent-encode and return the given string according to RFC 3986 in principle, this function cannot f...
static const TString PctNormalise(const TString &source)
Normalise the percent-encoded parts of the string i.e.
const TString GetPath() const
const TString GetHierPart() const
void Normalise()
Syntax based normalisation according to RFC chapter 6.2.2.
static Bool_t IsUserInfo(const TString &)
Return kTRUE is string qualifies as valid URI userinfo:
const TString GetUri() const
Returns the whole URI - an implementation of chapter 5.3 component recomposition.
const TString GetFragment() const
static Bool_t IsPathRootless(const TString &)
Returns kTRUE if string qualifies as valid path-rootless component:
static Bool_t IsHost(const TString &)
Returns kTRUE if string qualifies as valid host component: host = IP-literal / IPv4address / reg-name...
static Bool_t IsScheme(const TString &)
Returns kTRUE if string qualifies as URI scheme:
const TString GetQuery() const
Bool_t SetAuthority(const TString &authority)
Set authority part of URI:
void Print(Option_t *option="") const
Display function,.
static TUri Transform(const TUri &reference, const TUri &base)
Transform a URI reference into its target URI using given a base URI.
void Reset()
Initialize this URI object.
const TString GetAuthority() const
Returns the authority part of the instance:
Bool_t HasFragment() const
static Bool_t IsPort(const TString &)
Returns kTRUE if string qualifies as valid port component:
static Bool_t IsAuthority(const TString &)
Returns kTRUE if string qualifies as valid URI authority:
Bool_t HasRelativePart() const
friend Bool_t operator==(const TUri &u1, const TUri &u2)
Implementation of a TUri Equivalence operator that uses syntax-based normalisation see chapter 6....
static Bool_t IsPathNoscheme(const TString &)
Returns kTRUE if string qualifies as valid path-noscheme component:
static const TString MergePaths(const TUri &reference, const TUri &base)
RFC 3986, 5.3.2.
static Bool_t IsPathAbsolute(const TString &)
Returns kTRUE if string qualifies as valid path-absolute component.
static Bool_t IsUnreserved(const TString &string)
Returns kTRUE, if the given string does not contain RFC 3986 reserved characters.
Bool_t SetPort(const TString &port)
Set port component of URI:
Bool_t SetQuery(const TString &path)
Set query component of URI:
Bool_t HasHierPart() const
static Bool_t IsHierPart(const TString &)
Returns kTRUE if string qualifies as hier-part:
static Bool_t IsRelativePart(const TString &)
Returns kTRUE is string qualifies as relative-part:
static Bool_t IsIpv4(const TString &)
Returns kTRUE, if string holds a valid IPv4 address currently only decimal variant supported.
Bool_t IsReference() const
Returns kTRUE if instance qualifies as URI-reference URI-reference = URI / relative-ref cf.
static Bool_t IsPathEmpty(const TString &)
Returns kTRUE if string qualifies as valid path-empty component:
TUri & operator=(const TUri &rhs)
TUri assignment operator.
Bool_t SetUri(const TString &uri)
Parse URI and set the member variables accordingly, returns kTRUE if URI validates,...
Bool_t SetHost(const TString &host)
Set host component of URI:
Bool_t SetHierPart(const TString &hier)
returns hier-part component of URI
static const TString PctDecodeUnreserved(const TString &source)
Percent-decode the given string according to chapter 2.1 we assume a valid pct-encoded string.
Bool_t HasAuthority() const
const TString GetUserInfo() const
const TString GetScheme() const
Bool_t HasUserInfo() const
static const TString PctDecode(const TString &source)
Percent-decode the given string according to chapter 2.1 we assume a valid pct-encoded string.
static Bool_t IsRegName(const TString &)
Returns kTRUE if string qualifies as valid reg-name: