Year 2007.
[metaproxy-moved-to-github.git] / src / filter_bounce.hpp
1 /* $Id: filter_bounce.hpp,v 1.2 2007-01-25 14:05:54 adam Exp $
2    Copyright (c) 2005-2007, Index Data.
3
4    See the LICENSE file for details
5  */
6
7 // Filter that bounces all requests packages
8 // No packages are ever passed to later filters in the chain  
9 #ifndef FILTER_BOUNCE_HPP
10 #define FILTER_BOUNCE_HPP
11
12 #include <boost/scoped_ptr.hpp>
13
14 #include "filter.hpp"
15
16 namespace metaproxy_1 {
17     namespace filter {
18         class Bounce : public Base {
19             class Rep;
20             boost::scoped_ptr<Rep> m_p;
21         public:
22             Bounce();
23             ~Bounce();
24             void process(metaproxy_1::Package & package) const;
25         };
26     }
27 }
28
29 extern "C" {
30     extern struct metaproxy_1_filter_struct metaproxy_1_filter_bounce;
31 }
32
33 #endif
34 /*
35  * Local variables:
36  * c-basic-offset: 4
37  * indent-tabs-mode: nil
38  * c-file-style: "stroustrup"
39  * End:
40  * vim: shiftwidth=4 tabstop=8 expandtab
41  */