18 #ifndef _DECAF_INTERNAL_NET_URITYPE_H_
19 #define _DECAF_INTERNAL_NET_URITYPE_H_
36 std::string schemeSpecificPart;
37 std::string authority;
53 URIType(
const std::string& source);
72 this->source = source;
88 this->scheme = scheme;
96 return schemeSpecificPart;
104 this->schemeSpecificPart = schemeSpecificPart;
120 this->authority = authority;
138 this->userinfo = userinfo;
218 this->fragment = fragment;
234 this->opaque = opaque;
250 this->absolute = absolute;
258 return serverAuthority;
266 this->serverAuthority = serverAuthority;
293 return this->hashCode;
303 this->hashCode = hashCode;
void setOpaque(bool opaque)
Sets if the URI is Opaque.
Definition: URIType.h:233
std::string getPath() const
Gets the Path part of the URI.
Definition: URIType.h:177
void setHashCode(int hashCode)
Sets the hash code for this URIType instance.
Definition: URIType.h:302
int getHashCode() const
Gets the computed hashCode for this URIType or return -1 if non is set.
Definition: URIType.h:292
std::string getSchemeSpecificPart() const
Gets the Scheme Specific Part of the URI.
Definition: URIType.h:95
void setPath(const std::string &path)
Sets the Path part of the URI.
Definition: URIType.h:185
std::string getAuthority() const
Gets the Authority of the URI.
Definition: URIType.h:111
void setHost(const std::string &host)
Sets the Host name part of the URI.
Definition: URIType.h:153
void setValid(bool valid)
Sets if the URI is valid, meaning that the source has been set and parsed and all relevant data field...
Definition: URIType.h:283
void setQuery(const std::string &query)
Sets the Query part of the URI.
Definition: URIType.h:201
void setSchemeSpecificPart(const std::string &schemeSpecificPart)
Sets the Scheme Specific Part of the URI.
Definition: URIType.h:103
void setAuthority(const std::string &authority)
Sets the Authority of the URI.
Definition: URIType.h:119
int getPort() const
Gets the port part of the URI.
Definition: URIType.h:161
std::string getQuery() const
Gets the Query part of the URI.
Definition: URIType.h:193
std::string getUserInfo() const
Gets the user info part of the URI, e.g.
Definition: URIType.h:128
bool isAbsolute() const
Gets if the URI is Absolute.
Definition: URIType.h:241
void setPort(int port)
Sets the port part of the URI.
Definition: URIType.h:169
bool isServerAuthority() const
Gets if the URI is a Server Authority.
Definition: URIType.h:257
bool isValid() const
Gets if the URI is valid, meaning that the source has been set and parsed and all relevant data field...
Definition: URIType.h:274
std::string getHost() const
Gets the Host name part of the URI.
Definition: URIType.h:145
bool isOpaque() const
Gets if the URI is Opaque.
Definition: URIType.h:225
std::string getFragment() const
Gets the Fragment part of the URI.
Definition: URIType.h:209
void setUserInfo(const std::string &userinfo)
Sets the user info part of the URI, e.g.
Definition: URIType.h:137
std::string getSource() const
Gets the source URI string that was parsed to obtain this URIType instance and the resulting data...
Definition: URIType.h:62
Basic type object that holds data that composes a given URI.
Definition: URIType.h:31
void setSource(const std::string &source)
Sets the source URI string that was parsed to obtain this URIType instance and the resulting data...
Definition: URIType.h:71
std::string getScheme() const
Gets the Scheme of the URI, e.g.
Definition: URIType.h:79
void setFragment(const std::string &fragment)
Sets the Fragment part of the URI.
Definition: URIType.h:217
#define DECAF_API
Definition: Config.h:29
void setScheme(const std::string &scheme)
Sets the Scheme of the URI, e.g.
Definition: URIType.h:87
void setServerAuthority(bool serverAuthority)
Sets if the URI is a Server Authority.
Definition: URIType.h:265
void setAbsolute(bool absolute)
Sets if the URI is Absolute.
Definition: URIType.h:249