Package rocks.xmpp.dns
Class TxtRecord
- java.lang.Object
-
- rocks.xmpp.dns.TxtRecord
-
- All Implemented Interfaces:
Comparable<TxtRecord>
public final class TxtRecord extends Object implements Comparable<TxtRecord>
A DNS TXT resource record.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
asAttributes()
Gets the attributes of this record.int
compareTo(TxtRecord o)
boolean
equals(Object o)
String
getText()
Gets the text.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getText
public final String getText()
Gets the text.- Returns:
- The text.
-
asAttributes
public final Map<String,String> asAttributes()
Gets the attributes of this record.- Returns:
- The attributes or an empty map if there are no attributes.
- See Also:
- RFC 1464
-
compareTo
public final int compareTo(TxtRecord o)
- Specified by:
compareTo
in interfaceComparable<TxtRecord>
-
-