public class PreferredConnection extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PreferredConnection.Type
The type of the connection.
|
Constructor and Description |
---|
PreferredConnection(String ldapUrl,
PreferredConnection.Type type)
The constructor of the PreferredConnection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getLDAPURL()
Returns the LDAP URL to be used.
|
static PreferredConnection |
getPreferredConnection(InitialLdapContext ctx)
Commodity method that returns a PreferredConnection object with the
information on a given InitialLdapContext.
|
static Set<PreferredConnection> |
getPreferredConnections(InitialLdapContext ctx)
Commodity method that generates a list of preferred connection (of just
one) with the information on a given InitialLdapContext.
|
PreferredConnection.Type |
getType()
Returns the type of the connection.
|
int |
hashCode() |
public PreferredConnection(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).public String getLDAPURL()
public PreferredConnection.Type getType()
public static PreferredConnection getPreferredConnection(InitialLdapContext ctx)
ctx
- the connection we retrieve the information from.public static Set<PreferredConnection> getPreferredConnections(InitialLdapContext ctx)
ctx
- the connection we retrieve the information from.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.