org.xbill.DNS
Class KXRecord

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

public class KXRecord
extends Record

Key Exchange - delegation of authority

Author:
Brian Wellington

Field Summary
protected  Name nameField
           
protected  int u16Field
           
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
KXRecord(Name name, int dclass, long ttl, int preference, Name target)
          Creates a KX Record from the given data
 
Method Summary
 Name getAdditionalName()
          Returns the name for which additional data processing should be done for this record.
protected  Name getNameField()
           
 int getPreference()
          Returns the preference of this KX record
 Name getTarget()
          Returns the target of the KX record
protected  int getU16Field()
           
 
Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, 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

u16Field

protected int u16Field

nameField

protected Name nameField
Constructor Detail

KXRecord

public KXRecord(Name name,
                int dclass,
                long ttl,
                int preference,
                Name target)
Creates a KX Record from the given data

Parameters:
preference - The preference of this KX. Records with lower priority are preferred.
target - The host that authority is delegated to
Method Detail

getTarget

public Name getTarget()
Returns the target of the KX record


getPreference

public int getPreference()
Returns the preference of this KX record


getAdditionalName

public Name getAdditionalName()
Description copied from class: Record
Returns the name for which additional data processing should be done for this record. This can be used both for building responses and parsing responses.

Overrides:
getAdditionalName in class Record
Returns:
The name to used for additional data processing, or null if this record type does not require additional data processing.

getU16Field

protected int getU16Field()

getNameField

protected Name getNameField()