ServerName.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 #ifndef SQUID_ACLSERVERNAME_H
10 #define SQUID_ACLSERVERNAME_H
11 
12 #include "acl/Acl.h"
13 #include "acl/DomainData.h"
14 #include "acl/Strategy.h"
15 
18 public:
20  virtual bool match(const char *);
21  virtual ACLData<char const *> *clone() const;
22 };
23 
24 class ACLServerNameStrategy : public ACLStrategy<char const *>
25 {
26 
27 public:
28  /* ACLStrategy API */
29  virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
30  virtual bool requiresRequest() const {return true;}
31  virtual const Acl::Options &options();
32  virtual bool valid() const;
33 
34 private:
38 };
39 
40 #endif /* SQUID_ACLSERVERNAME_H */
41 
virtual bool requiresRequest() const
Definition: ServerName.h:30
Acl::BooleanOptionValue useServerProvided
Ignore client-supplied names.
Definition: ServerName.h:36
OptionValue< bool > BooleanOptionValue
Definition: Options.h:132
Acl::BooleanOptionValue useConsensus
Ignore mismatching names.
Definition: ServerName.h:37
virtual const Acl::Options & options()
Definition: ServerName.cc:129
virtual bool match(const char *)
Definition: ServerName.cc:38
MEMPROXY_CLASS(ACLServerNameData)
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *)
Definition: ServerName.cc:90
Acl::BooleanOptionValue useClientRequested
Ignore server-supplied names.
Definition: ServerName.h:35
A matching algorithm.
Definition: Strategy.h:21
std::map< OptionName, const Option *, OptionNameCmp > Options
name:option map
Definition: Options.h:159
virtual ACLData< char const * > * clone() const
Definition: ServerName.cc:55
virtual bool valid() const
Definition: ServerName.cc:147

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors