public class PreferredConnection extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PreferredConnection.Type
The type of the connection.
|
| Constructor and Description |
|---|
PreferredConnection(HostPort hostPort,
PreferredConnection.Type type)
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.
|
PreferredConnection.Type |
getType()
Returns the type of the connection.
|
int |
hashCode() |
String |
toString() |
public PreferredConnection(HostPort hostPort, PreferredConnection.Type type)
hostPort - the host and port 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 HostPort getHostPort()
public PreferredConnection.Type getType()
public static Set<PreferredConnection> getPreferredConnections(ConnectionWrapper conn)
conn - the connection we retrieve the information from.Copyright © 2010-2020 Wren Security. All Rights Reserved.