Package org.xbill.DNS
Class NAPTRRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.NAPTRRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Name Authority Pointer Record - specifies rewrite rule, that when applied to an existing string
will produce a new domain.
- Author:
- Chuck Santos
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name for which additional data processing should be done for this record.getFlags()Returns flagsintgetOrder()Returns the orderintReturns the preferenceReturns regexpReturns the replacement domain-nameReturns serviceprotected 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 rdata 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, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
NAPTRRecord
public NAPTRRecord(Name name, int dclass, long ttl, int order, int preference, String flags, String service, String regexp, Name replacement) Creates an NAPTR Record from the given data- Parameters:
order- The order of this NAPTR. Records with lower order are preferred.preference- The preference, used to select between records at the same order.flags- The control aspects of the NAPTRRecord.service- The service or protocol available down the rewrite path.regexp- The regular/substitution expression.replacement- The domain-name to query for the next DNS resource record, depending on the value of the flags field.- Throws:
IllegalArgumentException- One of the strings has invalid escapes
-
-
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 rdata to a String- Specified by:
rrToStringin classRecord
-
getOrder
public int getOrder()Returns the order -
getPreference
public int getPreference()Returns the preference -
getFlags
Returns flags -
getService
Returns service -
getRegexp
Returns regexp -
getReplacement
Returns the replacement domain-name -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden. -
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.
-