13#include <zypp/base/Logger.h>
15#include <zypp-media/MediaException>
38 if (
o_url.getScheme() !=
"plugin")
51 url::ParamMap::const_iterator
param_it;
60 if (
r.command() ==
"RESOLVEDURL") {
65 for (
it =
r.headerBegin();
68 std::pair<std::string, std::string> values(*
it);
70 if (values.second.empty()) {
71 values.second =
"\r\nX-libcurl-Empty-Header-Workaround: *";
73 headers.insert(values);
76 else if (
r.command() ==
"ERROR") {
86 return str <<
"UrlResolverPlugin::Impl";
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
shared_ptr< Impl > _pimpl
Command frame for communication with PluginScript.
HeaderList::const_iterator HeaderListIterator
Header list iterator.
Interface to plugin scripts using a Stomp inspired communication protocol.
std::string getPathName(EEncoding eflag=zypp::url::E_DECODED) const
Returns the path name from the URL.
zypp::url::ParamMap getQueryStringMap(EEncoding eflag=zypp::url::E_DECODED) const
Returns a string map with query parameter and their values.
static ZConfig & instance()
Singleton ctor.
Wrapper class for stat/lstat.
bool isExist() const
Return whether valid stat info exists.
String related utilities and Regular expression matching.
std::map< std::string, std::string > ParamMap
A parameter map container.
Easy-to use interface to the ZYPP dependency resolver.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.