Squid Web Cache
master
Loading...
Searching...
No Matches
AdaptationServiceData.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3
*
4
* Squid software is distributed under GPLv2+ license and includes
5
* contributions from numerous individuals and organizations.
6
* Please see the COPYING and CONTRIBUTORS files for details.
7
*/
8
9
#include "
squid.h
"
10
#include "
acl/AdaptationServiceData.h
"
11
#include "
acl/Checklist.h
"
12
#include "
adaptation/Config.h
"
13
#include "
adaptation/ecap/Config.h
"
14
#include "
adaptation/icap/Config.h
"
15
#include "
adaptation/Service.h
"
16
#include "
adaptation/ServiceGroups.h
"
17
#include "
cache_cf.h
"
18
#include "
ConfigParser.h
"
19
#include "
debug/Stream.h
"
20
21
void
22
ACLAdaptationServiceData::parse
()
23
{
24
Adaptation::Config::needHistory
=
true
;
25
while
(
char
*t =
ConfigParser::strtokFile
()) {
26
if
(
27
#
if
USE_ECAP
28
Adaptation::Ecap::TheConfig
.findServiceConfig(t) ==
nullptr
&&
29
#endif
30
#
if
ICAP_CLIENT
31
Adaptation::Icap::TheConfig
.findServiceConfig(t) ==
nullptr
&&
32
#endif
33
Adaptation::FindGroup
(t) ==
nullptr
) {
34
debugs
(28,
DBG_CRITICAL
,
"FATAL: Adaptation service/group "
<< t <<
" in adaptation_service acl is not defined"
);
35
self_destruct
();
36
}
37
insert
(t);
38
}
39
}
40
AdaptationServiceData.h
Checklist.h
ConfigParser.h
ServiceGroups.h
Service.h
Config.h
Config.h
Config.h
USE_ECAP
#define USE_ECAP
Definition
autoconf.h:1520
ICAP_CLIENT
#define ICAP_CLIENT
Definition
autoconf.h:1327
self_destruct
void self_destruct(void)
Definition
cache_cf.cc:275
cache_cf.h
ACLAdaptationServiceData::parse
void parse() override
Definition
AdaptationServiceData.cc:22
ACLStringData::insert
void insert(const char *)
Insert a string data value.
Definition
StringData.cc:18
Adaptation::Config::needHistory
static bool needHistory
HttpRequest adaptation history should recorded.
Definition
Config.h:60
ConfigParser::strtokFile
static char * strtokFile()
Definition
ConfigParser.cc:65
Stream.h
debugs
#define debugs(SECTION, LEVEL, CONTENT)
Definition
Stream.h:192
DBG_CRITICAL
#define DBG_CRITICAL
Definition
Stream.h:37
Adaptation::Ecap::TheConfig
Config TheConfig
Definition
Config.cc:16
Adaptation::Icap::TheConfig
Config TheConfig
Definition
Config.cc:19
Adaptation::FindGroup
ServiceGroupPointer FindGroup(const ServiceGroup::Id &id)
Definition
ServiceGroups.cc:331
squid.h
squid
src
acl
AdaptationServiceData.cc
Generated by
1.9.8