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