Package org.xbill.DNS

Class PXRecord

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

public class PXRecord extends Record
X.400 mail mapping record.
Author:
Brian Wellington
See Also:
  • Constructor Details

    • PXRecord

      public PXRecord(Name name, int dclass, long ttl, int preference, Name map822, Name mapX400)
      Creates an PX Record from the given data
      Parameters:
      preference - The preference of this mail address.
      map822 - The RFC 822 component of the mail address.
      mapX400 - The X.400 component of the mail address.
  • Method Details

    • 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()
      Converts the PX Record to a String
      Specified by:
      rrToString in class Record
    • 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
    • getPreference

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

      public Name getMap822()
      Gets the RFC 822 component of the mail address.
    • getMapX400

      public Name getMapX400()
      Gets the X.400 component of the mail address.