Url — A wrapper for Url.
class Url: # URL properties. enum UrlProperty { PROTOCOL, USER, PASSWORD, HOST, PORT, PATH, QUERY, DIRPATH, FILENAME, COLLPATH, ENCODED_PATH_AND_QUERY }; # construct/copy/destruct __init__(const SString &) __init__(const Url &) Url& operator=(const Url &) __del__() # public member functions SString get(const ) const None set(const , const SString &) bool isValid() const bool isLocal() const bool exists() const bool isRelative() const Url absolute() const Url combinePath2Path(const Url &) const Url combineDir2Path(const Url &) const Url relativePath(const Url &) const Url upperUrl() const bool operator==(const Url &) const bool operator!=(const Url &) const SString asString() const # public static functions SString encode(const SString &) SString decode(const SString &)
Url
public member functionsSString get(const UrlProperty) const
Query URL property.
Set URL property.
Returns TRUE if URL is valid.
Check if the URL is a local file.
Checks whether file exists (valid for local URL's only).
Check if this is an relative filename (applies only to local URL).
Url absolute() const
Returns absolute path name if isLocal(); returns same URL otherwise.
Url combinePath2Path(const Url & url) const
Combine current URL with the specified URL; note that both URL's must not be dirnames
Url combineDir2Path(const Url & url) const
Combine current URL (which is assumed to be directory path) with the specified URL
Url relativePath(const Url & url) const
Returns URL which is a relative-only suffix to the base URL.
Url upperUrl() const
Returns URL which points to the parent (upper) path.
Returns TRUE if both URL's point to the same location.
SString asString() const
Conversion to SString.