Package org.xbill.DNS
Class KXRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.KXRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Key Exchange - delegation of authority
- 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 NameintReturns the preference of this KX recordReturns the target of the KX recordprotected intprotected 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 type-specific RR to text format - must be overridden.protected 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, 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
-
KXRecord
Creates a KX Record from the given data- Parameters:
preference- The preference of this KX. Records with lower priority are preferred.target- The host that authority is delegated to
-
-
Method Details
-
getTarget
Returns the target of the KX record -
getPreference
public int getPreference()Returns the preference of this KX record -
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.
-
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
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
getU16Field
protected int getU16Field() -
getNameField
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-