|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.ietf.ldap.LDAPUrl
Encapsulates parameters of an LDAP URL query as defined in RFC2255.
| Constructor Summary | |
LDAPUrl(java.lang.String url)
Constructs a URL object with the specified string as the URL. |
|
LDAPUrl(java.lang.String host,
int port,
java.lang.String dn)
Constructs a URL object with the specified host, port, and DN. |
|
LDAPUrl(java.lang.String host,
int port,
java.lang.String dn,
java.lang.String[] attrNames,
int scope,
java.lang.String filter,
java.lang.String[] extensions)
Constructs an LDAP URL with all fields explicitly assigned, to specify an LDAP search operation. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this URL object. |
static java.lang.String |
decode(java.lang.String URLEncoded)
Decodes a URL-encoded string. |
static java.lang.String |
encode(java.lang.String toEncode)
Encodes an arbitrary string using the URL encoding rules. |
java.lang.String[] |
getAttributeArray()
Returns an array of attribute names specified in the URL. |
java.util.Enumeration |
getAttributes()
Returns an enumerator for the attribute names specified in the URL. |
java.lang.String |
getDN()
Returns the distinguished name encapsulated in the URL. |
java.lang.String[] |
getExtensions()
Returns any LDAP URL extensions specified, or null if none are specified. |
java.lang.String |
getFilter()
Returns the search filter or the default filter (objectclass=*) if none was specified. |
java.lang.String |
getHost()
Returns the name of the LDAP server in the URL. |
int |
getPort()
Returns the port number of the LDAP server in the URL. |
int |
getScope()
Returns the depth of search. |
java.lang.String |
toString()
Returns a valid string representation of this LDAP URL. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LDAPUrl(java.lang.String url)
throws java.net.MalformedURLException
public LDAPUrl(java.lang.String host,
int port,
java.lang.String dn)
public LDAPUrl(java.lang.String host,
int port,
java.lang.String dn,
java.lang.String[] attrNames,
int scope,
java.lang.String filter,
java.lang.String[] extensions)
| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Object
public static java.lang.String decode(java.lang.String URLEncoded)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static java.lang.String encode(java.lang.String toEncode)
public java.lang.String[] getAttributeArray()
public java.util.Enumeration getAttributes()
public java.lang.String getDN()
public java.lang.String[] getExtensions()
public java.lang.String getFilter()
public java.lang.String getHost()
public int getPort()
public int getScope()
public java.lang.String toString()
toString in class java.lang.Object
|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||