com.lavantech.net.dns
Class TXTRecord
java.lang.Object
com.lavantech.net.dns.ResourceRecord
com.lavantech.net.dns.TXTRecord
- public class TXTRecord
- extends ResourceRecord
TXTRecord represents text information in a DNS TXT Record.
|
Constructor Summary |
TXTRecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
char[] txt)
Creates a TXTRecord with all the required information. |
|
Method Summary |
char[] |
getTextInfo()
Returns the text information |
java.lang.String |
toString()
Returns a string representation of the record. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TXTRecord
public TXTRecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
char[] txt)
- Creates a TXTRecord with all the required information.
- Parameters:
rname - Record Name (domain name)rtype - Record Typerclass - Record Classttl - Time to Live, time in seconds after which the record will expire.txt - Text information
getTextInfo
public char[] getTextInfo()
- Returns the text information
toString
public java.lang.String toString()
- Returns a string representation of the record.
- Overrides:
toString in class ResourceRecord