com.lavantech.net.dns
Class A6Record

java.lang.Object
  extended bycom.lavantech.net.dns.ResourceRecord
      extended bycom.lavantech.net.dns.A6Record

public class A6Record
extends ResourceRecord

A6Record represents all information in a DNS A6 Record.


Constructor Summary
A6Record(java.lang.String rname, int rtype, int rclass, long ttl, int prefixLen, byte[] suffixAddress, java.lang.String prefixName)
          Creates a A6Record with all the required information.
 
Method Summary
 byte[] getAddressSuffix()
          Returns the raw suffix address, 128 - prefix length bits are returned in the byte array.
 int getPrefixLength()
          Returns the length (number of bits) of the prefix.
 java.lang.String getPrefixName()
          The Address Prefix Name, this name has to be resolved to get the complete IPv6 address
 java.lang.String toString()
          Returns a string representation of the record.
 
Methods inherited from class com.lavantech.net.dns.ResourceRecord
getResourceClass, getResourceName, getResourceType, getTTL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

A6Record

public A6Record(java.lang.String rname,
                int rtype,
                int rclass,
                long ttl,
                int prefixLen,
                byte[] suffixAddress,
                java.lang.String prefixName)
Creates a A6Record 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.
prefixLen - Length of prefix bits.
suffixAddress - Suffix Address bits. 128 - prefixLen number of bits.
prefixName - Prefix Name that needs to be resolved to get the prefix address bits.
Method Detail

getPrefixLength

public int getPrefixLength()
Returns the length (number of bits) of the prefix.


getAddressSuffix

public byte[] getAddressSuffix()
Returns the raw suffix address, 128 - prefix length bits are returned in the byte array.


getPrefixName

public java.lang.String getPrefixName()
The Address Prefix Name, this name has to be resolved to get the complete IPv6 address


toString

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

Overrides:
toString in class ResourceRecord