osgEarth 2.1.1
Public Member Functions | Protected Attributes

osgEarth::ProxySettings Class Reference

List of all members.

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

Detailed Description

Proxy server configuration.

Definition at line 40 of file HTTPClient.


Constructor & Destructor Documentation

ProxySettings::ProxySettings ( const Config conf = Config())

Definition at line 44 of file HTTPClient.cpp.

{
    mergeConfig( conf );
}

Here is the call graph for this function:

ProxySettings::ProxySettings ( const std::string &  host,
int  port 
)

Definition at line 49 of file HTTPClient.cpp.

                                                              :
_hostName(host),
_port(port)
{
    //nop
}

Member Function Documentation

Config ProxySettings::getConfig ( ) const [virtual]

Definition at line 66 of file HTTPClient.cpp.

{
    Config conf( "proxy" );
    conf.add( "host", _hostName );
    conf.add( "port", toString(_port) );
        conf.add( "username", _userName);
        conf.add( "password", _password);

    return conf;
}

Here is the call graph for this function:

std::string& osgEarth::ProxySettings::hostName ( ) [inline]

Definition at line 46 of file HTTPClient.

{ return _hostName; }

Here is the caller graph for this function:

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", "" );
}

Here is the call graph for this function:

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

int& osgEarth::ProxySettings::port ( ) [inline]

Definition at line 49 of file HTTPClient.

{ return _port; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:


Member Data Documentation

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.

Definition at line 64 of file HTTPClient.

std::string osgEarth::ProxySettings::_userName [protected]

Definition at line 65 of file HTTPClient.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines