org.xbill.DNS
Class NAPTRRecord
java.lang.Object
|
+--org.xbill.DNS.Record
|
+--org.xbill.DNS.NAPTRRecord
- public class NAPTRRecord
- extends Record
Name Authority Pointer Record - specifies rewrite rule, that when applied
to an existing string will produce a new domain.
|
Constructor Summary |
NAPTRRecord(Name _name,
short _dclass,
int _ttl,
int _order,
int _preference,
String _flags,
String _service,
String _regexp,
Name _replacement)
Creates an NAPTR Record from the given data |
| Methods inherited from class org.xbill.DNS.Record |
equals,
fromString,
fromWire,
getDClass,
getName,
getRRsetType,
getTTL,
getType,
getWireLength,
hashCode,
newRecord,
newRecord,
newRecord,
toWire,
toWireCanonical,
withName |
NAPTRRecord
public NAPTRRecord(Name _name,
short _dclass,
int _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.
toString
public String toString()
- Converts to a String
- Overrides:
- toString in class Record
getOrder
public short getOrder()
- Returns the order
getPreference
public short getPreference()
- Returns the preference
getFlags
public String getFlags()
- Returns flags
getService
public String getService()
- Returns service
getRegexp
public String getRegexp()
- Returns regexp
getReplacement
public Name getReplacement()
- Returns the replacement domain-name