org.xbill.DNS
Class MXRecord

java.lang.Object
  extended byorg.xbill.DNS.Record
      extended byorg.xbill.DNS.MX_KXRecord
          extended byorg.xbill.DNS.MXRecord
All Implemented Interfaces:
Cloneable, Comparable

public class MXRecord
extends MX_KXRecord

Mail Exchange - specifies where mail to a domain is sent

Author:
Brian Wellington

Field Summary
 
Fields inherited from class org.xbill.DNS.MX_KXRecord
priority, target
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
MXRecord(Name name, int dclass, long ttl, int priority, Name target)
          Creates an MX Record from the given data
 
Methods inherited from class org.xbill.DNS.MX_KXRecord
getAdditionalName, getPriority, getTarget, rdataFromString, rdataToString, rrFromWire
 
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, rdataToWireCanonical, remainingStrings, toString, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MXRecord

public MXRecord(Name name,
                int dclass,
                long ttl,
                int priority,
                Name target)
Creates an MX Record from the given data

Parameters:
priority - The priority of this MX. Records with lower priority are preferred.
target - The host that mail is sent to