2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
11 #include <StringList.h>
14 * This class is used to analyze and store LDAP-Urls as returned by a
15 * LDAP-Server as Referrals and Search References. LDAP-URLs are defined
16 * in RFC1959 and have the following format: <BR>
18 * ldap://host:port/baseDN[?attr[?scope[?filter]]] <BR>
25 * Create a new object from a c-string that contains a LDAP-Url
27 LDAPUrl(const char *url);
35 * @return The part of the URL that is representing the network
41 * @return The scope part of the URL is returned.
46 * @return The complete URL as a string
48 const std::string& getURLString() const;
51 * @return The hostname or IP-Address of the destination host.
53 const std::string& getHost() const;
56 * @return The Base-DN part of the URL
58 const std::string& getDN() const;
62 * @return The Filter part of the URL
64 const std::string& getFilter() const;
67 * @return The List of attributes that was in the URL
69 const StringList& getAttrs() const;
78 LDAPURLDesc *m_urlDesc;
79 std::string m_urlString;