com.lavantech.net.dns
Class ResourceRecord

java.lang.Object
  extended bycom.lavantech.net.dns.ResourceRecord
Direct Known Subclasses:
A6Record, AAAARecord, ARecord, CNAMERecord, MXRecord, NSRecord, PTRRecord, SOARecord, TXTRecord, WKSRecord

public class ResourceRecord
extends java.lang.Object

ResourceRecord is the base class for all Record types.


Constructor Summary
ResourceRecord(java.lang.String rname, int rtype, int rclass, long ttl)
          Creates a ResourceRecord with all the required information.
 
Method Summary
 int getResourceClass()
          Returns the record class
 java.lang.String getResourceName()
          Returns the record name
 int getResourceType()
          Returns the record type
 long getTTL()
          Returns the Time To Live value (number of seconds) for the record.
 java.lang.String toString()
          Returns the string representation of the Record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceRecord

public ResourceRecord(java.lang.String rname,
                      int rtype,
                      int rclass,
                      long ttl)
Creates a ResourceRecord with all the required information.

Parameters:
rname - Record Name (Hostname)
rtype - Record Type
rclass - Record Class
ttl - Time to Live, time in seconds after which the record will expire.
Method Detail

getResourceName

public java.lang.String getResourceName()
Returns the record name


getResourceType

public int getResourceType()
Returns the record type


getResourceClass

public int getResourceClass()
Returns the record class


getTTL

public long getTTL()
Returns the Time To Live value (number of seconds) for the record. The record expires after the TTL seconds.


toString

public java.lang.String toString()
Returns the string representation of the Record.