#ifndef SQUID_ICAPOPTXACT_H
#define SQUID_ICAPOPTXACT_H
-#include "adaptation/icap/ICAPXaction.h"
-#include "adaptation/icap/ICAPLauncher.h"
+#include "adaptation/icap/Xaction.h"
+#include "adaptation/icap/Launcher.h"
-class ICAPOptions;
+namespace Adaptation {
+namespace Icap {
-/* ICAPOptXact sends an ICAP OPTIONS request to the ICAP service,
+class Adaptation::Icap::Options;
+
+
+/* OptXact sends an ICAP OPTIONS request to the ICAP service,
* parses the ICAP response, and sends it to the initiator. A NULL response
* means the ICAP service could not be contacted or did not return any
* valid response. */
-class ICAPOptXact: public ICAPXaction
+class OptXact: public Xaction
{
public:
- ICAPOptXact(Adaptation::Initiator *anInitiator, ICAPServiceRep::Pointer &aService);
+ OptXact(Adaptation::Initiator *anInitiator, ServiceRep::Pointer &aService);
protected:
virtual void start();
void startReading();
private:
- CBDATA_CLASS2(ICAPOptXact);
+ CBDATA_CLASS2(OptXact);
};
-// An ICAPLauncher that stores ICAPOptXact construction info and
-// creates ICAPOptXact when needed
-class ICAPOptXactLauncher: public ICAPLauncher
+// An Launcher that stores OptXact construction info and
+// creates OptXact when needed
+class OptXactLauncher: public Launcher
{
public:
- ICAPOptXactLauncher(Adaptation::Initiator *anInitiator, Adaptation::ServicePointer aService);
+ OptXactLauncher(Adaptation::Initiator *anInitiator, Adaptation::ServicePointer aService);
protected:
- virtual ICAPXaction *createXaction();
+ virtual Xaction *createXaction();
private:
- CBDATA_CLASS2(ICAPOptXactLauncher);
+ CBDATA_CLASS2(OptXactLauncher);
};
+
+} // namespace Icap
+} // namespace Adaptation
+
#endif /* SQUID_ICAPOPTXACT_H */