Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LDAPUrl Class Reference

This class is used to analyze and store LDAP-Urls as returned by a LDAP-Server as Referrals and Search References. More...

#include <LDAPUrl.h>

List of all members.

Public Member Functions

 LDAPUrl (const char *url)
 Create a new object from a c-string that contains a LDAP-Url.
 ~LDAPUrl ()
 Destructor.
int getPort () const
int getScope () const
const std::string & getURLString () const
const std::string & getHost () const
const std::string & getDN () const
const std::string & getFilter () const
const StringListgetAttrs () const

Protected Attributes

int m_Port
int m_Scope
std::string m_Host
std::string m_DN
std::string m_Filter
StringList m_Attrs
LDAPURLDesc * m_urlDesc
std::string m_urlString


Detailed Description

This class is used to analyze and store LDAP-Urls as returned by a LDAP-Server as Referrals and Search References.

LDAP-URLs are defined in RFC1959 and have the following format:
ldap://host:port/baseDN[?attr[?scope[?filter]]]


Constructor & Destructor Documentation

LDAPUrl::LDAPUrl const char *  url  ) 
 

Create a new object from a c-string that contains a LDAP-Url.

LDAPUrl::~LDAPUrl  ) 
 

Destructor.


Member Function Documentation

const StringList & LDAPUrl::getAttrs  )  const
 

Returns:
The List of attributes that was in the URL

const string & LDAPUrl::getDN  )  const
 

Returns:
The Base-DN part of the URL

const string & LDAPUrl::getFilter  )  const
 

Returns:
The Filter part of the URL

const string & LDAPUrl::getHost  )  const
 

Returns:
The hostname or IP-Address of the destination host.

int LDAPUrl::getPort  )  const
 

Returns:
The part of the URL that is representing the network port

int LDAPUrl::getScope  )  const
 

Returns:
The scope part of the URL is returned.

const string & LDAPUrl::getURLString  )  const
 

Returns:
The complete URL as a string


Member Data Documentation

StringList LDAPUrl::m_Attrs [protected]
 

std::string LDAPUrl::m_DN [protected]
 

std::string LDAPUrl::m_Filter [protected]
 

std::string LDAPUrl::m_Host [protected]
 

int LDAPUrl::m_Port [protected]
 

int LDAPUrl::m_Scope [protected]
 

LDAPURLDesc* LDAPUrl::m_urlDesc [protected]
 

std::string LDAPUrl::m_urlString [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 02:19:04 2008 for ldapsdk by  doxygen 1.3.9.1