]>
Commit | Line | Data |
---|---|---|
c302ddb5 CT |
1 | #include "squid.h" |
2 | #include "acl/AdaptationServiceData.h" | |
3 | #include "acl/Checklist.h" | |
4 | #include "adaptation/Config.h" | |
5 | #include "adaptation/ecap/Config.h" | |
6 | #include "adaptation/icap/Config.h" | |
7 | #include "adaptation/Service.h" | |
8 | #include "adaptation/ServiceGroups.h" | |
9 | #include "cache_cf.h" | |
10 | #include "ConfigParser.h" | |
11 | #include "Debug.h" | |
c302ddb5 CT |
12 | |
13 | void | |
14 | ACLAdaptationServiceData::parse() | |
15 | { | |
16 | Adaptation::Config::needHistory = true; | |
17 | while (char *t = ConfigParser::strtokFile()) { | |
18 | if ( | |
19 | #if USE_ECAP | |
20 | Adaptation::Ecap::TheConfig.findServiceConfig(t) == NULL && | |
21 | #endif | |
22 | #if ICAP_CLIENT | |
23 | Adaptation::Icap::TheConfig.findServiceConfig(t) == NULL && | |
24 | #endif | |
25 | Adaptation::FindGroup(t) == NULL) { | |
26 | debugs(28, DBG_CRITICAL, "FATAL: Adaptation service/group " << t << " in adaptation_service acl is not defined"); | |
27 | self_destruct(); | |
28 | } | |
29 | insert(t); | |
30 | } | |
31 | } | |
32 | ||
33 | ACLData<char const *> * | |
34 | ACLAdaptationServiceData::clone() const | |
35 | { | |
36 | return new ACLAdaptationServiceData(*this); | |
37 | } | |
38 |