X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_http_rewrite.hpp;h=7504f89901d0257d8af4e8d0d0e2f1a5475e91ac;hb=75eedebe94c90cf8b72499594fa7f5a12f34c192;hp=d6111426924a8fb7ea496522b87435eddd611cad;hpb=fe8ab21a7dfdd452298ec356395b2956c25d18fa;p=metaproxy-moved-to-github.git diff --git a/src/filter_http_rewrite.hpp b/src/filter_http_rewrite.hpp index d611142..7504f89 100644 --- a/src/filter_http_rewrite.hpp +++ b/src/filter_http_rewrite.hpp @@ -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 @@ -21,23 +21,28 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include +#include namespace mp = metaproxy_1; namespace metaproxy_1 { namespace filter { class HttpRewrite : public Base { - class Rules; - class Rule; - class RuleScope; - boost::scoped_ptr req_rules; - boost::scoped_ptr res_rules; - void configure_rules(const xmlNode *ptr, Rules & rules); + class Phase; + class Content; + class Replace; + class Within; + class Event; + boost::scoped_ptr req_phase; + boost::scoped_ptr res_phase; + void configure_phase(const xmlNode *ptr, Phase &phase); public: + class Rule; + typedef boost::shared_ptr 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); }; }