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
 
Returns:
The part of the URL that is representing the network port

int getScope () const
 
Returns:
The scope part of the URL is returned.

const std::string & getURLString () const
 
Returns:
The complete URL as a string

const std::string & getHost () const
 
Returns:
The hostname or IP-Address of the destination host.

const std::string & getDN () const
 
Returns:
The Base-DN part of the URL

const std::string & getFilter () const
 
Returns:
The Filter part of the URL

const StringListgetAttrs () const
 
Returns:
The List of attributes that was in the URL


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

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

const string & LDAPUrl::getHost (  )  const

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

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 StringList & LDAPUrl::getAttrs (  )  const

Returns:
The List of attributes that was in the URL


Member Data Documentation

int LDAPUrl::m_Port [protected]

int LDAPUrl::m_Scope [protected]

std::string LDAPUrl::m_Host [protected]

std::string LDAPUrl::m_DN [protected]

std::string LDAPUrl::m_Filter [protected]

StringList LDAPUrl::m_Attrs [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 Sat Sep 22 10:21:53 2007 for ldapsdk by  doxygen 1.5.3