]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
f6e9a3ee | 2 | * Copyright (C) 1996-2019 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
a22e6cd3 AR |
9 | #ifndef SQUID_ADAPTATION__SERVICE_FILTER_H |
10 | #define SQUID_ADAPTATION__SERVICE_FILTER_H | |
11 | ||
af0ded40 | 12 | #include "AccessLogEntry.h" |
a22e6cd3 AR |
13 | #include "adaptation/Elements.h" |
14 | ||
15 | class HttpRequest; | |
16 | class HttpReply; | |
17 | ||
18 | namespace Adaptation | |
19 | { | |
20 | ||
21 | /// information used to search for adaptation services | |
22 | class ServiceFilter | |
23 | { | |
24 | public: | |
af0ded40 | 25 | ServiceFilter(Method, VectPoint, HttpRequest *, HttpReply *, AccessLogEntry::Pointer const &al); // locks |
a22e6cd3 AR |
26 | ServiceFilter(const ServiceFilter &f); |
27 | ~ServiceFilter(); // unlocks | |
28 | ||
29 | ServiceFilter &operator =(const ServiceFilter &f); | |
30 | ||
31 | public: | |
32 | Method method; ///< adaptation direction | |
33 | VectPoint point; ///< adaptation location | |
34 | HttpRequest *request; ///< HTTP request being adapted or cause; may be nil | |
35 | HttpReply *reply; ///< HTTP response being adapted; may be nil | |
af0ded40 | 36 | AccessLogEntry::Pointer al; ///< info for the future access.log entry |
a22e6cd3 AR |
37 | }; |
38 | ||
39 | } // namespace Adaptation | |
40 | ||
41 | #endif /* SQUID_ADAPTATION__SERVICE_FILTER_H */ | |
f53969cc | 42 |