Implemented first bits of http_file filter which serves plain
[metaproxy-moved-to-github.git] / src / factory_static.cpp
1 /* $Id: factory_static.cpp,v 1.7 2006-01-19 21:43:51 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5 */
6
7 #include <iostream>
8 #include <stdexcept>
9
10 #include "factory_static.hpp"
11
12 #include "config.hpp"
13 #include "filter.hpp"
14 #include "package.hpp"
15
16 #include "factory_filter.hpp"
17
18 #include "filter_auth_simple.hpp"
19 #include "filter_backend_test.hpp"
20 #include "filter_frontend_net.hpp"
21 #include "filter_http_file.hpp"
22 #include "filter_log.hpp"
23 #include "filter_multi.hpp"
24 #include "filter_session_shared.hpp"
25 #include "filter_template.hpp"
26 #include "filter_virt_db.hpp"
27 #include "filter_z3950_client.hpp"
28
29 yp2::FactoryStatic::FactoryStatic()
30 {
31     struct yp2_filter_struct *buildins[] = {
32         &yp2_filter_auth_simple,
33         &yp2_filter_backend_test,
34         &yp2_filter_frontend_net,        
35         &yp2_filter_http_file,
36         &yp2_filter_log,
37         &yp2_filter_multi,
38         &yp2_filter_session_shared,
39         &yp2_filter_template,
40         &yp2_filter_virt_db,
41         &yp2_filter_z3950_client,
42         0
43     };
44     int i;
45
46     for (i = 0; buildins[i]; i++)
47         add_creator(buildins[i]->type, buildins[i]->creator);
48 }
49
50
51 /*
52  * Local variables:
53  * c-basic-offset: 4
54  * indent-tabs-mode: nil
55  * c-file-style: "stroustrup"
56  * End:
57  * vim: shiftwidth=4 tabstop=8 expandtab
58  */