Fix Metaproxy stops logging after check config failed MP-590
[metaproxy-moved-to-github.git] / src / filter_http_rewrite.hpp
index 58de9d9..7504f89 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Metaproxy.
-   Copyright (C) 2005-2013 Index Data
+   Copyright (C) Index Data
 
 Metaproxy is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -28,19 +28,21 @@ namespace mp = metaproxy_1;
 namespace metaproxy_1 {
     namespace filter {
         class HttpRewrite : public Base {
-            class Section;
+            class Phase;
+            class Content;
             class Replace;
-            class Rule;
             class Within;
-            typedef boost::shared_ptr<Rule> RulePtr;
-            boost::scoped_ptr<Section> req_section;
-            boost::scoped_ptr<Section> res_section;
-            void configure_section(const xmlNode *ptr, Section &section);
+            class Event;
+            boost::scoped_ptr<Phase> req_phase;
+            boost::scoped_ptr<Phase> res_phase;
+            void configure_phase(const xmlNode *ptr, Phase &phase);
         public:
+            class Rule;
+            typedef boost::shared_ptr<Rule> RulePtr;
             HttpRewrite();
             ~HttpRewrite();
             void process(metaproxy_1::Package & package) const;
-            void configure(const xmlNode * ptr, 
+            void configure(const xmlNode * ptr,
                     bool test_only, const char *path);
         };
     }