public class SRV extends RRWithTarget implements Comparable<SRV>
| Modifier and Type | Field and Description |
|---|---|
int | portThe target port. |
int | priorityThe priority of this service. |
int | weightThe weight of this service. |
target| Constructor and Description |
|---|
SRV(int priority,
int weight,
int port,
DnsName target)SRV. |
SRV(int priority,
int weight,
int port,
String target)SRV. |
| Modifier and Type | Method and Description |
|---|---|
int | compareTo(SRV other)compareTo. |
Record.TYPE | getType()getType. |
boolean | isServiceAvailable()Check if the service is available at this domain. |
static SRV | parse(DataInputStream dis,
byte[] data)parse. |
void | serialize(DataOutputStream dos)serialize. |
String | toString()toString. |
getTargetequals, hashCode, length, toByteArray, toOutputStream, toOutputStreampublic final int port
public final int priority
public final int weight
public SRV(int priority,
int weight,
int port,
DnsName target)public SRV(int priority,
int weight,
int port,
String target)public int compareTo(SRV other)
compareTo in interface Comparable<SRV>public Record.TYPE getType()
public boolean isServiceAvailable()
A Target of "." means that the service is decidedly not available at this domain.
public static SRV parse(DataInputStream dis, byte[] data) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
serialize in class RRWithTargetdos - the output stream to serialize to.IOException - if an I/O error occurs.public String toString()
toString in class RRWithTarget