osgEarth 2.1.1
|
Public Member Functions | |
ProxySettings (const Config &conf=Config()) | |
ProxySettings (const std::string &host, int port) | |
std::string & | hostName () |
const std::string & | hostName () const |
int & | port () |
const int & | port () const |
std::string & | userName () |
const std::string & | userName () const |
std::string & | password () |
const std::string & | password () const |
virtual Config | getConfig () const |
virtual void | mergeConfig (const Config &conf) |
Protected Attributes | |
std::string | _hostName |
int | _port |
std::string | _userName |
std::string | _password |
Proxy server configuration.
Definition at line 40 of file HTTPClient.
Definition at line 44 of file HTTPClient.cpp.
{ mergeConfig( conf ); }
ProxySettings::ProxySettings | ( | const std::string & | host, |
int | port | ||
) |
Definition at line 49 of file HTTPClient.cpp.
Config ProxySettings::getConfig | ( | ) | const [virtual] |
std::string& osgEarth::ProxySettings::hostName | ( | ) | [inline] |
Definition at line 46 of file HTTPClient.
{ return _hostName; }
const std::string& osgEarth::ProxySettings::hostName | ( | ) | const [inline] |
Definition at line 47 of file HTTPClient.
{ return _hostName; }
void ProxySettings::mergeConfig | ( | const Config & | conf | ) | [virtual] |
Definition at line 57 of file HTTPClient.cpp.
{ _hostName = conf.value<std::string>( "host", "" ); _port = conf.value<int>( "port", 8080 ); _userName = conf.value<std::string>( "username", "" ); _password = conf.value<std::string>( "password", "" ); }
const std::string& osgEarth::ProxySettings::password | ( | ) | const [inline] |
Definition at line 56 of file HTTPClient.
{ return _password; }
std::string& osgEarth::ProxySettings::password | ( | ) | [inline] |
Definition at line 55 of file HTTPClient.
{ return _password; }
int& osgEarth::ProxySettings::port | ( | ) | [inline] |
Definition at line 49 of file HTTPClient.
{ return _port; }
const int& osgEarth::ProxySettings::port | ( | ) | const [inline] |
Definition at line 50 of file HTTPClient.
{ return _port; }
const std::string& osgEarth::ProxySettings::userName | ( | ) | const [inline] |
Definition at line 53 of file HTTPClient.
{ return _userName; }
std::string& osgEarth::ProxySettings::userName | ( | ) | [inline] |
Definition at line 52 of file HTTPClient.
{ return _userName; }
std::string osgEarth::ProxySettings::_hostName [protected] |
Definition at line 63 of file HTTPClient.
std::string osgEarth::ProxySettings::_password [protected] |
Definition at line 66 of file HTTPClient.
int osgEarth::ProxySettings::_port [protected] |
Definition at line 64 of file HTTPClient.
std::string osgEarth::ProxySettings::_userName [protected] |
Definition at line 65 of file HTTPClient.