Package org.ldaptive.dns
Class SRVRecord
- java.lang.Object
-
- org.ldaptive.dns.SRVRecord
-
public class SRVRecord extends java.lang.ObjectClass 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 booleanequals(java.lang.Object o)LdapURLgetLdapURL()Returns the target properly formatted as an LDAP URL.intgetPort()Returns the port.longgetPriority()Returns the priority.java.lang.StringgetTarget()Returns the target.longgetWeight()Returns the weight.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-