public class SRVRecord extends HostAddress implements java.lang.Comparable<SRVRecord>
| Constructor and Description |
|---|
SRVRecord(org.minidns.dnsname.DnsName fqdn,
int port,
int priority,
int weight,
java.util.List<java.net.InetAddress> inetAddresses)
SRV Record constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SRVRecord other) |
int |
getPriority() |
int |
getWeight() |
java.lang.String |
toString() |
equals, getErrorMessage, getExceptions, getFQDN, getHost, getInetAddresses, getPort, hashCode, setException, setExceptionpublic SRVRecord(org.minidns.dnsname.DnsName fqdn,
int port,
int priority,
int weight,
java.util.List<java.net.InetAddress> inetAddresses)
fqdn - Fully qualified domain nameport - The connection portpriority - Priority of the target hostweight - Relative weight for records with same priorityinetAddresses - list of addresses.java.lang.IllegalArgumentException - fqdn is null or any other field is not in valid range (0-65535).public int getPriority()
public int getWeight()
public int compareTo(SRVRecord other)
compareTo in interface java.lang.Comparable<SRVRecord>public java.lang.String toString()
toString in class HostAddress