*/
#include "squid.h"
-#include "ACLTag.h"
-#include "ACLStringData.h"
-#include "ACLChecklist.h"
+#include "acl/Tag.h"
+#include "acl/StringData.h"
+#include "acl/Checklist.h"
#include "HttpRequest.h"
-/* explicit template instantiation required for some systems */
-
-ACL::Prototype ACLTag::RegistryProtoype(&ACLTag::RegistryEntry_, "tag");
-
-ACLStrategised<const char *> ACLTag::RegistryEntry_(new ACLStringData, ACLTagStrategy::Instance(), "tag");
-
int
-ACLTagStrategy::match (ACLData<MatchType> * &data, ACLChecklist *checklist)
+ACLTagStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
{
if (checklist->conn() != NULL)
- return data->match (checklist->request->tag.buf());
+ return data->match (checklist->request->tag.termedBuf());
return 0;
}
-
/*
- * $Id: ACLTag.h,v 1.1.2.1 2008/02/27 10:06:42 amosjeffries Exp $
+ * $Id$
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* Copyright (c) 2009, Henrik Nordstrom <henrik@henriknordstrom.net>
*/
-#ifndef SQUID_ACLMYPORTNAME_H
-#define SQUID_ACLMYPORTNAME_H
-#include "ACLStrategy.h"
-#include "ACLStrategised.h"
+#ifndef SQUID_ACLTAG_H
+#define SQUID_ACLTAG_H
+
+#include "acl/Strategy.h"
+#include "acl/Strategised.h"
class ACLTagStrategy : public ACLStrategy<const char *>
{
public:
- virtual int match (ACLData<MatchType> * &, ACLChecklist *);
+ virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
static ACLTagStrategy *Instance();
/* Not implemented to prevent copies of the instance. */
/* Not private to prevent brain dead g+++ warnings about