Package org.xbill.DNS
Class PXRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.PXRecord
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Record>
X.400 mail mapping record.
- Author:
- Brian Wellington
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the RFC 822 component of the mail address.Gets the X.400 component of the mail address.int
Gets the preference of the route.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 PX Record to a Stringprotected 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, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
PXRecord
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
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
Converts the PX Record to a String- Specified by:
rrToString
in classRecord
-
rrToWire
Description copied from class:Record
Converts the type-specific RR to wire format - must be overridden. -
getPreference
public int getPreference()Gets the preference of the route. -
getMap822
Gets the RFC 822 component of the mail address. -
getMapX400
Gets the X.400 component of the mail address.
-