/** * Creates a new {@code LDAPUrl} object from the provided string * representation. * * @param url The string representation of the LDAP URL to create. * * @throws MalformedURLException If the provided string cannot be parsed as * a valid LDAP URL. */ public LDAPUrl(final String url) throws MalformedURLException { try { ldapURL = new LDAPURL(url); } catch (LDAPException le) { debugException(le); throw new MalformedURLException(le.getMessage()); } }
/** * Creates a new {@code LDAPUrl} object with the provided information. * * @param host The address of the directory server, or {@code null} if there * should not be an address. * @param port The port of the directory server. * @param dn The DN for the URL. * * @throws RuntimeException If any of the provided information cannot be * used to create a valid LDAP URL. */ public LDAPUrl(final String host, final int port, final String dn) throws RuntimeException { try { final DN dnObject = (dn == null) ? null : new DN(dn); ldapURL = new LDAPURL("ldap", host, port, dnObject, null, null, null); } catch (Exception e) { debugException(e); throw new RuntimeException(e); } }
ldapURL = new LDAPURL("ldap", host, port, dnObject, attrs, scopeObject, filterObject);
final SearchScope scopeObject = SearchScope.valueOf(scope); final Filter filterObject = Filter.create(filter); ldapURL = new LDAPURL("ldap", host, port, dnObject, attributes, scopeObject, filterObject);
final LDAPURL url = new LDAPURL(ref); final RDN[] refRDNs = url.getBaseDN().getRDNs(); final RDN[] newRefRDNs = new RDN[retainRDNs.length + refRDNs.length]; final DN newBaseDN = new DN(newRefRDNs); final LDAPURL newURL = new LDAPURL(url.getScheme(), url.getHost(), url.getPort(), newBaseDN, null, null, null); refList.add(newURL.toString());
url[i] = new LDAPURL(tokens[i]);
try url = new LDAPURL(line);
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
final LDAPURL referralURL = new LDAPURL(urlString); final String host = referralURL.getHost();
try ldapURL = new LDAPURL(valueString);