Modifier and Type | Field and Description |
---|---|
private byte[] |
flags |
private int |
order |
private int |
preference |
private byte[] |
regexp |
private Name |
replacement |
private byte[] |
service |
Constructor and Description |
---|
NAPTRRecord() |
NAPTRRecord(Name name,
int dclass,
long ttl,
int order,
int preference,
java.lang.String flags,
java.lang.String service,
java.lang.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.
|
java.lang.String |
getFlags()
Returns flags
|
int |
getOrder()
Returns the order
|
int |
getPreference()
Returns the preference
|
java.lang.String |
getRegexp()
Returns regexp
|
Name |
getReplacement()
Returns the replacement domain-name
|
java.lang.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 java.lang.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 overridden.
|
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
private int order
private int preference
private byte[] flags
private byte[] service
private byte[] regexp
private Name replacement
NAPTRRecord()
public NAPTRRecord(Name name, int dclass, long ttl, int order, int preference, java.lang.String flags, java.lang.String service, java.lang.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.java.lang.IllegalArgumentException
- One of the strings has invalid escapesprotected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.String rrToString()
rrToString
in class Record
public int getOrder()
public int getPreference()
public java.lang.String getFlags()
public java.lang.String getService()
public java.lang.String getRegexp()
public Name getReplacement()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
public Name getAdditionalName()
Record
getAdditionalName
in class Record