12 #ifndef ZYPP_URL_URLBASE_H 13 #define ZYPP_URL_URLBASE_H 218 opt = o.
opt;
return *
this;
298 UrlBase(
const std::string &scheme,
299 const std::string &authority,
300 const std::string &pathdata,
301 const std::string &querystr,
302 const std::string &fragment);
340 init(
const std::string &scheme,
341 const std::string &authority,
342 const std::string &pathdata,
343 const std::string &querystr,
344 const std::string &fragment);
366 getKnownSchemes()
const;
373 isKnownScheme(
const std::string &scheme)
const;
389 isValidScheme(
const std::string &scheme)
const;
451 getAuthority()
const;
525 getPathParams()
const;
540 getPathParamsVec()
const;
581 getPathParam(
const std::string ¶m,
EEncoding eflag)
const;
595 getQueryString()
const;
611 getQueryStringVec()
const;
632 getQueryStringMap(
EEncoding eflag)
const;
651 getQueryParam(
const std::string ¶m,
EEncoding eflag)
const;
674 setScheme(
const std::string &scheme);
692 setAuthority(
const std::string &authority);
704 setUsername(
const std::string &user,
717 setPassword(
const std::string &pass,
741 setHost(
const std::string &host);
751 setPort(
const std::string &port);
766 setPathData(
const std::string &pathdata);
776 setPathName(
const std::string &path,
786 setPathParams(
const std::string ¶ms);
816 setPathParam(
const std::string ¶m,
const std::string &value);
833 setQueryString(
const std::string &querystr);
863 setQueryParam(
const std::string ¶m,
const std::string &value);
874 delQueryParam(
const std::string ¶m);
886 setFragment(
const std::string &fragment,
961 config(
const std::string &
opt)
const;
973 config(
const std::string &opt,
const std::string &val);
985 getViewOptions()
const;
996 setViewOptions(
const ViewOptions &vopts);
1027 cleanupPathName(
const std::string &path,
bool authority)
const;
1040 cleanupPathName(
const std::string &path)
const;
1064 isValidHost(
const std::string &host)
const;
1073 isValidPort(
const std::string &port)
const;
bool has(const ViewOption &o) const
Check if specified option o is set in the current object.
static const ViewOption WITH_USERNAME
Option to include username in the URL string.
std::vector< std::string > ParamVec
A parameter vector container.
static const ViewOption WITH_FRAGMENT
Option to include fragment string in the URL string.
std::map< std::string, std::string > ParamMap
A parameter map container.
Internal data used by UrlBase.
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
std::vector< std::string > UrlSchemes
Vector of URL scheme names.
ViewOption()
Create instance with default combination of view options.
friend ViewOption operator+(const ViewOption &l, const ViewOption &r)
Adds l and r to a new option combination.
ViewOption ViewOptions
ViewOptions is just an alias for ViewOption.
static const ViewOption WITH_SCHEME
Option to include scheme name in the URL string.
static const ViewOption WITH_HOST
Option to include hostname in the URL string.
static const ViewOption EMPTY_FRAGMENT
Explicitely include the fragment string separator "#".
ViewOption & operator=(const ViewOption &o)
Assign specified option combination o to the current object.
static const ViewOption WITH_PATH_NAME
Option to include path name in the URL string.
Url::asString() view options.
static const ViewOption EMPTY_QUERY_STR
Explicitely include the query string separator "?".
static const ViewOption EMPTY_AUTHORITY
Explicitely include the URL authority separator "//".
static const ViewOption WITH_PATH_PARAMS
Option to include path parameters in the URL string.
static const ViewOption EMPTY_PATH_PARAMS
Explicitely include the path parameters separator ";".
static const ViewOption WITH_QUERY_STR
Option to include query string in the URL string.
static const ViewOption EMPTY_PATH_NAME
Explicitely include the "/" path character.
static const ViewOption WITH_PASSWORD
Option to include password in the URL string.
friend ViewOption operator-(const ViewOption &l, const ViewOption &r)
Substract r from l to a new option combination.
static const ViewOption DEFAULTS
Default combination of view options.
static const ViewOption WITH_PORT
Option to include port number in the URL string.
Easy-to use interface to the ZYPP dependency resolver.
RWCOW_pointer< UrlBase > UrlRef
Copy-On-Write Url reference.