org.xbill.DNS
Class CNAMERecord

java.lang.Object
  extended by org.xbill.DNS.Record
      extended by org.xbill.DNS.CNAMERecord
All Implemented Interfaces:
Cloneable, Comparable

public class CNAMERecord
extends Record

CNAME Record - maps an alias to its real name

Author:
Brian Wellington

Field Summary
protected  Name singleName
           
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
CNAMERecord(Name name, int dclass, long ttl, Name alias)
          Creates a new CNAMERecord with the given data
 
Method Summary
 Name getAlias()
          Gets the alias specified by the CNAME Record
protected  Name getSingleName()
           
 Name getTarget()
          Gets the target of the CNAME Record
 
Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

singleName

protected Name singleName
Constructor Detail

CNAMERecord

public CNAMERecord(Name name,
                   int dclass,
                   long ttl,
                   Name alias)
Creates a new CNAMERecord with the given data

Parameters:
alias - The name to which the CNAME alias points
Method Detail

getTarget

public Name getTarget()
Gets the target of the CNAME Record


getAlias

public Name getAlias()
Gets the alias specified by the CNAME Record


getSingleName

protected Name getSingleName()