summaryrefslogtreecommitdiff
path: root/include/Domain.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Domain.h')
-rw-r--r--include/Domain.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/Domain.h b/include/Domain.h
new file mode 100644
index 0000000..ef103c2
--- /dev/null
+++ b/include/Domain.h
@@ -0,0 +1,21 @@
+#ifndef __DOMAIN_H__
+#define __DOMAIN_H__
+
+#include <BRegex.h>
+#include <HttpServ.h>
+
+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