#include <Iconf.h>
Public Member Functions | |
Secure_t () | |
Secure_t (const Xml::XmlNode &it) | |
virtual | ~Secure_t () |
void | FromXml (const Xml::XmlNode &it) |
const std::string | ToString (const std::string &name="") const |
bool | IsSet () const |
const std::string & | GetUri () const |
void | SetUri (const std::string &uri) |
const std::string & | GetBasicAuthentication () const |
void | SetBasicAuthentication (const std::string &basicAuthentication) |
const std::string & | GetAuthorization () const |
void | SetAuthorization (const std::string &authorization) |
bool | UriIsSet () const |
bool | BasicAuthenticationIsSet () const |
bool | AuthorizationIsSet () const |
Private Attributes | |
std::string | _attribute_uri |
std::string | _attribute_basicAuthentication |
std::string | _attribute_authorization |
bool | _attribute_uri_is_set |
bool | _attribute_basicAuthentication_is_set |
bool | _attribute_authorization_is_set |
Definition at line 403 of file Iconf.h.
AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::Secure_t | ( | ) |
Definition at line 1674 of file Iconf.cpp.
01675 : _attribute_uri_is_set(false) 01676 , _attribute_basicAuthentication_is_set(false) 01677 , _attribute_authorization_is_set(false) 01678 { 01679 }
AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::Secure_t | ( | const Xml::XmlNode & | it | ) |
Definition at line 1683 of file Iconf.cpp.
References FromXml().
01684 : _attribute_uri_is_set(false) 01685 , _attribute_basicAuthentication_is_set(false) 01686 , _attribute_authorization_is_set(false) 01687 { 01688 FromXml(it); 01689 }
virtual AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::~Secure_t | ( | ) | [inline, virtual] |
void AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::FromXml | ( | const Xml::XmlNode & | it | ) |
Definition at line 1693 of file Iconf.cpp.
References SetAuthorization(), SetBasicAuthentication(), and SetUri().
Referenced by Secure_t().
01694 { 01695 SetUri(it.GetProperty("uri")); 01696 if (it.PropertyExists("basicAuthentication")) 01697 SetBasicAuthentication(it.GetProperty("basicAuthentication")); 01698 if (it.PropertyExists("authorization")) 01699 SetAuthorization(it.GetProperty("authorization")); 01700 }
const std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::ToString | ( | const std::string & | name = "" |
) | const |
Definition at line 1704 of file Iconf.cpp.
References AuthorizationIsSet(), BasicAuthenticationIsSet(), GetAuthorization(), GetBasicAuthentication(), and GetUri().
Referenced by AJP13::net_alhem_1_0_server::Hosts::Host_t::ToString().
01705 { 01706 std::string r; 01707 if (!name.empty()) 01708 r += "<" + name; 01709 r += " uri='" + GetUri() + "'"; 01710 if (BasicAuthenticationIsSet()) 01711 r += " basicAuthentication='" + GetBasicAuthentication() + "'"; 01712 if (AuthorizationIsSet()) 01713 r += " authorization='" + GetAuthorization() + "'"; 01714 r += ">"; 01715 if (!name.empty()) 01716 r += "</" + name + ">"; 01717 return r; 01718 }
bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::IsSet | ( | ) | const |
Definition at line 1722 of file Iconf.cpp.
References AuthorizationIsSet(), BasicAuthenticationIsSet(), and UriIsSet().
01723 { 01724 return UriIsSet() || BasicAuthenticationIsSet() || AuthorizationIsSet(); 01725 }
const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::GetUri | ( | ) | const |
Definition at line 1729 of file Iconf.cpp.
References _attribute_uri.
Referenced by ToString().
01730 { 01731 return _attribute_uri; 01732 }
void AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::SetUri | ( | const std::string & | uri | ) |
Definition at line 1735 of file Iconf.cpp.
References _attribute_uri, and _attribute_uri_is_set.
Referenced by FromXml().
01736 { 01737 _attribute_uri = uri; 01738 _attribute_uri_is_set = true; 01739 }
const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::GetBasicAuthentication | ( | ) | const |
Definition at line 1743 of file Iconf.cpp.
References _attribute_basicAuthentication.
Referenced by ToString().
01744 { 01745 return _attribute_basicAuthentication; 01746 }
void AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::SetBasicAuthentication | ( | const std::string & | basicAuthentication | ) |
Definition at line 1749 of file Iconf.cpp.
References _attribute_basicAuthentication, and _attribute_basicAuthentication_is_set.
Referenced by FromXml().
01750 { 01751 _attribute_basicAuthentication = basicAuthentication; 01752 _attribute_basicAuthentication_is_set = true; 01753 }
const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::GetAuthorization | ( | ) | const |
Definition at line 1757 of file Iconf.cpp.
References _attribute_authorization.
Referenced by ToString().
01758 { 01759 return _attribute_authorization; 01760 }
void AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::SetAuthorization | ( | const std::string & | authorization | ) |
Definition at line 1763 of file Iconf.cpp.
References _attribute_authorization, and _attribute_authorization_is_set.
Referenced by FromXml().
01764 { 01765 _attribute_authorization = authorization; 01766 _attribute_authorization_is_set = true; 01767 }
bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::UriIsSet | ( | ) | const [inline] |
Definition at line 423 of file Iconf.h.
References _attribute_uri_is_set.
Referenced by IsSet().
00423 { return _attribute_uri_is_set; }
bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::BasicAuthenticationIsSet | ( | ) | const [inline] |
Definition at line 424 of file Iconf.h.
References _attribute_basicAuthentication_is_set.
Referenced by IsSet(), and ToString().
00424 { return _attribute_basicAuthentication_is_set; }
bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::AuthorizationIsSet | ( | ) | const [inline] |
Definition at line 425 of file Iconf.h.
References _attribute_authorization_is_set.
Referenced by IsSet(), and ToString().
00425 { return _attribute_authorization_is_set; }
std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::_attribute_uri [private] |
std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::_attribute_basicAuthentication [private] |
Definition at line 429 of file Iconf.h.
Referenced by GetBasicAuthentication(), and SetBasicAuthentication().
std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::_attribute_authorization [private] |
bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Secure_t::_attribute_basicAuthentication_is_set [private] |
Definition at line 432 of file Iconf.h.
Referenced by BasicAuthenticationIsSet(), and SetBasicAuthentication().