CernVM-FS
2.12.0
|
#include <url.h>
Public Member Functions | |
~Url () | |
std::string | protocol () const |
std::string | address () const |
std::string | host () const |
std::string | path () const |
int | port () const |
Static Public Member Functions | |
static Url * | Parse (const std::string &url, const std::string &default_protocol=kDefaultProtocol, int default_port=kDefaultPort) |
static bool | ValidateHost (const std::string &host) |
Static Public Attributes | |
static const int | kDefaultPort = 80 |
static const char * | kDefaultProtocol = "http" |
Private Member Functions | |
Url () | |
Url (const std::string &protocol, const std::string &host, const std::string &path, int port) | |
Private Attributes | |
std::string | protocol_ |
std::string | host_ |
std::string | path_ |
int | port_ |
std::string | address_ |
|
private |
|
private |
|
inline |
|
static |
Parse an URL string
Parse an URL string and extract the protocol, host, port, and path components. The method can be called with protocol and port values that are used when the input string doesn't contain these parts. The default protocol is "http" and the default port is 80
Definition at line 14 of file url.cc.
Referenced by notify::SubscriberSSE::Subscribe().
|
inline |
|
inline |
|
inline |
|
static |
|
private |
|
static |
Parse a URL string and build a Url object
A URL string is parsed and a Url object is constructed with the extracted address and port components.
Returns NULL if the URL string is not well formed
Ex: The url: <fqdn>:<port>/<path> will parse as address <fqdn>/<path> and port <port>
This file is part of the CernVM File System.
Definition at line 23 of file url.h.
Referenced by Url().
|
private |
Definition at line 52 of file url.h.
Referenced by protocol().