Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AbuseAddiesCache Class Reference
[Engine]

Abstract class (to be implemented by clients), meant to return a list of abuse contacts when a domain or a host address or a hostname is given. More...

#include <AbuseAddiesCache.h>

List of all members.

Public Member Functions

virtual ~AbuseAddiesCache ()
 Destructor.
virtual std::list< std::string > query (const Url &url) const =0 throw (std::runtime_error)
 Returns a list of abuse addresses relatives to the host passed as argument.
virtual std::list< std::string > query (const std::string &domain) const =0 throw (std::runtime_error)
 Returns a list of abuse addresses relatives to the domain passed as argument.
virtual void add (const UrlRange &range, const std::list< std::string > &addies)
 Adds a list of abuse addresses responsible for the range of ip addresses passed as first argument.


Detailed Description

Abstract class (to be implemented by clients), meant to return a list of abuse contacts when a domain or a host address or a hostname is given.


Constructor & Destructor Documentation

virtual AbuseAddiesCache::~AbuseAddiesCache  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual void AbuseAddiesCache::add const UrlRange range,
const std::list< std::string > &  addies
[inline, virtual]
 

Adds a list of abuse addresses responsible for the range of ip addresses passed as first argument.

Parameters:
range is the range of ip addresses
addies is the list of abuse addresses responsible for that addresses range
Warning:
May not be implemented by clients (if the cache is readonly)

virtual std::list<std::string> AbuseAddiesCache::query const std::string &  domain  )  const throw (std::runtime_error) [pure virtual]
 

Returns a list of abuse addresses relatives to the domain passed as argument.

Parameters:
domain is the domain
Returns:
A list of abuse addresses responsible for that domain
Exceptions:
std::runtime_error if no address is found

virtual std::list<std::string> AbuseAddiesCache::query const Url url  )  const throw (std::runtime_error) [pure virtual]
 

Returns a list of abuse addresses relatives to the host passed as argument.

Parameters:
url is the host
Returns:
A list of abuse addresses responsible for that host
Exceptions:
std::runtime_error if no address is found


The documentation for this class was generated from the following file:
Generated on Thu Jun 16 00:13:15 2005 for Netlib for Abuse! by  doxygen 1.4.3