public static class DnsSrv.SrvRecord extends Object implements Comparable<DnsSrv.SrvRecord>
| Modifier and Type | Field | Description |
|---|---|---|
private int |
port |
|
private int |
priority |
|
private String |
target |
|
private int |
weight |
| Constructor | Description |
|---|---|
SrvRecord(int priority,
int weight,
int port,
String target) |
| Modifier and Type | Method | Description |
|---|---|---|
static DnsSrv.SrvRecord |
buildFrom(String srvLine) |
|
int |
compareTo(DnsSrv.SrvRecord o) |
|
int |
getPort() |
|
int |
getPriority() |
|
String |
getTarget() |
|
int |
getWeight() |
|
String |
toString() |
private final int priority
private final int weight
private final int port
private final String target
public SrvRecord(int priority,
int weight,
int port,
String target)
public static DnsSrv.SrvRecord buildFrom(String srvLine)
public int getPriority()
public int getWeight()
public int getPort()
public String getTarget()
public int compareTo(DnsSrv.SrvRecord o)
compareTo in interface Comparable<DnsSrv.SrvRecord>