public class NAPTRRecord extends Record
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
Name |
getAdditionalName()
Returns the name for which additional data processing should be done for this record.
|
String |
getFlags()
Returns flags
|
int |
getOrder()
Returns the order
|
int |
getPreference()
Returns the preference
|
String |
getRegexp()
Returns regexp
|
Name |
getReplacement()
Returns the replacement domain-name
|
String |
getService()
Returns service
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected String |
rrToString()
Converts rdata to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overriden
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
public NAPTRRecord(Name name, int dclass, long ttl, int order, int preference, String flags, String service, String regexp, Name replacement)
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.IllegalArgumentException
- One of the strings has invalid escapesprotected void rrFromWire(DNSInput in) throws IOException
Record
rrFromWire
in class Record
IOException
protected void rdataFromString(Tokenizer st, Name origin) throws IOException
Record
rdataFromString
in class Record
IOException
protected String rrToString()
rrToString
in class Record
public int getOrder()
public int getPreference()
public String getFlags()
public String getService()
public String getRegexp()
public Name getReplacement()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
public Name getAdditionalName()
Record
getAdditionalName
in class Record
Copyright © 2021 dnsjava.org. All rights reserved.