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.intGets the preference of the route.protected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts the PX Record to a Stringprotected 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.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:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Converts the PX Record to a String- Specified by:
rrToStringin classRecord
-
rrToWire
Description copied from class:RecordConverts 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.
-