Package org.xbill.DNS
Class MXRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.MXRecord
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Record>
Mail Exchange - specifies where mail to a domain is sent
- Author:
- Brian Wellington
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name for which additional data processing should be done for this record.protected Name
int
Returns the priority of this MX recordReturns the target of the MX recordprotected int
protected void
rdataFromString
(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected void
rrFromWire
(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected String
Converts the type-specific RR to text format - must be overridden.protected void
rrToWire
(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.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, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Field Details
-
u16Field
protected int u16Field -
nameField
-
-
Constructor Details
-
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:Record
Converts the type-specific RR to wire format - must be overridden. -
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 classRecord
- Returns:
- The name to used for additional data processing, or null if this record type does not require additional data processing.
-
rrFromWire
Description copied from class:Record
Converts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWire
in classRecord
- Throws:
IOException
-
rdataFromString
Description copied from class:Record
Converts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromString
in classRecord
- Throws:
IOException
-
rrToString
Description copied from class:Record
Converts the type-specific RR to text format - must be overridden.- Specified by:
rrToString
in classRecord
-
getU16Field
protected int getU16Field() -
getNameField
-