Package org.xbill.DNS

Class KXRecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.KXRecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class KXRecord extends Record
Key Exchange - delegation of authority
Author:
Brian Wellington
See Also:
  • Field Details

    • u16Field

      protected int u16Field
    • nameField

      protected Name nameField
  • Constructor Details

    • 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 Details

    • 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.
    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getU16Field

      protected int getU16Field()
    • getNameField

      protected Name getNameField()
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record