libzypp 17.37.17
|
Represents a single, configurable network endpoint, combining a URL with specific access settings. More...
#include <zypp-core/MirroredOrigin.h>
Classes | |
struct | Private |
Public Member Functions | |
OriginEndpoint () | |
OriginEndpoint (zypp::Url url) | |
~OriginEndpoint ()=default | |
OriginEndpoint (const OriginEndpoint &)=default | |
OriginEndpoint (OriginEndpoint &&)=default | |
OriginEndpoint & | operator= (const OriginEndpoint &)=default |
OriginEndpoint & | operator= (OriginEndpoint &&)=default |
const zypp::Url & | url () const |
zypp::Url & | url () |
void | setUrl (const zypp::Url &newUrl) |
bool | hasConfig (const std::string &key) const |
std::string | scheme () const |
bool | schemeIsDownloading () const |
bool | isValid () const |
Private Attributes | |
RWCOW_pointer< Private > | _pimpl |
Represents a single, configurable network endpoint, combining a URL with specific access settings.
An OriginEndpoint object encapsulates a Uniform Resource Locator (URL) and an associated configuration. This allows each endpoint (whether it's an authoritative source or a mirror) to have its own distinct configuration, such as priority, enabled status, region, timeouts configured via custom tags.
This class is primarily intended to be used by classes like MirroredOrigin to define the individual characteristics of the primary data source and each of its alternative mirror locations. By using OriginEndpoint, both authority and mirrors can be treated uniformly as configurable access points.
Definition at line 41 of file MirroredOrigin.h.
zypp::OriginEndpoint::OriginEndpoint | ( | ) |
Definition at line 34 of file MirroredOrigin.cc.
zypp::OriginEndpoint::OriginEndpoint | ( | zypp::Url | url | ) |
Definition at line 42 of file MirroredOrigin.cc.
|
default |
|
default |
|
default |
|
default |
|
default |
const Url & zypp::OriginEndpoint::url | ( | ) | const |
Definition at line 51 of file MirroredOrigin.cc.
Url & zypp::OriginEndpoint::url | ( | ) |
Definition at line 46 of file MirroredOrigin.cc.
void zypp::OriginEndpoint::setUrl | ( | const zypp::Url & | newUrl | ) |
Definition at line 56 of file MirroredOrigin.cc.
bool zypp::OriginEndpoint::hasConfig | ( | const std::string & | key | ) | const |
Definition at line 61 of file MirroredOrigin.cc.
std::string zypp::OriginEndpoint::scheme | ( | ) | const |
Definition at line 66 of file MirroredOrigin.cc.
bool zypp::OriginEndpoint::schemeIsDownloading | ( | ) | const |
Definition at line 71 of file MirroredOrigin.cc.
bool zypp::OriginEndpoint::isValid | ( | ) | const |
Definition at line 76 of file MirroredOrigin.cc.
|
private |
Definition at line 119 of file MirroredOrigin.h.