Package org.ldaptive.dns
Class SRVRecord
- java.lang.Object
-
- org.ldaptive.dns.SRVRecord
-
public class SRVRecord extends java.lang.Object
Class to contain the properties of a DNS SRV record.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description SRVRecord(java.lang.String record, boolean ssl)
Creates a new SRV record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
LdapURL
getLdapURL()
Returns the target properly formatted as an LDAP URL.int
getPort()
Returns the port.long
getPriority()
Returns the priority.java.lang.String
getTarget()
Returns the target.long
getWeight()
Returns the weight.int
hashCode()
java.lang.String
toString()
-
-
-
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 java.lang.String getTarget()
Returns the target.- Returns:
- target
-
getLdapURL
public LdapURL getLdapURL()
Returns the target properly formatted as an LDAP URL.- Returns:
- LDAP URL
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-