@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDAPConnectionHandlerConfiguration extends java.lang.Object implements java.lang.Comparable<LDAPConnectionHandlerConfiguration>, java.util.Comparator<LDAPConnectionHandlerConfiguration>, java.io.Serializable
Comparable interface for ranking
connection handlers by relative preference for use.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
| Modifier and Type | Method and Description |
|---|---|
int |
compare(LDAPConnectionHandlerConfiguration c1,
LDAPConnectionHandlerConfiguration c2)
Compares the provided configurations to determine their relative orders in
which they should appear in a supported list.
|
int |
compareTo(LDAPConnectionHandlerConfiguration config)
Compares the provided configuration to this configuration to determine the
relative orders in which they should appear in a supported list.
|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is considered logically equivalent to
this LDAP connection handler configuration.
|
java.util.List<java.lang.String> |
getListenAddresses()
Retrieves the set of addresses on which the connection handler accepts
client connections, if available.
|
java.lang.String |
getName()
Retrieves the name for the connection handler.
|
int |
getPort()
Retrieves the port on which the connection handler accepts client
connections.
|
int |
hashCode()
Retrieves a hash code for the connection handler configuration.
|
boolean |
isEnabled()
Indicates whether the connection handler is enabled for use.
|
static java.util.List<LDAPConnectionHandlerConfiguration> |
readConfiguration(java.io.File configFile,
boolean onlyEnabled)
Retrieves the LDAP connection handler configuration objects from the
specified configuration file.
|
boolean |
supportsStartTLS()
Indicates whether the connection handler supports StartTLS for encrypting
communication.
|
java.lang.String |
toString()
Retrieves a string representation of this LDAP connection handler
configuration.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP connection handler
configuration to the provided buffer.
|
boolean |
usesSSL()
Indicates whether the connection handler uses SSL to encrypt communication.
|
@NotNull public java.lang.String getName()
public boolean isEnabled()
true if the connection handler is enabled, or
false if not.@NotNull public java.util.List<java.lang.String> getListenAddresses()
public int getPort()
public boolean usesSSL()
true if the connection handler uses SSL to encrypt
communication, or false if not.public boolean supportsStartTLS()
true if the connection handler supports StartTLS for
encrypting communication, or false if not.@NotNull public static java.util.List<LDAPConnectionHandlerConfiguration> readConfiguration(@NotNull java.io.File configFile, boolean onlyEnabled) throws LDAPException
compareTo(com.unboundid.ldap.sdk.unboundidds.LDAPConnectionHandlerConfiguration) method documentation.configFile - The configuration file to examine. It must not be
null, and it must exist.onlyEnabled - Indicates whether to only include information about
connection handlers that are enabled.LDAPException - If a problem interferes with reading the
connection handler configuration objects from the
configuration file.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object o)
equals in interface java.util.Comparator<LDAPConnectionHandlerConfiguration>equals in class java.lang.Objecto - If the provided object is considered logically equivalent to
this LDAP connection handler configuration, or false if
not.public int compareTo(@Nullable LDAPConnectionHandlerConfiguration config)
compareTo in interface java.lang.Comparable<LDAPConnectionHandlerConfiguration>config - The LDAP connection handler configuration to compare
against this configuration.public int compare(@NotNull LDAPConnectionHandlerConfiguration c1, @NotNull LDAPConnectionHandlerConfiguration c2)
compareTo(com.unboundid.ldap.sdk.unboundidds.LDAPConnectionHandlerConfiguration) method.compare in interface java.util.Comparator<LDAPConnectionHandlerConfiguration>c1 - The first LDAP connection handler configuration to compare.c2 - The second LDAP connection handler configuration to compare.@NotNull public java.lang.String toString()
toString in class java.lang.Object