#ifndef __DOMAIN_H__ #define __DOMAIN_H__ #include #include class Domain : public Base { public: Domain(const Regex &); virtual ~Domain(); static Domain * find_domain(const String & url); void OnTop(); virtual void Do(const HttpRequest &) = 0; private: Domain * find_domain_r(const String & url); static Domain * head; Domain * next, * prev; Regex pattern; }; #endif