Package org.xbill.DNS
Class MXRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.U16NameBase
org.xbill.DNS.MXRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Mail Exchange - specifies where mail to a domain is sent
- See Also:
-
Field Summary
Fields inherited from class org.xbill.DNS.U16NameBase
nameField, u16Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name for which additional data processing should be done for this record.intReturns the priority of this MX recordReturns the target of the MX recordprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.U16NameBase
getNameField, getU16Field, rdataFromString, rrFromWire, rrToStringMethods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Constructor Details
-
MXRecord
MXRecord() -
MXRecord
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
-
-
Method Details
-
getTarget
Returns the target of the MX record -
getPriority
public int getPriority()Returns the priority of this MX record -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.- Overrides:
rrToWirein classU16NameBase
-
getAdditionalName
Description copied from class:RecordReturns 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:
getAdditionalNamein classRecord- Returns:
- The name to used for additional data processing, or null if this record type does not require additional data processing.
-