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.


Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
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
 
Method Summary
 String getFlags()
          Returns flags
 short getOrder()
          Returns the order
 short getPreference()
          Returns the preference
 String getRegexp()
          Returns regexp
 Name getReplacement()
          Returns the replacement domain-name
 String getService()
          Returns service
 String toString()
          Converts to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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