#include <Iconf.h>
Public Member Functions | |
BasicAuthentication_t () | |
BasicAuthentication_t (const Xml::XmlNode &it) | |
virtual | ~BasicAuthentication_t () |
void | FromXml (const Xml::XmlNode &it) |
const std::string | ToString (const std::string &name="") const |
bool | IsSet () const |
const net_alhem_1_0_server::Security::BasicAuthentication_t::User_t & | GetUser () const |
net_alhem_1_0_server::Security::BasicAuthentication_t::User_t & | GetUser () |
void | SetUser (const net_alhem_1_0_server::Security::BasicAuthentication_t::User_t &user) |
const std::string & | GetName () const |
void | SetName (const std::string &name) |
bool | UserIsSet () const |
bool | NameIsSet () const |
Private Attributes | |
net_alhem_1_0_server::Security::BasicAuthentication_t::User_t | _element_user |
std::string | _attribute_name |
bool | _attribute_name_is_set |
Classes | |
class | User_t |
Definition at line 66 of file Iconf.h.
AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::BasicAuthentication_t | ( | ) |
AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::BasicAuthentication_t | ( | const Xml::XmlNode & | it | ) |
Definition at line 248 of file Iconf.cpp.
References FromXml().
00249 : _attribute_name_is_set(false) 00250 { 00251 FromXml(it); 00252 }
virtual AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::~BasicAuthentication_t | ( | ) | [inline, virtual] |
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::FromXml | ( | const Xml::XmlNode & | it | ) |
Definition at line 256 of file Iconf.cpp.
References _element_user, AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::FromXml(), and SetName().
Referenced by BasicAuthentication_t(), and AJP13::net_alhem_1_0_server::Security::FromXml().
00257 { 00258 if (!it.Exists("user")) 00259 throw Xml::XmlException("missing required node in element 'basicAuthentication_t': user"); 00260 { 00261 Xml::XmlNode n(it, "user"); 00262 if (n) 00263 _element_user.FromXml( n ); 00264 } 00265 SetName(it.GetProperty("name")); 00266 }
const std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::ToString | ( | const std::string & | name = "" |
) | const |
Definition at line 270 of file Iconf.cpp.
References _element_user, GetName(), and AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::ToString().
Referenced by AJP13::net_alhem_1_0_server::Security::ToString().
00271 { 00272 std::string r; 00273 if (!name.empty()) 00274 r += "<" + name; 00275 r += " name='" + GetName() + "'"; 00276 r += ">"; 00277 r += _element_user.ToString("user"); 00278 if (!name.empty()) 00279 r += "</" + name + ">"; 00280 return r; 00281 }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::IsSet | ( | ) | const |
Definition at line 285 of file Iconf.cpp.
References NameIsSet(), and UserIsSet().
Referenced by AJP13::net_alhem_1_0_server::Security::BasicAuthenticationIsSet().
const net_alhem_1_0_server::Security::BasicAuthentication_t::User_t & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::GetUser | ( | ) | const |
Definition at line 292 of file Iconf.cpp.
References _element_user.
00293 { 00294 return _element_user; 00295 }
net_alhem_1_0_server::Security::BasicAuthentication_t::User_t & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::GetUser | ( | ) |
Definition at line 298 of file Iconf.cpp.
References _element_user.
00299 { 00300 return _element_user; 00301 }
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::SetUser | ( | const net_alhem_1_0_server::Security::BasicAuthentication_t::User_t & | user | ) |
Definition at line 304 of file Iconf.cpp.
References _element_user.
00305 { 00306 _element_user = user; 00307 }
const std::string & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::GetName | ( | ) | const |
Definition at line 318 of file Iconf.cpp.
References _attribute_name.
Referenced by ToString().
00319 { 00320 return _attribute_name; 00321 }
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::SetName | ( | const std::string & | name | ) |
Definition at line 324 of file Iconf.cpp.
References _attribute_name, and _attribute_name_is_set.
Referenced by FromXml().
00325 { 00326 _attribute_name = name; 00327 _attribute_name_is_set = true; 00328 }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::UserIsSet | ( | ) | const |
Definition at line 311 of file Iconf.cpp.
References _element_user, and AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::IsSet().
Referenced by IsSet().
00312 { 00313 return _element_user.IsSet(); 00314 }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::NameIsSet | ( | ) | const [inline] |
Definition at line 127 of file Iconf.h.
References _attribute_name_is_set.
Referenced by IsSet().
00127 { return _attribute_name_is_set; }
net_alhem_1_0_server::Security::BasicAuthentication_t::User_t AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::_element_user [private] |
Definition at line 130 of file Iconf.h.
Referenced by FromXml(), GetUser(), SetUser(), ToString(), and UserIsSet().
std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::_attribute_name [private] |