]>
Commit | Line | Data |
---|---|---|
00634927 | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
00634927 | 3 | * |
bbc27441 AJ |
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. | |
00634927 | 7 | */ |
8 | ||
7df0bfd7 | 9 | #ifndef SQUID_ACLHTTPREPHEADER_H |
10 | #define SQUID_ACLHTTPREPHEADER_H | |
63be0a78 | 11 | |
127dce76 | 12 | #include "acl/Strategised.h" |
602d9612 | 13 | #include "acl/Strategy.h" |
00634927 | 14 | #include "HttpHeader.h" |
15 | ||
63be0a78 | 16 | /// \ingroup ACLAPI |
00634927 | 17 | class ACLHTTPRepHeaderStrategy : public ACLStrategy<HttpHeader*> |
18 | { | |
19 | ||
20 | public: | |
33810b1d | 21 | virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &); |
00634927 | 22 | virtual bool requiresReply() const { return true; } |
23 | ||
24 | static ACLHTTPRepHeaderStrategy *Instance(); | |
63be0a78 | 25 | /** |
26 | * Not implemented to prevent copies of the instance. | |
27 | \par | |
28 | * Not private to prevent brain dead g+++ warnings about | |
29 | * private constructors with no friends | |
30 | */ | |
00634927 | 31 | ACLHTTPRepHeaderStrategy(ACLHTTPRepHeaderStrategy const &); |
32 | ||
33 | private: | |
34 | static ACLHTTPRepHeaderStrategy Instance_; | |
35 | ACLHTTPRepHeaderStrategy() { } | |
36 | ||
37 | ACLHTTPRepHeaderStrategy&operator = (ACLHTTPRepHeaderStrategy const &); | |
38 | }; | |
39 | ||
63be0a78 | 40 | /// \ingroup ACLAPI |
00634927 | 41 | class ACLHTTPRepHeader |
42 | { | |
43 | ||
44 | private: | |
45 | static ACL::Prototype RegistryProtoype; | |
46 | static ACLStrategised<HttpHeader*> RegistryEntry_; | |
47 | }; | |
48 | ||
7df0bfd7 | 49 | #endif /* SQUID_ACLHTTPREPHEADER_H */ |
f53969cc | 50 |