EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
DNS::RRecordNAPTR Class Reference

Represents an NAPTR resource record. More...

#include <dnsrecord.h>

Inheritance diagram for DNS::RRecordNAPTR:
DNS::ResourceRecord

Public Member Functions

 RRecordNAPTR (const std::string &name, int32_t ttl, uint16_t order, uint16_t preference, const std::string &flags, const std::string &service, const std::string &regexp, const std::string &replacement)
 Class constructor. More...
 
const uint16_t getOrder () const
 Retrieves the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. More...
 
const uint16_t getPreference () const
 Retrieves he order in which NAPTR records with equal Order values SHOULD be processed, low numbers being processed before high numbers. More...
 
const EStringgetFlags ()
 Retrieves the flags associated with this NAPTR record. More...
 
const EStringgetService ()
 Retrieves the Service Parameters applicable to this this delegation path. More...
 
const EStringgetRegexp ()
 Retrieves the regular expression associated with this NAPTR record. More...
 
const EStringgetReplacement ()
 Retrieves the replacement string associated with this NAPTR record. More...
 
virtual Void dump ()
 Prints the contents fo this NAPTR record. More...
 
- Public Member Functions inherited from DNS::ResourceRecord
 ResourceRecord (const std::string &name, ns_type rtype, ns_class rclass, int32_t ttl)
 Class constructor. More...
 
virtual ~ResourceRecord ()
 Class destructor. More...
 
const EStringgetName ()
 Retrieves the domain name to which this resource record pertains. More...
 
ns_type getType ()
 Retrieves the resource type. More...
 
ns_class getClass ()
 Retrieves the class of the data in the RDATA field. More...
 
uint32_t getTTL ()
 Retrieves the time interval (in seconds) that the resource record may be cached before it should be discarded. More...
 
time_t getExpires ()
 Retrieves the expiration time of this resource record. More...
 
Bool isExpired ()
 Determines if this resource record has expired. More...
 

Detailed Description

Represents an NAPTR resource record.

Constructor & Destructor Documentation

◆ RRecordNAPTR()

DNS::RRecordNAPTR::RRecordNAPTR ( const std::string &  name,
int32_t  ttl,
uint16_t  order,
uint16_t  preference,
const std::string &  flags,
const std::string &  service,
const std::string &  regexp,
const std::string &  replacement 
)
inline

Class constructor.

Parameters
namethe domain name to which this resource record pertains.
ttlthe time to live value.
orderthe order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules.
preferencethe order in which NAPTR records with equal Order values SHOULD be processed, low numbers being processed before high numbers.
flagscontrols aspects of the rewriting and interpretation of the fields in the record.
servicethe Service Parameters applicable to this this delegation path.
regexpa substitution expression that is applied to the original string held by the client in order to construct the next domain name to lookup.
replacementthis field is used when the regular expression is a simple replacement operation.

Member Function Documentation

◆ dump()

virtual Void DNS::RRecordNAPTR::dump ( )
inlinevirtual

Prints the contents fo this NAPTR record.

Reimplemented from DNS::ResourceRecord.

◆ getFlags()

const EString& DNS::RRecordNAPTR::getFlags ( )
inline

Retrieves the flags associated with this NAPTR record.

Returns
the flags associated with this NAPTR record.

◆ getOrder()

const uint16_t DNS::RRecordNAPTR::getOrder ( ) const
inline

Retrieves the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules.

Returns
the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules.

◆ getPreference()

const uint16_t DNS::RRecordNAPTR::getPreference ( ) const
inline

Retrieves he order in which NAPTR records with equal Order values SHOULD be processed, low numbers being processed before high numbers.

Returns
he order in which NAPTR records with equal Order values SHOULD be processed, low numbers being processed before high numbers.

◆ getRegexp()

const EString& DNS::RRecordNAPTR::getRegexp ( )
inline

Retrieves the regular expression associated with this NAPTR record.

Returns
the regular expression associated with this NAPTR record.

◆ getReplacement()

const EString& DNS::RRecordNAPTR::getReplacement ( )
inline

Retrieves the replacement string associated with this NAPTR record.

Returns
the replacement string associated with this NAPTR record.

◆ getService()

const EString& DNS::RRecordNAPTR::getService ( )
inline

Retrieves the Service Parameters applicable to this this delegation path.

Returns
the Service Parameters applicable to this this delegation path.

The documentation for this class was generated from the following file: