Package org.xbill.DNS

Class RTRecord

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

public class RTRecord extends Record
Route Through Record - lists a route preference and intermediate host.
Author:
Brian Wellington
See Also:
  • Field Details

    • u16Field

      protected int u16Field
    • nameField

      protected Name nameField
  • Constructor Details

    • RTRecord

      public RTRecord(Name name, int dclass, long ttl, int preference, Name intermediateHost)
      Creates an RT Record from the given data
      Parameters:
      preference - The preference of the route. Smaller numbers indicate more preferred routes.
      intermediateHost - The domain name of the host to use as a router.
  • Method Details

    • getPreference

      public int getPreference()
      Gets the preference of the route.
    • getIntermediateHost

      public Name getIntermediateHost()
      Gets the host to use as a router.
    • 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