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 Set<PreferredConnection> |
getPreferredConnections(ConnectionWrapper conn)
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 Set<PreferredConnection> getPreferredConnections(ConnectionWrapper conn)
conn
- the connection we retrieve the information from.Copyright 2010-2017 ForgeRock AS.