|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.admin.ads.util.PreferredConnection
public class PreferredConnection
A simple class that is used to be able to specify which URL and connection type to use when we connect to a server.
Nested Class Summary | |
---|---|
static class |
PreferredConnection.Type
The type of the connection. |
Constructor Summary | |
---|---|
PreferredConnection(java.lang.String ldapUrl,
PreferredConnection.Type type)
The constructor of the PreferredConnection. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getLDAPURL()
Returns the LDAP URL to be used. |
static PreferredConnection |
getPreferredConnection(javax.naming.ldap.InitialLdapContext ctx)
Commodity method that returns a PreferredConnection object with the information on a given InitialLdapContext. |
PreferredConnection.Type |
getType()
Returns the type of the connection. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferredConnection(java.lang.String ldapUrl, PreferredConnection.Type type)
ldapUrl
- the LDAP URL to connect to the server.type
- the type of connection to be used to connect (required to
differentiate StartTLS and regular LDAP).Method Detail |
---|
public java.lang.String getLDAPURL()
public PreferredConnection.Type getType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static PreferredConnection getPreferredConnection(javax.naming.ldap.InitialLdapContext ctx)
ctx
- the connection we retrieve the inforamtion from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |