]>
Commit | Line | Data |
---|---|---|
a22e6cd3 AR |
1 | #ifndef SQUID_ADAPTATION__SERVICE_FILTER_H |
2 | #define SQUID_ADAPTATION__SERVICE_FILTER_H | |
3 | ||
af0ded40 | 4 | #include "AccessLogEntry.h" |
a22e6cd3 AR |
5 | #include "adaptation/Elements.h" |
6 | ||
7 | class HttpRequest; | |
8 | class HttpReply; | |
9 | ||
10 | namespace Adaptation | |
11 | { | |
12 | ||
13 | /// information used to search for adaptation services | |
14 | class ServiceFilter | |
15 | { | |
16 | public: | |
af0ded40 | 17 | ServiceFilter(Method, VectPoint, HttpRequest *, HttpReply *, AccessLogEntry::Pointer const &al); // locks |
a22e6cd3 AR |
18 | ServiceFilter(const ServiceFilter &f); |
19 | ~ServiceFilter(); // unlocks | |
20 | ||
21 | ServiceFilter &operator =(const ServiceFilter &f); | |
22 | ||
23 | public: | |
24 | Method method; ///< adaptation direction | |
25 | VectPoint point; ///< adaptation location | |
26 | HttpRequest *request; ///< HTTP request being adapted or cause; may be nil | |
27 | HttpReply *reply; ///< HTTP response being adapted; may be nil | |
af0ded40 | 28 | AccessLogEntry::Pointer al; ///< info for the future access.log entry |
a22e6cd3 AR |
29 | }; |
30 | ||
31 | } // namespace Adaptation | |
32 | ||
33 | #endif /* SQUID_ADAPTATION__SERVICE_FILTER_H */ |