ADTF
|
Subclass representing and handling the authority subset as part of cUrl. More...
Classes | |
struct | sAuthority |
Public Member Functions | |
cAuthority (const cString &strAuthority=cString::Empty) | |
Constructor of the authority subset of any URL. More... | |
~cAuthority () | |
Destructor. | |
tResult | Validate (const cString &strAuthority) |
Validation method for the authority subset. More... | |
A_UTILS_NS::cString | GetUser () const |
Retrieves the username if set. More... | |
A_UTILS_NS::cString | GetPassword () const |
Retrieves the password if set. More... | |
A_UTILS_NS::cString | GetHost () const |
Retrieves the host bit of the given URL. More... | |
tBool | IsValidIPv4 () const |
The Host is a valid 1Pv4 adress. | |
tUInt16 | GetPort () const |
Retrieves the host port of the given URL is applicable. More... | |
tBool | IsValid () const |
Checks for the authority's validity. More... | |
A_UTILS_NS::cString | AsString () const |
Getter method to retrieve the raw query string. More... | |
Private Attributes | |
A_UTILS_NS::cString | m_strAuthority |
< The raw, unparsed authority string More... | |
tBool | m_bIsValid |
Working data representing the individual parts of any URL's authority subset. | |
struct A_UTILS_NS::cUrl::cAuthority::sAuthority | m_sAuthority |
Subclass representing and handling the authority subset as part of cUrl.
strAuthority | The authority subset of any given URL |
cAuthority | ( | const cString & | strAuthority = cString::Empty | ) |
Constructor of the authority subset of any URL.
strAuthority | the authority part of a particular URL |
A_UTILS_NS::cString AsString | ( | ) | const |
Getter method to retrieve the raw query string.
A_UTILS_NS::cString GetHost | ( | ) | const |
Retrieves the host bit of the given URL.
A_UTILS_NS::cString GetPassword | ( | ) | const |
Retrieves the password if set.
tUInt16 GetPort | ( | ) | const |
Retrieves the host port of the given URL is applicable.
A_UTILS_NS::cString GetUser | ( | ) | const |
Retrieves the username if set.
tBool IsValid | ( | ) | const |
Checks for the authority's validity.
tFalse | if authority subset is invalid or has not yet been validated. |
tTrue | if the authority subset is valid and the values could be extracted successfully. |
Validation method for the authority subset.
strAuthority | The (mandatory) authority bit of particular URL if not already given through the constructor |
ERR_NOERROR | A valid authority has been given. |
ERR_INVALID_ARG | The authority is syntactically invalid or incomplete |
|
private |