18 #ifndef _DECAF_INTERNAL_NET_URITYPE_H_ 19 #define _DECAF_INTERNAL_NET_URITYPE_H_ 36 std::string schemeSpecificPart;
37 std::string authority;
51 URIType(
const std::string& source ) : source( source ),
63 serverAuthority( false ),
79 serverAuthority( false ),
100 this->source = source;
116 this->scheme = scheme;
124 return schemeSpecificPart;
132 this->schemeSpecificPart = schemeSpecificPart;
148 this->authority = authority;
166 this->userinfo = userinfo;
246 this->fragment = fragment;
262 this->opaque = opaque;
278 this->absolute = absolute;
286 return serverAuthority;
294 this->serverAuthority = serverAuthority;
void setOpaque(bool opaque)
Sets if the URI is Opaque.
Definition: URIType.h:261
bool isOpaque() const
Gets if the URI is Opaque.
Definition: URIType.h:253
std::string getUserInfo() const
Gets the user info part of the URI, e.g.
Definition: URIType.h:156
void setPath(const std::string &path)
Sets the Path part of the URI.
Definition: URIType.h:213
std::string getScheme() const
Gets the Scheme of the URI, e.g.
Definition: URIType.h:107
void setHost(const std::string &host)
Sets the Host name part of the URI.
Definition: URIType.h:181
bool isServerAuthority() const
Gets if the URI is a Server Authority.
Definition: URIType.h:285
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:311
void setQuery(const std::string &query)
Sets the Query part of the URI.
Definition: URIType.h:229
URIType(const std::string &source)
Definition: URIType.h:51
void setSchemeSpecificPart(const std::string &schemeSpecificPart)
Sets the Scheme Specific Part of the URI.
Definition: URIType.h:131
void setAuthority(const std::string &authority)
Sets the Authority of the URI.
Definition: URIType.h:147
std::string getHost() const
Gets the Host name part of the URI.
Definition: URIType.h:173
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:302
void setPort(int port)
Sets the port part of the URI.
Definition: URIType.h:197
bool isAbsolute() const
Gets if the URI is Absolute.
Definition: URIType.h:269
virtual ~URIType()
Definition: URIType.h:83
void setUserInfo(const std::string &userinfo)
Sets the user info part of the URI, e.g.
Definition: URIType.h:165
std::string getQuery() const
Gets the Query part of the URI.
Definition: URIType.h:221
URIType()
Definition: URIType.h:67
std::string getSchemeSpecificPart() const
Gets the Scheme Specific Part of the URI.
Definition: URIType.h:123
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:99
std::string getSource() const
Gets the source URI string that was parsed to obtain this URIType instance and the resulting data...
Definition: URIType.h:90
void setFragment(const std::string &fragment)
Sets the Fragment part of the URI.
Definition: URIType.h:245
#define DECAF_API
Definition: Config.h:29
std::string getFragment() const
Gets the Fragment part of the URI.
Definition: URIType.h:237
void setScheme(const std::string &scheme)
Sets the Scheme of the URI, e.g.
Definition: URIType.h:115
std::string getAuthority() const
Gets the Authority of the URI.
Definition: URIType.h:139
std::string getPath() const
Gets the Path part of the URI.
Definition: URIType.h:205
void setServerAuthority(bool serverAuthority)
Sets if the URI is a Server Authority.
Definition: URIType.h:293
int getPort() const
Gets the port part of the URI.
Definition: URIType.h:189
void setAbsolute(bool absolute)
Sets if the URI is Absolute.
Definition: URIType.h:277
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25