Package org.ldaptive.dns
Class SRVRecord
- java.lang.Object
-
- org.ldaptive.dns.SRVRecord
-
public class SRVRecord extends Object
Class to contain the properties of a DNS SRV record.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LdapURLgetLdapURL()Returns the target properly formatted as an LDAP URL.intgetPort()Returns the port.longgetPriority()Returns the priority.StringgetTarget()Returns the target.longgetWeight()Returns the weight.inthashCode()StringtoString()
-
-
-
Field Detail
-
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
priority
private final long priority
SRV priority.
-
weight
private final long weight
SRV weight.
-
port
private final int port
SRV port.
-
target
private final String target
SRV target.
-
useSSL
private final boolean useSSL
whether to use LDAPS.
-
-
Constructor Detail
-
SRVRecord
public SRVRecord(String record, boolean ssl)
Creates a new SRV record.- Parameters:
record- from DNSssl- whether to use LDAPS
-
-
Method Detail
-
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
public String getTarget()
Returns the target.- Returns:
- target
-
getLdapURL
public LdapURL getLdapURL()
Returns the target properly formatted as an LDAP URL.- Returns:
- LDAP URL
-
-