AdaptationServiceData.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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"
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"
17 #include "cache_cf.h"
18 #include "ConfigParser.h"
19 #include "Debug.h"
20 
21 void
23 {
25  while (char *t = ConfigParser::strtokFile()) {
26  if (
27 #if USE_ECAP
28  Adaptation::Ecap::TheConfig.findServiceConfig(t) == NULL &&
29 #endif
30 #if ICAP_CLIENT
31  Adaptation::Icap::TheConfig.findServiceConfig(t) == NULL &&
32 #endif
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 
43 {
44  return new ACLAdaptationServiceData(*this);
45 }
46 
static bool needHistory
HttpRequest adaptation history should recorded.
Definition: Config.h:60
void self_destruct(void)
Definition: cache_cf.cc:256
Config TheConfig
Definition: Config.cc:19
#define DBG_CRITICAL
Definition: Debug.h:45
ServiceGroupPointer FindGroup(const ServiceGroup::Id &id)
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Debug.h:124
Config TheConfig
Definition: Config.cc:16
static char * strtokFile()
Definition: ConfigParser.cc:84
void insert(const char *)
Insert a string data value.
Definition: StringData.cc:22
virtual ACLData< char const * > * clone() const
#define NULL
Definition: types.h:166

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors