Package org.ldaptive.dns
Class SRVRecord
java.lang.Object
org.ldaptive.dns.SRVRecord
Class to contain the properties of a DNS SRV record.
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
priority
private final long prioritySRV priority. -
weight
private final long weightSRV weight. -
port
private final int portSRV port. -
target
SRV target. -
useSSL
private final boolean useSSLwhether to use LDAPS.
-
-
Constructor Details
-
SRVRecord
Creates a new SRV record.- Parameters:
record
- from DNSssl
- whether to use LDAPS
-
-
Method Details
-
getPriority
public long getPriority()Returns the priority.- Returns:
- priority
-
getWeight
public long getWeight()Returns the weight.- Returns:
- weight
-
getPort
public int getPort()Returns the port.- Returns:
- port
-
getTarget
Returns the target.- Returns:
- target
-
getLdapURL
Returns the target properly formatted as an LDAP URL.- Returns:
- LDAP URL
-
equals
-
hashCode
public int hashCode() -
toString
-