public class PreferredConnection extends Object
Constructor and Description |
---|
PreferredConnection(HostPort hostPort,
org.forgerock.opendj.ldap.ConnectionSecurity connectionSecurity)
The constructor of the PreferredConnection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
HostPort |
getHostPort()
Returns the host name and port number.
|
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 connection.
|
org.forgerock.opendj.ldap.ConnectionSecurity |
getType()
Returns the connection security.
|
int |
hashCode() |
String |
toString() |
public PreferredConnection(HostPort hostPort, org.forgerock.opendj.ldap.ConnectionSecurity connectionSecurity)
hostPort
- the host and port to connect to the server.connectionSecurity
- the connection security to be used to connect.public String getLDAPURL()
public HostPort getHostPort()
public org.forgerock.opendj.ldap.ConnectionSecurity getType()
public static Set<PreferredConnection> getPreferredConnections(ConnectionWrapper conn)
conn
- the connection we retrieve the information from.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.