7 #ifndef _A_UTILS_URL_PARSER_
8 #define _A_UTILS_URL_PARSER_
113 std::map<cString, cString> m_mapQuery;
218 typedef struct sURIComponents
uint16_t tUInt16
type definition for unsigned integer values (16bit) (platform and compiler independent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
A common result class usable as return value throughout.
Subclass representing and handling the authority subset as part of cUrl.
A_UTILS_NS::cString GetPassword() const
Retrieves the password if set.
tBool IsValidIPv4() const
The Host is a valid 1Pv4 adress.
tBool m_bIsValid
Working data representing the individual parts of any URL's authority subset.
tUInt16 GetPort() const
Retrieves the host port of the given URL is applicable.
A_UTILS_NS::cString AsString() const
Getter method to retrieve the raw query string.
tBool IsValid() const
Checks for the authority's validity.
tResult Validate(const cString &strAuthority)
Validation method for the authority subset.
A_UTILS_NS::cString m_strAuthority
< The raw, unparsed authority string
A_UTILS_NS::cString GetUser() const
Retrieves the username if set.
A_UTILS_NS::cString GetHost() const
Retrieves the host bit of the given URL.
cAuthority(const cString &strAuthority=cString::Empty)
Constructor of the authority subset of any URL.
Subclass representing and handling the query subset as part of cUrl.
tBool m_bIsValid
< Boolean flag used to determine if the url subset has already been verified
cString GetValue(const cString &strParameter, const cString &strDefault=cString::Empty) const
Method to read individual values of the query by their parameters.
tBool IsValid() const
Checks for the query's validity.
cString m_strQueryFull
Map to store the the query's value paris in.
cQuery(const cString &strQuery=cString::Empty)
Constructor for a Query subset of any URL.
cString AsString() const
Getter method to retrieve the raw query string.
tResult Validate(const cString &strQuery)
Validation procedure for the query subset.
Class for general URL representation, handling and verification against the IETF-STD66.
tBool m_bIsValidURL
The URL as string representation.
tResult Validate(const cString &strUrl)
Validation of the URL object.
A_UTILS_NS::cString GetPath() const
Getter method to read the path bit of the URL object.
A_UTILS_NS::cString AsString() const
Exports the URL back as string.
cQuery GetQuery() const
Getter method to read the query bit of the URL object.
A_UTILS_NS::cString GetScheme() const
Getter method to read the scheme bit of the URL object.
tBool IsValid() const
Checks for the URL's validity.
cUrl()
Default constructor.
cAuthority GetAuthority() const
Getter method to read the authority bit of the URL object.
tURIComponents GetComponents() const
Getter method to read the components of the currently abstracted URL.
tURIComponents m_sComponents
< Working data representing the individual parts of any full URL's
cUrl(const cString &strUrl)
Constructor.
A_UTILS_NS::cString GetFragment() const
Getter method to read the fragment bit of the URL object.
static const _myType Empty
Internally used empty string.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
A_UTILS_NS::cString strLocation
The port if applicable.
A_UTILS_NS::cString strUser
< The username if any
A_UTILS_NS::cString strPassword
The location e.g. 127.0.0.1:80 or 0x1234.
A_UTILS_NS::cString strScheme
The URL scheme (e.g.
A_UTILS_NS::cString strFragment
An optional related to the referenced resource.
A_UTILS_NS::cString strPath
The optional resource path on the referenced host.
cQuery oQuery
An optional query related to the referenced host or the referenced resource thereon.
cAuthority oAuthority
The authority bit of the URL including user authentication and the hosts address parameters.