com.internationalnetwork.net.rr
Class SOA

Object
  extended by com.internationalnetwork.net.RR
      extended by com.internationalnetwork.net.rr.SOA

public class SOA
extends RR

Resource Record type 6: Source Of zone Authority.


Field Summary
 
Fields inherited from class com.internationalnetwork.net.RR
A, A6, AAAA, AFSDB, ATMA, CERT, CLASS_CH, CLASS_CS, CLASS_HS, CLASS_IN, CNAME, DNAME, EID, GPOS, HINFO, ISDN, KEY, KX, LOC, MB, MD, MF, MG, MINFO, MR, MX, NAPTR, NIMLOC, NS, NSAP, NSAP_PTR, NULL, NXT, OPT, PTR, PX, RP, RR_TYPES, rrData, rrType, RT, SIG, SINK, SOA, SRV, TXT, VERSION, WKS, X25
 
Constructor Summary
SOA(String soa)
          Construct a new SOA record with a String-representation of an SOA record.
SOA(String ns, String rp, long sn, long r, long ri, long e, long m)
          Construct a new SOA record.
 
Method Summary
 long getExpiry()
          Return the expiry for this SOA record.
 long getMinimumTTL()
          Return the minimum TTL for this SOA record.
 String getNameServer()
          Return the name server hostname for this SOA record.
 long getRefresh()
          Return the refresh for this SOA record.
 ElectronicMailAddress getResponsiblePerson()
          Return the responsible person eMail address for this SOA record.
 long getRetryInterval()
          Return the retry interval for this SOA record.
 long getSerialNumber()
          Return the serial number for this SOA record.
 String toString()
          Convert record to String.
 
Methods inherited from class com.internationalnetwork.net.RR
parseRR, parseRR, parseRR
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOA

public SOA(String soa)
Construct a new SOA record with a String-representation of an SOA record.

Parameters:
soa - String containing a Source Of zone Authority record
Throws:
IllegalArgumentException - - you only need to catch this when the record text isn't hard-coded

SOA

public SOA(String ns,
           String rp,
           long sn,
           long r,
           long ri,
           long e,
           long m)
Construct a new SOA record.

Parameters:
ns - Name server hostname
rp - Responsible person's eMail address
sn - Serial Number
r - Refresh
ri - Retry Interval
e - Expiry
m - Minimum TTL
Throws:
IllegalArgumentException - - you only need to catch this when the record text isn't hard-coded
Method Detail

getExpiry

public long getExpiry()
Return the expiry for this SOA record.

Returns:
the expiry

getMinimumTTL

public long getMinimumTTL()
Return the minimum TTL for this SOA record.

Returns:
the minimum TTL

getNameServer

public String getNameServer()
Return the name server hostname for this SOA record.

Returns:
the name server

getRefresh

public long getRefresh()
Return the refresh for this SOA record.

Returns:
the refresh

getResponsiblePerson

public ElectronicMailAddress getResponsiblePerson()
Return the responsible person eMail address for this SOA record.

Returns:
the responsible person's eMail address

getRetryInterval

public long getRetryInterval()
Return the retry interval for this SOA record.

Returns:
the retry interval

getSerialNumber

public long getSerialNumber()
Return the serial number for this SOA record.

Returns:
the serial number

toString

public String toString()
Description copied from class: RR
Convert record to String.

Specified by:
toString in class RR
Returns:
This record, represented as a human-readable string (note that some record types include raw binary data and can't be converted to a string; in such cases, the class should provide a toBytes() convenience method)