AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t Class Reference

#include <Iconf.h>

List of all members.

Public Member Functions

 Ssl_t ()
 Ssl_t (const Xml::XmlNode &it)
virtual ~Ssl_t ()
void FromXml (const Xml::XmlNode &it)
const std::string ToString (const std::string &name="") const
bool IsSet () const
const std::string & GetCertFile () const
void SetCertFile (const std::string &certFile)
const std::string & GetKeyFile () const
void SetKeyFile (const std::string &keyFile)
const std::string & GetKeyAuth () const
void SetKeyAuth (const std::string &keyAuth)
bool CertFileIsSet () const
bool KeyFileIsSet () const
bool KeyAuthIsSet () const

Private Attributes

std::string _element_certFile
std::string _element_keyFile
std::string _element_keyAuth
bool _element_certFile_is_set
bool _element_keyFile_is_set
bool _element_keyAuth_is_set


Detailed Description

Definition at line 328 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::Ssl_t (  ) 

Definition at line 1461 of file Iconf.cpp.

01462 : _element_certFile_is_set(false)
01463 , _element_keyFile_is_set(false)
01464 , _element_keyAuth_is_set(false)
01465 {
01466 }

AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::Ssl_t ( const Xml::XmlNode &  it  ) 

Definition at line 1470 of file Iconf.cpp.

References FromXml().

01471 : _element_certFile_is_set(false)
01472 , _element_keyFile_is_set(false)
01473 , _element_keyAuth_is_set(false)
01474 {
01475         FromXml(it);
01476 }

virtual AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::~Ssl_t (  )  [inline, virtual]

Definition at line 333 of file Iconf.h.

00333 {}


Member Function Documentation

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::FromXml ( const Xml::XmlNode &  it  ) 

Definition at line 1480 of file Iconf.cpp.

References SetCertFile(), SetKeyAuth(), and SetKeyFile().

Referenced by AJP13::net_alhem_1_0_server::Hosts::Host_t::FromXml(), and Ssl_t().

01481 {
01482         if (!it.Exists("certFile"))
01483                 throw Xml::XmlException("missing required node in element 'ssl_t': certFile");
01484         SetCertFile( it["certFile"] );
01485         if (!it.Exists("keyFile"))
01486                 throw Xml::XmlException("missing required node in element 'ssl_t': keyFile");
01487         SetKeyFile( it["keyFile"] );
01488         if (!it.Exists("keyAuth"))
01489                 throw Xml::XmlException("missing required node in element 'ssl_t': keyAuth");
01490         SetKeyAuth( it["keyAuth"] );
01491 }

const std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::ToString ( const std::string &  name = ""  )  const

Definition at line 1495 of file Iconf.cpp.

References _element_certFile, _element_keyAuth, and _element_keyFile.

Referenced by AJP13::net_alhem_1_0_server::Hosts::Host_t::ToString().

01496 {
01497         std::string r;
01498         if (!name.empty())
01499                 r += "<" + name + ">";
01500         r += "<certFile>" + _element_certFile + "</certFile>";
01501         r += "<keyFile>" + _element_keyFile + "</keyFile>";
01502         r += "<keyAuth>" + _element_keyAuth + "</keyAuth>";
01503         if (!name.empty())
01504                 r += "</" + name + ">";
01505         return r;
01506 }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::IsSet (  )  const

Definition at line 1510 of file Iconf.cpp.

References CertFileIsSet(), KeyAuthIsSet(), and KeyFileIsSet().

Referenced by AJP13::net_alhem_1_0_server::Hosts::Host_t::SslIsSet().

01511 {
01512         return CertFileIsSet() || KeyFileIsSet() || KeyAuthIsSet();
01513 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::GetCertFile (  )  const

Definition at line 1517 of file Iconf.cpp.

References _element_certFile.

01518 {
01519         return _element_certFile;
01520 }

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::SetCertFile ( const std::string &  certFile  ) 

Definition at line 1523 of file Iconf.cpp.

References _element_certFile, and _element_certFile_is_set.

Referenced by FromXml().

01524 {
01525         _element_certFile = certFile;
01526         _element_certFile_is_set = true;
01527 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::GetKeyFile (  )  const

Definition at line 1531 of file Iconf.cpp.

References _element_keyFile.

01532 {
01533         return _element_keyFile;
01534 }

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::SetKeyFile ( const std::string &  keyFile  ) 

Definition at line 1537 of file Iconf.cpp.

References _element_keyFile, and _element_keyFile_is_set.

Referenced by FromXml().

01538 {
01539         _element_keyFile = keyFile;
01540         _element_keyFile_is_set = true;
01541 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::GetKeyAuth (  )  const

Definition at line 1545 of file Iconf.cpp.

References _element_keyAuth.

01546 {
01547         return _element_keyAuth;
01548 }

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::SetKeyAuth ( const std::string &  keyAuth  ) 

Definition at line 1551 of file Iconf.cpp.

References _element_keyAuth, and _element_keyAuth_is_set.

Referenced by FromXml().

01552 {
01553         _element_keyAuth = keyAuth;
01554         _element_keyAuth_is_set = true;
01555 }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::CertFileIsSet (  )  const [inline]

Definition at line 350 of file Iconf.h.

References _element_certFile_is_set.

Referenced by IsSet().

00350 { return _element_certFile_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::KeyFileIsSet (  )  const [inline]

Definition at line 351 of file Iconf.h.

References _element_keyFile_is_set.

Referenced by IsSet().

00351 { return _element_keyFile_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Ssl_t::KeyAuthIsSet (  )  const [inline]

Definition at line 352 of file Iconf.h.

References _element_keyAuth_is_set.

Referenced by IsSet().

00352 { return _element_keyAuth_is_set; }


Member Data Documentation

Definition at line 355 of file Iconf.h.

Referenced by GetCertFile(), SetCertFile(), and ToString().

Definition at line 356 of file Iconf.h.

Referenced by GetKeyFile(), SetKeyFile(), and ToString().

Definition at line 357 of file Iconf.h.

Referenced by GetKeyAuth(), SetKeyAuth(), and ToString().

Definition at line 358 of file Iconf.h.

Referenced by CertFileIsSet(), and SetCertFile().

Definition at line 359 of file Iconf.h.

Referenced by KeyFileIsSet(), and SetKeyFile().

Definition at line 360 of file Iconf.h.

Referenced by KeyAuthIsSet(), and SetKeyAuth().


The documentation for this class was generated from the following files:

Generated on Sun Oct 11 10:59:06 2009 for Xml Schema class generator by  doxygen 1.5.5