Config.cc \
Host.h \
Host.cc \
- MessageTranslator.h \
- MessageTranslator.cc \
+ MessageRep.h \
+ MessageRep.cc \
ServiceRep.h \
ServiceRep.cc \
XactionRep.h \
#include "squid.h"
#include "adaptation/Message.h"
-#include "eCAP/MessageTranslator.h"
+#include "eCAP/MessageRep.h"
* $Id$
*/
-#ifndef SQUID__ECAP__MESSAGE_TRANSLATOR_H
-#define SQUID__ECAP__MESSAGE_TRANSLATOR_H
+#ifndef SQUID__ECAP__MESSAGE_REP_H
+#define SQUID__ECAP__MESSAGE_REP_H
#include "adaptation/forward.h"
#include <libecap/common/message.h>
namespace Ecap {
// Translates Squid Adaptation::Message into libecap::Message.
-class MessageTranslator: public libecap::Message
+class MessageRep: public libecap::Message
{
public:
- MessageTranslator(Adaptation::Message &aMessage): theMessage(aMessage) {}
+ MessageRep(Adaptation::Message &aMessage): theMessage(aMessage) {}
private:
Adaptation::Message &theMessage; // the message being translated to libecap
} // namespace Ecap;
-#endif /* SQUID__E_CAP__MESSAGE_TRANSLATOR_H */
+#endif /* SQUID__E_CAP__MESSAGE_REP_H */
AsyncJob("Ecap::XactionRep"),
Adaptation::Initiate("Ecap::XactionRep", anInitiator, aService),
theVirgin(virginHeader), theCause(virginCause),
- theVirginTranslator(theVirgin), theCauseTranslator(theCause),
- theAnswerTranslator(theAnswer)
+ theVirginRep(theVirgin), theCauseRep(theCause),
+ theAnswerRep(theAnswer)
{
}
libecap::Message &
Ecap::XactionRep::virginMessage()
{
- return theVirginTranslator;
+ return theVirginRep;
}
libecap::Message &
Ecap::XactionRep::virginCause()
{
- return theCauseTranslator;
+ return theCauseRep;
}
void
libecap::Message &
Ecap::XactionRep::adaptedMessage()
{
- return theAnswerTranslator;
+ return theAnswerRep;
}
void
#include "adaptation/Initiate.h"
#include "adaptation/Service.h"
#include "adaptation/Message.h"
-#include "eCAP/MessageTranslator.h"
+#include "eCAP/MessageRep.h"
#include <libecap/common/forward.h>
#include <libecap/common/memory.h>
#include <libecap/host/xaction.h>
Adaptation::Message theVirgin;
Adaptation::Message theCause;
Adaptation::Message theAnswer;
- MessageTranslator theVirginTranslator;
- MessageTranslator theCauseTranslator;
- MessageTranslator theAnswerTranslator;
+ MessageRep theVirginRep;
+ MessageRep theCauseRep;
+ MessageRep theAnswerRep;
CBDATA_CLASS2(XactionRep);
};