|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.util.dns.HostAddress org.jivesoftware.smack.util.dns.SRVRecord
public class SRVRecord
Constructor Summary | |
---|---|
SRVRecord(String fqdn,
int port,
int priority,
int weight)
Create a new SRVRecord |
Method Summary | |
---|---|
int |
compareTo(SRVRecord other)
|
int |
getPriority()
|
int |
getWeight()
|
String |
toString()
|
Methods inherited from class org.jivesoftware.smack.util.dns.HostAddress |
---|
equals, getErrorMessage, getFQDN, getPort, hashCode, setException |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SRVRecord(String fqdn, int port, int priority, int weight)
fqdn
- Fully qualified domain nameport
- The connection portpriority
- Priority of the target hostweight
- Relative weight for records with same priority
IllegalArgumentException
- fqdn is null or any other field is not in valid range (0-65535).Method Detail |
---|
public int getPriority()
public int getWeight()
public int compareTo(SRVRecord other)
compareTo
in interface Comparable<SRVRecord>
public String toString()
toString
in class HostAddress
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |