18#ifndef _DECAF_NET_URI_H_
19#define _DECAF_NET_URI_H_
44 mutable std::string uriString;
46 static const std::string unreserved;
47 static const std::string punct;
48 static const std::string reserved;
49 static const std::string someLegal;
50 static const std::string allLegal;
75 URI(
const std::string& uri);
86 URI(
const std::string& scheme,
const std::string& ssp,
const std::string& fragment);
101 URI(
const std::string& scheme,
const std::string& userInfo,
const std::string& host,
int port,
102 const std::string& path,
const std::string& query,
const std::string& fragment);
113 URI(
const std::string& scheme,
const std::string& host,
114 const std::string& path,
const std::string& fragment);
126 URI(
const std::string& scheme,
const std::string& authority,
127 const std::string& path,
const std::string& query,
128 const std::string& fragment);
469 void parseURI(
const std::string& uri,
bool forceServer);
478 std::string quoteComponent(
const std::string& component,
const std::string& legalset);
489 std::string encodeOthers(
const std::string& src)
const;
497 std::string decode(
const std::string& src)
const;
505 bool equalsHexCaseInsensitive(
const std::string& first,
const std::string& second)
const;
513 std::string convertHexToLowerCase(
const std::string& s)
const;
520 std::string
normalize(
const std::string& path)
const;
526 void setSchemeSpecificPart();
URI()
Default Constructor, same as calling a Constructor with all fields empty.
Basic type object that holds data that composes a given URI.
Definition URIType.h:31
virtual bool equals(const URI &value) const
std::string getScheme() const
URI(const std::string &uri)
Constructs a URI from the given string.
std::string getSchemeSpecificPart() const
Returns the decoded scheme-specific part of this URI.
virtual bool operator<(const URI &value) const
Compares this object to another and returns true if this object is considered to be less than the one...
URI(const URI &uri)
Constructs a URI as a copy of another URI.
std::string getRawQuery() const
Returns the raw query component of this URI.
std::string getRawFragment() const
Returns the raw fragment component of this URI.
virtual ~URI()
Definition URI.h:130
std::string getRawAuthority() const
Returns the raw authority component of this URI.
URI resolve(const URI &uri) const
Resolves the given URI against this URI.
std::string getRawPath() const
Returns the raw path component of this URI.
URL toURL() const
Constructs a URL from this URI.
URI(const std::string &scheme, const std::string &authority, const std::string &path, const std::string &query, const std::string &fragment)
Constructs a URI from the given components.
URI parseServerAuthority() const
Attempts to parse this URI's authority component, if defined, into user-information,...
std::string getRawUserInfo() const
Returns the raw user-information component of this URI.
std::string getHost() const
std::string getPath() const
std::string getUserInfo() const
URI resolve(const std::string &str) const
Constructs a new URI by parsing the given string and then resolving it against this URI.
bool isOpaque() const
Tells whether or not this URI is opaque.
URI()
Default Constructor, same as calling a Constructor with all fields empty.
URI normalize() const
Normalizes this URI's path.
URI(const std::string &scheme, const std::string &ssp, const std::string &fragment)
Constructs a URI from the given components.
std::string getFragment() const
URI relativize(const URI &uri) const
Relativizes the given URI against this URI.
bool isAbsolute() const
Tells whether or not this URI is absolute.
URI(const std::string &scheme, const std::string &host, const std::string &path, const std::string &fragment)
Constructs a URI from the given components.
static URI create(const std::string uri)
Creates a URI by parsing the given string.
std::string getRawSchemeSpecificPart() const
Returns the raw scheme-specific part of this URI.
virtual int compareTo(const URI &value) const
Compares this object with the specified object for order.
std::string toString() const
Returns the content of this URI as a string.
virtual bool operator==(const URI &value) const
Compares equality between this object and the one passed.
URI(const std::string &scheme, const std::string &userInfo, const std::string &host, int port, const std::string &path, const std::string &query, const std::string &fragment)
Constructs a URI from the given components.
std::string getAuthority() const
std::string getQuery() const
Class URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web.
Definition URL.h:118
#define DECAF_API
Definition Config.h:29
Definition URLStreamHandlerManager.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25