trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [11/14] Delete all the old files, they are moved to plugins/experimental in our normal repo
Date Wed, 20 Jun 2012 21:23:01 GMT
http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/matcher.h
----------------------------------------------------------------------
diff --git a/header_rewrite/matcher.h b/header_rewrite/matcher.h
deleted file mode 100644
index 3676a52..0000000
--- a/header_rewrite/matcher.h
+++ /dev/null
@@ -1,159 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// 
-// Implement the classes for the various types of hash keys we support.
-//
-#ifndef __MATCHER_H__
-#define __MATCHER_H__ 1
-
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__matcher_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <ts/ts.h>
-#include "regex_helper.h"
-#include <iostream> // For debugging
-
-#include "lulu.h"
-
-
-// Possible operators that we support (at least partially)
-enum MatcherOps {
-  MATCH_EQUAL,
-  MATCH_LESS_THEN,
-  MATCH_GREATER_THEN,
-  MATCH_REGULAR_EXPRESSION
-};
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Base class for all Matchers (this is also the interface)
-//
-class Matcher
-{
-public:
-  explicit Matcher(const MatcherOps op)
-    : _pdata(NULL), _op(op)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for Matcher");
-  }
-
-  virtual ~Matcher() {
-    TSDebug(PLUGIN_NAME_DBG, "Calling DTOR for Matcher");
-    free_pdata();
-  }
-
-  void set_pdata(void* pdata) { _pdata = pdata; }
-  void* get_pdata() const { return _pdata; }
-  virtual void free_pdata() { TSfree(_pdata); _pdata = NULL; }
-
-protected:
-  void* _pdata;
-  const MatcherOps _op;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(Matcher);
-};
-
-// Template class to match on various types of data
-template<class T>
-class Matchers : public Matcher
-{
-public:
-  explicit Matchers<T>(const MatcherOps op)
-    : Matcher(op)
-  { }
-
-  // Getters / setters
-  const T get() const { return _data; };
- 
- void setRegex(const std::string data)
- {
-     if(!helper.setRegexMatch(_data))
-     {
-         std::cout<<"Invalid regex:failed to precompile"<<std::endl;
-         abort();
-     }
-     TSDebug(PLUGIN_NAME,"Regex precompiled successfully");
-
- }
-
- void setRegex(const unsigned int t)
- {
-     return;
- }
-
- void setRegex(const TSHttpStatus t)
- {
-     return;
- }
-
-  void set (const T d)
-  { 
-      _data = d;
-      if(_op == MATCH_REGULAR_EXPRESSION)
-        setRegex(d);
-  }
-
-  // Evaluate this matcher
-  bool
-  test(const T t) const {
-    switch (_op) {
-    case MATCH_EQUAL:
-      return test_eq(t);
-      break;
-    case MATCH_LESS_THEN:
-      return test_lt(t);
-      break;
-    case MATCH_GREATER_THEN:
-      return test_gt(t);
-      break;
-    case MATCH_REGULAR_EXPRESSION:
-      return test_reg(t);
-      break;
-    default:
-      // ToDo: error
-      break;
-    }
-    return false;
-  }
-
-private:
-  // For basic types
-  bool test_eq(const T t) const {
-    // std::cout << "Testing: " << t << " == " << _data << std::endl;
-    return t == _data;
-  }
-  bool test_lt(const T t) const {
-    // std::cout << "Testing: " << t << " < " << _data << std::endl;
-    return t < _data;
-  }
-  bool test_gt(const T t) const {
-    // std::cout << "Testing: " << t << " > " << _data << std::endl;
-    return t > _data;
-  }
-
- bool test_reg(const unsigned int t) const {
-    // Not support
-    return false;
-  }
-
-  bool test_reg(const TSHttpStatus t) const {
-    // Not support
-    return false;
-  }
-  
-  bool test_reg(const std::string t) const {
-      TSDebug(PLUGIN_NAME, "Test regular expression %s : %s", _data.c_str(), t.c_str());
-          int ovector[OVECCOUNT];
-          if (helper.regexMatch(t.c_str(), t.length(), ovector) > 0) {
-              TSDebug(PLUGIN_NAME, "Successfully found regular expression match");
-              return true;
-    }
-      return false;
-  }
-  T _data;
-  regexHelper helper;
-};
-
-#endif // __MATCHER_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/operator.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/operator.cc b/header_rewrite/operator.cc
deleted file mode 100644
index d68cab3..0000000
--- a/header_rewrite/operator.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// operator.cc: Implementation of the operator base class
-//
-//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operator_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <ts/ts.h>
-#include "operator.h"
-
-const OperModifiers
-Operator::get_oper_modifiers() const {
-  if (_next)
-    return static_cast<OperModifiers>(_mods | static_cast<Operator*>(_next)->get_oper_modifiers());
-
-  return _mods;
-}
-
-void
-Operator::initialize(Parser& p) {
-  Statement::initialize(p);
-
-  if (p.mod_exist("L")) {
-    _mods = static_cast<OperModifiers>(_mods | OPER_LAST);
-  }
-
-  if (p.mod_exist("QSA")) {
-    _mods = static_cast<OperModifiers>(_mods | OPER_QSA);
-  }
-
-}

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/operator.h
----------------------------------------------------------------------
diff --git a/header_rewrite/operator.h b/header_rewrite/operator.h
deleted file mode 100644
index 4323f15..0000000
--- a/header_rewrite/operator.h
+++ /dev/null
@@ -1,59 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// Public interface for creating all operators. Don't user the operator.h interface
-// directly!
-//
-#ifndef __OPERATOR_H__
-#define __OPERATOR_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operator_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <ts/ts.h>
-
-#include "resources.h"
-#include "statement.h"
-#include "parser.h"
-
-
-// Operator modifiers
-enum OperModifiers {
-  OPER_NONE = 0,
-  OPER_LAST = 1,
-  OPER_NEXT = 2,
-  OPER_QSA=4
-};
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Base class for all Operators (this is also the interface)
-//
-class Operator : public Statement
-{
-public:
-  Operator()
-    : _mods(OPER_NONE)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for Operator");
-  }
-
-  void do_exec(const Resources& res) const {
-    exec(res);
-    if (NULL != _next)
-      static_cast<Operator*>(_next)->do_exec(res);
-  }
-
-  const OperModifiers get_oper_modifiers() const;
-
-  virtual void initialize(Parser& p);
-
-protected:
-  virtual void exec(const Resources& res) const = 0;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(Operator);
-
-  OperModifiers _mods;
-};
-
-#endif // __OPERATOR_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/operators.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/operators.cc b/header_rewrite/operators.cc
deleted file mode 100644
index c5db93a..0000000
--- a/header_rewrite/operators.cc
+++ /dev/null
@@ -1,366 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// operators.cc: implementation of the operator classes
-//
-//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operators_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <arpa/inet.h>
-#include <ts/ts.h>
-#include <string.h>
-
-#include "operators.h"
-
-// OperatorRMHeader
-void
-OperatorRMHeader::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  _header = p.get_arg();
-
-  require_resources(RSRC_SERVER_RESPONSE_HEADERS);
-  require_resources(RSRC_SERVER_REQUEST_HEADERS);
-  require_resources(RSRC_CLIENT_REQUEST_HEADERS);
-  require_resources(RSRC_CLIENT_RESPONSE_HEADERS);
-}
-
-
-void
-OperatorRMHeader::exec(const Resources& res) const
-{
-  TSMLoc field_loc, tmp;
-
-  if (res.bufp && res.hdr_loc) {
-    TSDebug(PLUGIN_NAME, "OperatorRMHeader::exec() invoked on header %s", _header.c_str());
-    field_loc = TSMimeHdrFieldFind(res.bufp, res.hdr_loc, _header.c_str(), _header.size());
-    while (field_loc) {
-      TSDebug(PLUGIN_NAME, "\tdeleting header %s", _header.c_str());
-      tmp = TSMimeHdrFieldNextDup(res.bufp, res.hdr_loc, field_loc);
-      TSMimeHdrFieldDestroy(res.bufp, res.hdr_loc, field_loc);
-      TSHandleMLocRelease(res.bufp, res.hdr_loc, field_loc);
-      field_loc = tmp;
-    }
-  }
-}
-
-
-// OperatorSetStatus
-void
-OperatorSetStatus::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  _status.set_value(p.get_arg());
-
-  if (NULL == (_reason = TSHttpHdrReasonLookup((TSHttpStatus)_status.get_int_value()))) {
-    TSError("header_rewrite: unknown status %d", _status.get_int_value());
-    _reason_len = 0;
-  } else {
-    _reason_len = strlen(_reason);
-  }
-
-  require_resources(RSRC_SERVER_RESPONSE_HEADERS);
-  require_resources(RSRC_CLIENT_RESPONSE_HEADERS);
-  require_resources(RSRC_RESPONSE_STATUS);
-}
-
-
-void
-OperatorSetStatus::initialize_hooks() {
-  add_allowed_hook(TS_HTTP_READ_RESPONSE_HDR_HOOK);
-  add_allowed_hook(TS_HTTP_SEND_RESPONSE_HDR_HOOK);
-}
-
-
-void
-OperatorSetStatus::exec(const Resources& res) const
-{
-  if (res.bufp && res.hdr_loc) {
-    TSHttpHdrStatusSet(res.bufp, res.hdr_loc, (TSHttpStatus)_status.get_int_value());
-    if (_reason && _reason_len > 0)
-      TSHttpHdrReasonSet(res.bufp, res.hdr_loc, _reason, _reason_len);
-  }
-}
-
-
-// OperatorSetStatusReason
-void
-OperatorSetStatusReason::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  _reason.set_value(p.get_arg());
-  require_resources(RSRC_CLIENT_RESPONSE_HEADERS);
-  require_resources(RSRC_SERVER_RESPONSE_HEADERS);
-}
-
-
-void
-OperatorSetStatusReason::initialize_hooks() {
-  add_allowed_hook(TS_HTTP_READ_RESPONSE_HDR_HOOK);
-  add_allowed_hook(TS_HTTP_SEND_RESPONSE_HDR_HOOK);
-}
-
-void
-OperatorSetStatusReason::exec(const Resources& res) const {
-  if (res.bufp && res.hdr_loc) {
-    std::string reason;
-
-    _reason.append_value(reason, res);
-    if (reason.size() > 0) {
-      TSDebug(PLUGIN_NAME, "Setting Status Reason to %s", reason.c_str());
-      TSHttpHdrReasonSet(res.bufp, res.hdr_loc, reason.c_str(), reason.size());
-    }
-  }
-}
-
-
-// OperatorAddHeader
-void
-OperatorAddHeader::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  _header = p.get_arg();
-  _value.set_value(p.get_value());
-  
-  require_resources(RSRC_SERVER_RESPONSE_HEADERS);
-  require_resources(RSRC_SERVER_REQUEST_HEADERS);
-  require_resources(RSRC_CLIENT_REQUEST_HEADERS);
-  require_resources(RSRC_CLIENT_RESPONSE_HEADERS);
-}
-
-
-void
-OperatorAddHeader::exec(const Resources& res) const
-{
-//  int IP = TSHttpTxnServerIPGet(res.txnp);
-//  inet_ntop(AF_INET, &IP, buf, sizeof(buf));
-  std::string value;
-
-  _value.append_value(value, res);
-
-  // Never set an empty header (I don't think that ever makes sense?)
-  if (value.empty()) {
-    TSDebug(PLUGIN_NAME, "Would set header %s to an empty value, skipping", _header.c_str());
-    return;
-  }
-  
-  if (res.bufp && res.hdr_loc) {
-    TSDebug(PLUGIN_NAME, "OperatorAddHeader::exec() invoked on header %s: %s", _header.c_str(), value.c_str());
-    TSMLoc field_loc;
-    
-    if (TS_SUCCESS == TSMimeHdrFieldCreateNamed(res.bufp, res.hdr_loc, _header.c_str(), _header.size(), &field_loc)) {
-      if (TS_SUCCESS == TSMimeHdrFieldValueStringInsert(res.bufp, res.hdr_loc, field_loc, -1, value.c_str(), value.size())) {
-        TSDebug(PLUGIN_NAME, "   adding header %s", _header.c_str());
-        //INKHttpHdrPrint(res.bufp, res.hdr_loc, reqBuff);
-        TSMimeHdrFieldAppend(res.bufp, res.hdr_loc, field_loc);
-      }
-      TSHandleMLocRelease(res.bufp, res.hdr_loc, field_loc);
-    }
-      
-  }
-}
-
-
-/// TODO and XXX: These currently only support when running as remap plugin.
-// OperatorSetDestination
-void
-OperatorSetDestination::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  _url_qual = parse_url_qualifier(p.get_arg());
-  _value.set_value(p.get_value());
-  // TODO: What resources would we require here?
-}
-
-
-void
-OperatorSetDestination::exec(const Resources& res) const
-{
-  if (res._rri) {
-    std::string value;
-
-    // Never set an empty destination value (I don't think that ever makes sense?)
-    switch (_url_qual) {
-
-    case URL_QUAL_HOST:
-      _value.append_value(value, res);
-      if (value.empty()) {
-        TSDebug(PLUGIN_NAME, "Would set destination HOST to an empty value, skipping");
-      } else {
-        const_cast<Resources&>(res).changed_url = true;
-        TSUrlHostSet(res._rri->requestBufp, res._rri->requestUrl, value.c_str(), value.size());
-        TSDebug(PLUGIN_NAME, "OperatorSetHost::exec() invoked with HOST: %s", value.c_str());
-      }
-      break;
-
-    case URL_QUAL_PATH:
-      _value.append_value(value, res);
-      if (value.empty()) {
-        TSDebug(PLUGIN_NAME, "Would set destination PATH to an empty value, skipping");
-      } else {
-        const_cast<Resources&>(res).changed_url = true;
-        TSUrlHostSet(res._rri->requestBufp, res._rri->requestUrl, value.c_str(), value.size());
-        TSDebug(PLUGIN_NAME, "OperatorSetHost::exec() invoked with PATH: %s", value.c_str());
-      }
-      break;
-
-    case URL_QUAL_QUERY:
-      _value.append_value(value, res);
-      if (value.empty()) {
-        TSDebug(PLUGIN_NAME, "Would set destination QUERY to an empty value, skipping");
-      } else {
-        //1.6.4--Support for preserving QSA in case of set-destination
-        if (get_oper_modifiers() & OPER_QSA) {
-          int query_len = 0;
-          const char* query = TSUrlHttpQueryGet(res._rri->requestBufp, res._rri->requestUrl, &query_len);
-          TSDebug(PLUGIN_NAME, "QSA mode, append original query string: %.*s", query_len, query);
-          //std::string connector = (value.find("?") == std::string::npos)? "?" : "&";
-          value.append("&");
-          value.append(query, query_len);
-        }
-
-        const_cast<Resources&>(res).changed_url = true;
-        TSUrlHttpQuerySet(res._rri->requestBufp, res._rri->requestUrl, value.c_str(), value.size());
-        TSDebug(PLUGIN_NAME, "OperatorSetHost::exec() invoked with QUERY: %s", value.c_str());
-      }
-      break;
-
-    case URL_QUAL_PORT:
-      if (_value.get_int_value() <= 0) {
-        TSDebug(PLUGIN_NAME, "Would set destination PORT to an invalid range, skipping");
-      } else {
-        const_cast<Resources&>(res).changed_url = true;
-        TSUrlPortSet(res._rri->requestBufp, res._rri->requestUrl, _value.get_int_value());
-        TSDebug(PLUGIN_NAME, "OperatorSetHost::exec() invoked with PORT: %d", _value.get_int_value());
-      }
-      break;
-    case URL_QUAL_URL:
-      // TODO: Implement URL parser.
-      break;
-    default:
-      break;
-    }
-  } else {
-    // TODO: Handle the non-remap case here (InkAPI hooks)
-  }
-}
-
-
-/// TODO and XXX: These currently only support when running as remap plugin.
-// OperatorSetRedirect
-void
-OperatorSetRedirect::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  _status.set_value(p.get_arg());
-  _location.set_value(p.get_value());
-
-  if ((_status.get_int_value() != (int)TS_HTTP_STATUS_MOVED_PERMANENTLY) &&
-      (_status.get_int_value() != (int)TS_HTTP_STATUS_MOVED_TEMPORARILY)) {
-    TSError("header_rewrite: unsupported redirect status %d", _status.get_int_value());
-  }
-
-  require_resources(RSRC_SERVER_RESPONSE_HEADERS);
-  require_resources(RSRC_CLIENT_RESPONSE_HEADERS);
-  require_resources(RSRC_RESPONSE_STATUS);
-}
-
-
-void
-OperatorSetRedirect::exec(const Resources& res) const
-{
-  if (res._rri) {
-    if (res.bufp && res.hdr_loc) {
-      std::string value;
-
-      _location.append_value(value, res);
-         
-      // Replace %{PATH} to original path
-      size_t pos_path = 0;
-      
-      if ((pos_path = value.find("%{PATH}")) != std::string::npos) {
-          value.erase(pos_path, 7); // erase %{PATH} from the rewritten to url
-          int path_len = 0;
-          const char *path = TSUrlPathGet(res._rri->requestBufp, res._rri->requestUrl, &path_len);
-          if (path_len > 0) {
-            TSDebug(PLUGIN_NAME, "Find %%{PATH} in redirect url, replace it with: %.*s", path_len, path);
-            value.insert(pos_path, path, path_len);
-          }
-      }
-       
-      // Append the original query string
-      int query_len = 0;
-      const char *query = TSUrlHttpQueryGet(res._rri->requestBufp, res._rri->requestUrl, &query_len);
-      if ((get_oper_modifiers() & OPER_QSA) && (query_len > 0)) {
-          TSDebug(PLUGIN_NAME, "QSA mode, append original query string: %.*s", query_len, query);
-          std::string connector = (value.find("?") == std::string::npos)? "?" : "&";
-          value.append(connector);
-          value.append(query, query_len);
-      }
-
-      TSHttpTxnSetHttpRetStatus(res.txnp,(TSHttpStatus)_status.get_int_value());
-      //TSHttpHdrStatusSet(res.bufp, res.hdr_loc, (TSHttpStatus)_status.get_int_value());
-      const char *start = value.c_str();
-      const char *end = value.size() + start;
-      TSUrlParse(res._rri->requestBufp, res._rri->requestUrl, &start, end);
-      TSDebug(PLUGIN_NAME, "OperatorSetRedirect::exec() invoked with destination=%s and status code=%d", 
-              value.c_str(), _status.get_int_value());
-    }
-    
-  } else {
-    // TODO: Handle the non-remap case here (InkAPI hooks)
-  }
-}
-
-
-// OperatorSetTimeoutOut
-void
-OperatorSetTimeoutOut::initialize(Parser& p) {
-  Operator::initialize(p);
-
-  if (p.get_arg() == "active") {
-    _type = TO_OUT_ACTIVE;
-  } else if (p.get_arg() == "inactive") {
-    _type = TO_OUT_INACTIVE;
-  } else if (p.get_arg() == "connect") {
-    _type = TO_OUT_CONNECT;
-  } else if (p.get_arg() == "dns") {
-    _type = TO_OUT_DNS;
-  } else {
-    _type = TO_OUT_UNDEFINED;
-    TSError("header_rewrite: unsupported timeout qualifier: %s", p.get_arg().c_str());
-  }
-
-  _timeout.set_value(p.get_value());
-}
-
-
-void
-OperatorSetTimeoutOut::exec(const Resources& res) const
-{
-  switch (_type) {
-  case TO_OUT_ACTIVE:
-    TSDebug(PLUGIN_NAME, "OperatorSetTimeoutOut::exec(active, %d)", _timeout.get_int_value());
-    TSHttpTxnActiveTimeoutSet(res.txnp, _timeout.get_int_value());
-    break;
-
-  case TO_OUT_INACTIVE:
-    TSDebug(PLUGIN_NAME, "OperatorSetTimeoutOut::exec(inactive, %d)", _timeout.get_int_value());
-    TSHttpTxnNoActivityTimeoutSet(res.txnp, _timeout.get_int_value());
-    break;
-
-  case TO_OUT_CONNECT:
-    TSDebug(PLUGIN_NAME, "OperatorSetTimeoutOut::exec(connect, %d)", _timeout.get_int_value());
-    TSHttpTxnConnectTimeoutSet(res.txnp, _timeout.get_int_value());
-    break;
-
-  case TO_OUT_DNS:
-    TSDebug(PLUGIN_NAME, "OperatorSetTimeoutOut::exec(dns, %d)", _timeout.get_int_value());
-    TSHttpTxnDNSTimeoutSet(res.txnp, _timeout.get_int_value());
-    break;
-  default:
-    TSError("header_rewrite: unsupported timeout");
-    break;
-  }
-}
-

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/operators.h
----------------------------------------------------------------------
diff --git a/header_rewrite/operators.h b/header_rewrite/operators.h
deleted file mode 100644
index f85112c..0000000
--- a/header_rewrite/operators.h
+++ /dev/null
@@ -1,192 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// 
-// Implement the classes for the various types of hash keys we support.
-//
-#ifndef __OPERATORS_H__
-#define __OPERATORS_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operators_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <ts/ts.h>
-
-#include "operator.h"
-#include "resources.h"
-#include "value.h"
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Operator declarations.
-//
-class OperatorRMHeader : public Operator
-{
-public:
-  OperatorRMHeader()
-    : _header("")
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorRMHeader");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorRMHeader);
-
-  std::string _header;
-};
-
-
-class OperatorSetStatus : public Operator
-{
-public:
-  OperatorSetStatus()
-    : _reason(NULL), _reason_len(0)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorSetStatus");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void initialize_hooks();
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorSetStatus);
-
-  Value _status;
-  const char* _reason;
-  int _reason_len;
-};
-
-
-class OperatorSetStatusReason : public Operator
-{
-public:
-  OperatorSetStatusReason()
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorSetStatusReason");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void initialize_hooks();
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorSetStatusReason);
-
-  Value _reason;
-};
-
-
-class OperatorAddHeader : public Operator
-{
-public:
-  OperatorAddHeader()
-    : _header("")
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorAddHeader");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorAddHeader);
-
-  std::string _header;
-  Value _value;
-};
-
-
-class OperatorSetDestination : public Operator
-{
-public:
-  OperatorSetDestination()
-    : _url_qual(URL_QUAL_NONE)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorSetDestination");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorSetDestination);
-
-  UrlQualifiers _url_qual;
-  Value _value;
-};
-
-
-class OperatorSetRedirect : public Operator
-{
-public:
-  OperatorSetRedirect()
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorSetRedirect");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorSetRedirect);
-
-  Value _status;
-  Value _location;
-};
-
-
-class OperatorNoOp : public Operator
-{
-public:
-  OperatorNoOp()
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorNoOp");
-  }
-
-protected:
-  void exec(const Resources& res) const { };
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorNoOp);
-};
-
-
-class OperatorSetTimeoutOut : public Operator
-{
-public:
-  OperatorSetTimeoutOut()
-    : _type(TO_OUT_UNDEFINED)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for OperatorSetTimeoutOut");
-  }
-  void initialize(Parser& p);
-
-protected:
-  void exec(const Resources& res) const;
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(OperatorSetTimeoutOut);
-
-  enum TimeoutOutType {
-    TO_OUT_UNDEFINED,
-    TO_OUT_ACTIVE,
-    TO_OUT_INACTIVE,
-    TO_OUT_CONNECT,
-    TO_OUT_DNS
-  };
-
-  TimeoutOutType _type;
-  Value _timeout;
-};
-
-
-#endif // __OPERATORS_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/parser.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/parser.cc b/header_rewrite/parser.cc
deleted file mode 100644
index b0289d6..0000000
--- a/header_rewrite/parser.cc
+++ /dev/null
@@ -1,107 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// parser.cc: implementation of the config parser
-//
-//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__parser_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <utility>
-#include <boost/tokenizer.hpp>
-
-#include <ts/ts.h>
-
-#include "parser.h"
-
-// Tokenizer separators
-static boost::escaped_list_separator<char> token_sep('\\', ' ', '\"');
-static boost::char_separator<char> comma_sep(",");
-
-
-// This is the core "parser", parsing rule sets
-void
-Parser::preprocess(std::vector<std::string>& tokens)
-{
-  // Special case for "conditional" values
-  if (tokens[0].substr(0, 2) == "%{") {
-    _cond = true;
-  } else if (tokens[0] == "cond") {
-    _cond = true;
-    tokens.erase(tokens.begin());
-  }
-
-  // Is it a condition or operator?
-  if (_cond) {
-    if ((tokens[0].substr(0, 2) == "%{") && (tokens[0][tokens[0].size() - 1] == '}')) {
-      std::string s = tokens[0].substr(2, tokens[0].size() - 3);
-
-      _op = s;
-      if (tokens.size() > 1)
-        _arg = tokens[1];
-      else
-        _arg = "";
-    } else {
-      TSError("header_rewrite: conditions must be embraced in %%{}");
-      return;
-    }
-  } else {
-    // Operator has no qualifiers, but could take an optional second argumetn
-    _op = tokens[0];
-    if (tokens.size() > 1) {
-      _arg = tokens[1];
-      if (tokens.size() > 2)
-        _val = tokens[2];
-      else
-        _val = "";
-    } else {
-      _arg = "";
-      _val = "";
-    }
-  }
-
-  // The last token might be the "flags" section
-  if (tokens.size() > 0) {
-    std::string m  = tokens[tokens.size() - 1];
-
-    if (!m.empty() && (m[0] == '[')) {
-      if (m[m.size() - 1] == ']') {
-        m = m.substr(1, m.size() - 2);
-        if (m.find_first_of(',') != std::string::npos) {
-          boost::tokenizer<boost::char_separator<char> > mods(m, comma_sep);
-          std::copy(mods.begin(), mods.end(), std::back_inserter(_mods));
-        } else {
-          _mods.push_back(m);
-        }
-      } else {
-        // Syntax error
-        TSError("header_rewrite: mods have to be embraced in []");
-        return;
-      }
-    }
-  }
-}
-
-
-Parser::Parser(const std::string& line) :
-  _cond(false), _empty(false)
-{
-  TSDebug("header_rewrite_dbg", "Calling CTOR for Parser");
-
-  if (line[0] == '#') {
-    _empty = true;
-  } else {
-    boost::tokenizer<boost::escaped_list_separator<char> > elem(line, token_sep);
-    std::vector<std::string> tokens;
-
-    for (boost::tokenizer<boost::escaped_list_separator<char> >::iterator it = elem.begin(); it != elem.end(); it++) {
-      // Skip "empty" tokens (tokenizer is a little brain dead IMO)
-      if ((*it) != "")
-        tokens.push_back(*it);
-    }
-
-    if (tokens.empty()) {
-      _empty = true;
-    } else {
-      preprocess(tokens);
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/parser.h
----------------------------------------------------------------------
diff --git a/header_rewrite/parser.h b/header_rewrite/parser.h
deleted file mode 100644
index 0d0aa46..0000000
--- a/header_rewrite/parser.h
+++ /dev/null
@@ -1,53 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// 
-// Interface for the config line parser
-//
-#ifndef __PARSER_H__
-#define __PARSER_H__ 1
-
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__parser_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <vector>
-#include <algorithm>
-
-#include "lulu.h"
-
-
-///////////////////////////////////////////////////////////////////////////////
-//
-class Parser
-{
-public:
-  explicit Parser(const std::string& line);
-
-  bool empty() const { return _empty; }
-  bool is_cond() const { return _cond; }
-
-  bool cond_op_is(const std::string s) const { return _cond && (_op == s); }
-  bool oper_op_is(const std::string s) const { return !_cond && (_op == s); }
-
-  const std::string& get_op() const { return _op; }
-  std::string& get_arg() { return _arg; }
-  const std::string& get_value() const { return _val; }
-
-  bool mod_exist(const std::string m) const {
-    return (std::find(_mods.begin(), _mods.end(), m) != _mods.end());
-  }
-
-private:
-  void preprocess(std::vector<std::string>& tokens);
-  DISALLOW_COPY_AND_ASSIGN(Parser);
-
-  bool _cond;
-  bool _empty;
-  std::vector<std::string> _mods;
-  std::string _op;
-  std::string _arg;
-  std::string _val;
-};
-
-
-#endif // __PARSER_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/regex_helper.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/regex_helper.cc b/header_rewrite/regex_helper.cc
deleted file mode 100644
index 578253c..0000000
--- a/header_rewrite/regex_helper.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-#include "regex_helper.h"
-
-bool
-regexHelper::setRegexMatch(const std::string& s) 
-{
-
-    const char* errorComp = NULL;
-    const char* errorStudy = NULL;
-    int erroffset;
-
-    regexString = s;
-    regex = pcre_compile(regexString.c_str(), 0, &errorComp, &erroffset, NULL);
-
-    if (regex == NULL) 
-    {
-        return false;
-    }
-    regexExtra = pcre_study(regex, 0, &errorStudy);
-    if ((regexExtra == NULL) && (errorStudy != 0)) 
-    {
-        return false;
-    }
-    if (pcre_fullinfo(regex, regexExtra, PCRE_INFO_CAPTURECOUNT, &regexCcount) != 0)
-        return false;
-    return true;
-  }
-
-const std::string&
-regexHelper::getRegexString() const 
-{
-    return regexString;
-}
-
-int
-regexHelper::getRegexCcount() const 
-{
-    return regexCcount;
-}
-
-int
-regexHelper::regexMatch(const char* str, int len, int ovector[]) const {
-    return pcre_exec(regex,                // the compiled pattern
-          regexExtra,          // Extra data from study (maybe)
-          str,                  // the subject std::string
-          len,                  // the length of the subject
-          0,                    // start at offset 0 in the subject
-          0,                    // default options
-          ovector,              // output vector for substring information
-          OVECCOUNT);           // number of elements in the output vector
-  };
-
-

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/regex_helper.h
----------------------------------------------------------------------
diff --git a/header_rewrite/regex_helper.h b/header_rewrite/regex_helper.h
deleted file mode 100644
index 6b43c31..0000000
--- a/header_rewrite/regex_helper.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef REGEX_HELPER_H
-#define REGEX_HELPER_H
-
-#include <pcre.h>
-
-#include <string>
-
-
-const int OVECCOUNT = 30; // We support $1 - $9 only, and this needs to be 3x that
-
-class regexHelper{
-public:
-    regexHelper():
-        regex(NULL),regexExtra(NULL),regexCcount(0)
-    {
-    
-    }
-
-  ~regexHelper() 
-  {
-      if (regex)
-          pcre_free(regex);
-
-      if (regexExtra)
-          pcre_free(regexExtra);
-  }
-
-
-
-bool setRegexMatch(const std::string &s);
-const std::string& getRegexString() const;
-int getRegexCcount() const;
-int regexMatch(const char*,int,int ovector[]) const;
-
-private:
-  pcre* regex;
-  pcre_extra* regexExtra;
-  std::string regexString;
-  int regexCcount;
-
-};
-
-
-#endif

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/resources.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/resources.cc b/header_rewrite/resources.cc
deleted file mode 100644
index 1e1233e..0000000
--- a/header_rewrite/resources.cc
+++ /dev/null
@@ -1,110 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// resources.cc: Implementation of the resources class.
-//
-//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__resources_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <ts/ts.h>
-
-#include "resources.h"
-#include "lulu.h"
-
-void
-Resources::gather(const ResourceIDs ids, TSHttpHookID hook)
-{
-  TSDebug(PLUGIN_NAME, "Building resource structure for hook (%d)", hook);
-
-  // If we need the client request headers, make sure it's also available in the client vars.
-  if (ids & RSRC_CLIENT_REQUEST_HEADERS) {
-    TSDebug(PLUGIN_NAME, "\tAdding TXN client request header buffers");
-    if (TSHttpTxnClientReqGet(txnp, &client_bufp, &client_hdr_loc) != TS_SUCCESS) {
-      TSDebug(PLUGIN_NAME, "could not gather bufp/hdr_loc for request");
-      return;
-    }
-  }
-
-  switch (hook) {
-  case TS_HTTP_READ_RESPONSE_HDR_HOOK:
-    // Read response headers from server
-    if (ids & RSRC_SERVER_RESPONSE_HEADERS) {
-      TSDebug(PLUGIN_NAME, "\tAdding TXN server response header buffers");
-      if (TSHttpTxnServerRespGet(txnp, &bufp, &hdr_loc) != TS_SUCCESS) {
-        TSDebug(PLUGIN_NAME, "could not gather bufp/hdr_loc for response");
-        return;
-      }
-    }
-    if (ids & RSRC_RESPONSE_STATUS) {
-      TSDebug(PLUGIN_NAME, "\tAdding TXN server response status resource");
-      resp_status = TSHttpHdrStatusGet(bufp, hdr_loc);
-    }
-    break;
-
-  case TS_HTTP_SEND_REQUEST_HDR_HOOK:
-    // Read request headers to server
-    if (ids & RSRC_SERVER_REQUEST_HEADERS) {
-      TSDebug(PLUGIN_NAME, "\tAdding TXN server request header buffers");
-      if (!TSHttpTxnServerReqGet(txnp, &bufp, &hdr_loc)) {
-        TSDebug(PLUGIN_NAME, "could not gather bufp/hdr_loc for request");
-        return;
-      }
-    }
-    break;
-
-  case TS_HTTP_READ_REQUEST_HDR_HOOK:
-  case TS_HTTP_READ_REQUEST_PRE_REMAP_HOOK:
-    // Read request from client
-    if (ids & RSRC_CLIENT_REQUEST_HEADERS) {
-      bufp = client_bufp;
-      hdr_loc = client_hdr_loc;
-    }
-    break;
-
-  case TS_HTTP_SEND_RESPONSE_HDR_HOOK:
-    // Send response headers to client
-    if (ids & RSRC_CLIENT_RESPONSE_HEADERS) {
-      TSDebug(PLUGIN_NAME, "\tAdding TXN client response header buffers");
-      if (TSHttpTxnClientRespGet(txnp, &bufp, &hdr_loc) != TS_SUCCESS) {
-        TSDebug(PLUGIN_NAME, "could not gather bufp/hdr_loc for request");
-        return;
-      }
-      if (ids & RSRC_RESPONSE_STATUS) {
-        TSDebug(PLUGIN_NAME, "\tAdding TXN client esponse status resource");
-        resp_status = TSHttpHdrStatusGet(bufp, hdr_loc);
-      }
-    }
-    break;
-
-  case TS_REMAP_PSEUDO_HOOK:
-    // Pseudo-hook for a remap instance
-    if (client_bufp && client_hdr_loc) {
-      TSDebug(PLUGIN_NAME, "\tAdding TXN client request header buffers for remap instance");
-      bufp = client_bufp;
-      hdr_loc = client_hdr_loc;
-    }
-    break;
-    
-    
-  default:
-    break;
-  }
-
-    _ready  = true;
-}
-
-void
-Resources::destroy()
-{
-  if (bufp) {
-    if (hdr_loc)
-      TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
-  }
-
-  if (client_bufp && (client_bufp != bufp)) {
-    if (client_hdr_loc && (client_hdr_loc != hdr_loc)) // TODO: Is this check really necessary?
-      TSHandleMLocRelease(client_bufp, TS_NULL_MLOC, client_hdr_loc);
-  }
-
-  _ready = false;
-}

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/resources.h
----------------------------------------------------------------------
diff --git a/header_rewrite/resources.h b/header_rewrite/resources.h
deleted file mode 100644
index db29170..0000000
--- a/header_rewrite/resources.h
+++ /dev/null
@@ -1,75 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// 
-// Implement the classes for the various types of hash keys we support.
-//
-#ifndef __RESOURCES_H__
-#define __RESOURCES_H__ 1
-
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__resources_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <ts/ts.h>
-#include <ts/remap.h>
-
-#include "lulu.h"
-
-
-#define TS_REMAP_PSEUDO_HOOK TS_HTTP_LAST_HOOK // Ugly, but use the "last hook" for remap instances.
-
-enum ResourceIDs {
-  RSRC_NONE = 0,
-  RSRC_SERVER_RESPONSE_HEADERS = 1,
-  RSRC_SERVER_REQUEST_HEADERS = 2,
-  RSRC_CLIENT_REQUEST_HEADERS = 4,
-  RSRC_CLIENT_RESPONSE_HEADERS = 8,
-  RSRC_RESPONSE_STATUS = 16,
-};
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Resources holds the minimum resources required to process a request.
-//
-class Resources
-{
-public:
-  explicit Resources(TSHttpTxn txnptr, TSCont contptr)
-    : txnp(txnptr), contp(contptr), bufp(NULL), hdr_loc(NULL), client_bufp(NULL), client_hdr_loc(NULL),
-      resp_status(TS_HTTP_STATUS_NONE), _rri(NULL), changed_url(false), _ready(false)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for Resources (InkAPI)");
-  }
-
-  Resources(TSHttpTxn txnptr, TSRemapRequestInfo *rri) :
-    txnp(txnptr), contp(NULL),
-    bufp(NULL), hdr_loc(NULL), client_bufp(NULL), client_hdr_loc(NULL), resp_status(TS_HTTP_STATUS_NONE),
-    _rri(rri), _ready(false)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for Resources (RemapAPI)");
-  }
-
-  ~Resources() { destroy(); }
-
-  void gather(const ResourceIDs ids, TSHttpHookID hook);
-  bool ready() const { return _ready; }
-
-  TSHttpTxn txnp;
-  TSCont contp;
-  TSMBuffer bufp;
-  TSMLoc hdr_loc;
-  TSMBuffer client_bufp;
-  TSMLoc client_hdr_loc;
-  TSHttpStatus resp_status;
-  TSRemapRequestInfo *_rri;
-  bool changed_url;
-
-private:
-  void destroy();
-  DISALLOW_COPY_AND_ASSIGN(Resources);
-
-  bool _ready;
-};
-
-
-#endif // __RESOURCES_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/ruleset.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/ruleset.cc b/header_rewrite/ruleset.cc
deleted file mode 100644
index 6dce0fb..0000000
--- a/header_rewrite/ruleset.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// ruleset.cc: implementation of the ruleset class
-//
-//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__ruleset_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-
-#include "ruleset.h"
-#include "factory.h"
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Class implementation (no reason to have these inline)
-//
-void
-RuleSet::append(RuleSet* rule) {
-  RuleSet* tmp = this;
-
-  TSReleaseAssert(rule->next == NULL);
-
-  while (tmp->next)
-    tmp = tmp->next;
-  tmp->next = rule;
-}
-
-
-void
-RuleSet::add_condition(Parser& p) {
-  Condition* c = condition_factory(p.get_op());
-
-  if (NULL != c) {
-    TSDebug(PLUGIN_NAME, "Adding condition: %%{%s} with arg: %s\n", p.get_op().c_str(), p.get_arg().c_str());
-    c->initialize(p);
-    if (!c->set_hook(_hook)) {
-      TSError("header_rewrite: can't use this condition in this hook");
-      return;
-    }
-    if (NULL == _cond) {
-      _cond = c;
-    } else {
-      _cond->append(c);
-    }
-
-    // Update some ruleset state based on this new condition
-    _last |= c->last();
-    _ids = static_cast<ResourceIDs>(_ids | _cond->get_resource_ids());
-  }
-}
-
-
-void
-RuleSet::add_operator(Parser& p) {
-  Operator* o = operator_factory(p.get_op());
-
-  if (NULL != o) {
-    // TODO: This should be extended to show both the "argument" and the "value" (if both are used)
-    TSDebug(PLUGIN_NAME, "Adding operator: %s(%s)\n", p.get_op().c_str(), p.get_arg().c_str());
-    o->initialize(p);
-    if (!o->set_hook(_hook)) {
-      TSError("header_rewrite: can't use this operator in this hook");
-      return;
-    }
-    if (NULL == _oper) {
-      _oper = o;
-    } else {
-      _oper->append(o);
-    }
-
-    // Update some ruleset state based on this new operator
-    _opermods = static_cast<OperModifiers>(_opermods | _oper->get_oper_modifiers());
-    _ids = static_cast<ResourceIDs>(_ids | _oper->get_resource_ids());
-  }
-}

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/ruleset.h
----------------------------------------------------------------------
diff --git a/header_rewrite/ruleset.h b/header_rewrite/ruleset.h
deleted file mode 100644
index f0e13ad..0000000
--- a/header_rewrite/ruleset.h
+++ /dev/null
@@ -1,81 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// 
-// Implement the classes for the various types of hash keys we support.
-//
-#ifndef __RULESET_H__
-#define __RULESET_H__ 1
-
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__ruleset_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-
-#include "matcher.h"
-#include "factory.h"
-#include "resources.h"
-#include "parser.h"
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Class holding one ruleset. A ruleset is one (or more) pre-conditions, and
-// one (or more) operators.
-//
-class RuleSet
-{
-public:
-  RuleSet()
-    : next(NULL), _cond(NULL), _oper(NULL), _hook(TS_HTTP_READ_RESPONSE_HDR_HOOK), _ids(RSRC_NONE),
-      _opermods(OPER_NONE), _last(false)
-  { };
-
-  // No reason to inline these
-  void append(RuleSet* rule);
-
-  void add_condition(Parser& p);
-  void add_operator(Parser& p);
-  bool has_operator() const { return NULL != _oper; }
-  bool has_condition() const { return NULL != _cond; }
-
-  void set_hook(TSHttpHookID hook) { _hook = hook; }
-  const TSHttpHookID get_hook() const { return _hook; }
-
-  // Inline
-  const ResourceIDs get_all_resource_ids() const {
-    return _ids;
-  }
-
-  bool eval(const Resources& res) const {
-    if (NULL == _cond) {
-      return true;
-    } else {
-      return _cond->do_eval(res);
-    }
-  }
-
-  bool last() const {
-    return _last;
-  }
-
-  OperModifiers exec(const Resources& res) const {
-    _oper->do_exec(res);
-    return _opermods;
-  }
-
-  RuleSet* next; // Linked list
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(RuleSet);
-
-  Condition* _cond; // First pre-condition (linked list)
-  Operator* _oper; // First operator (linked list)
-  TSHttpHookID _hook; // Which hook is this rule for
-
-  // State values (updated when conds / operators are added)
-  ResourceIDs _ids;
-  OperModifiers _opermods;
-  bool _last;
-};
-
-
-#endif // __RULESET_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/statement.cc
----------------------------------------------------------------------
diff --git a/header_rewrite/statement.cc b/header_rewrite/statement.cc
deleted file mode 100644
index 918c910..0000000
--- a/header_rewrite/statement.cc
+++ /dev/null
@@ -1,84 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// statement.cc: Implementation of the statement base class.
-//
-//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__statement_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <ts/ts.h>
-
-#include "statement.h"
-
-void
-Statement::append(Statement* stmt)
-{
-  Statement* tmp = this;
-
-  TSReleaseAssert(stmt->_next == NULL);
-  while (tmp->_next)
-    tmp = tmp->_next;
-  tmp->_next = stmt;
-}
-
-
-const ResourceIDs
-Statement::get_resource_ids() const
-{
-  const Statement* stmt = this;
-  ResourceIDs ids = RSRC_NONE;
-
-  while (stmt) {
-    ids = static_cast<ResourceIDs>(ids | stmt->_rsrc);
-    stmt = stmt->_next;
-  }
-
-  return ids;
-}
-
-
-bool
-Statement::set_hook(TSHttpHookID hook) {
-  bool ret = std::find(_allowed_hooks.begin(), _allowed_hooks.end(), hook) != _allowed_hooks.end();
-
-  if (ret)
-    _hook = hook;
-
-  return ret;
-}
-
-
-// This should be overridden for any Statement which only supports some hooks
-void
-Statement::initialize_hooks() {
-  add_allowed_hook(TS_HTTP_READ_RESPONSE_HDR_HOOK);
-  add_allowed_hook(TS_HTTP_READ_REQUEST_PRE_REMAP_HOOK);
-  add_allowed_hook(TS_HTTP_READ_REQUEST_HDR_HOOK);
-  add_allowed_hook(TS_HTTP_SEND_REQUEST_HDR_HOOK);
-  add_allowed_hook(TS_HTTP_SEND_RESPONSE_HDR_HOOK);
-  add_allowed_hook(TS_REMAP_PSEUDO_HOOK);
-}
-
-
-// Parse URL qualifiers
-UrlQualifiers
-Statement::parse_url_qualifier(const std::string& q) {
-  UrlQualifiers qual = URL_QUAL_NONE;
-
-  if (q == "HOST")
-    qual = URL_QUAL_HOST;
-  else if (q == "PORT")
-    qual = URL_QUAL_PORT;
-  else if (q == "PATH")
-    qual = URL_QUAL_PATH;
-  else if (q == "QUERY")
-    qual = URL_QUAL_QUERY;
-  else if (q == "MATRIX")
-    qual = URL_QUAL_MATRIX;
-  else if (q == "SCHEME")
-    qual = URL_QUAL_SCHEME;
-  else if (q == "URL")
-    qual = URL_QUAL_URL;
-
-  return qual;
-}

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/statement.h
----------------------------------------------------------------------
diff --git a/header_rewrite/statement.h b/header_rewrite/statement.h
deleted file mode 100644
index e42149b..0000000
--- a/header_rewrite/statement.h
+++ /dev/null
@@ -1,92 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// 
-// Base class for all Conditions and Operations. We share the "linked" list, and the
-// resource management / requirements.
-//
-#ifndef __STATEMENT_H__
-#define __STATEMENT_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__statement_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <vector>
-#include <ts/ts.h>
-
-#include "resources.h"
-#include "parser.h"
-#include "lulu.h"
-
-
-// URL data (both client and server)
-enum UrlQualifiers {
-  URL_QUAL_NONE,
-  URL_QUAL_HOST,
-  URL_QUAL_PORT,
-  URL_QUAL_PATH,
-  URL_QUAL_QUERY,
-  URL_QUAL_MATRIX,
-  URL_QUAL_SCHEME,
-  URL_QUAL_URL
-};
-
-
-class Statement
-{
- public:
-  Statement()
-    : _next(NULL), _pdata(NULL), _rsrc(RSRC_NONE), _initialized(false), _hook(TS_HTTP_READ_RESPONSE_HDR_HOOK)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for Statement");
-  }
-
-  virtual ~Statement() {
-    TSDebug(PLUGIN_NAME_DBG, "Calling DTOR for Statement");
-    free_pdata();
-  }
-
-  // Private data
-  void set_pdata(void* pdata) { _pdata = pdata; }
-  void* get_pdata() const { return(_pdata); }
-  virtual void free_pdata() { TSfree(_pdata); _pdata = NULL; }
-
-  // Which hook are we adding this statement to?
-  bool set_hook(TSHttpHookID hook);
-  const TSHttpHookID get_hook() const { return _hook; }
-
-  // Which hooks are this "statement" applicable for? Used during parsing only.
-  void add_allowed_hook(const TSHttpHookID hook) { _allowed_hooks.push_back(hook); }
-
-  // Linked list.
-  void append(Statement* stmt);
-
-  const ResourceIDs get_resource_ids() const;
-
-  virtual void initialize(Parser& p) {
-    TSReleaseAssert(_initialized == false);
-    initialize_hooks();
-    _initialized = true;
-  }
-  bool initialized() const { return _initialized; }
-
- protected:
-  virtual void initialize_hooks();
-
-  UrlQualifiers parse_url_qualifier(const std::string& q);
-  void require_resources(const ResourceIDs ids) { _rsrc = static_cast<ResourceIDs>(_rsrc | ids); }
-
-  Statement* _next; // Linked list
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(Statement);
-
-  void* _pdata;
-  ResourceIDs _rsrc;
-  bool _initialized;
-  std::vector<TSHttpHookID> _allowed_hooks;
-  TSHttpHookID _hook;
-};
-
-
-#endif // __STATEMENT_H
-

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/header_rewrite/value.h
----------------------------------------------------------------------
diff --git a/header_rewrite/value.h b/header_rewrite/value.h
deleted file mode 100644
index 81d7792..0000000
--- a/header_rewrite/value.h
+++ /dev/null
@@ -1,74 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////////////////////
-// Public interface for creating all values.
-// 
-//
-#ifndef __VALUE_H__
-#define __VALUE_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__value_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
-#include <string>
-#include <ts/ts.h>
-
-#include "resources.h"
-#include "statement.h"
-#include "condition.h"
-#include "factory.h"
-#include "parser.h"
-
-
-///////////////////////////////////////////////////////////////////////////////
-// Base class for all Values (this is also the interface).
-//
-// TODO: This is very incomplete, we need to support linked lists of these,
-// which evaluate each component and create a "joined" final string.
-//
-class Value : Statement
-{
-public:
-  Value()
-    : _value(""), _int_value(-1), _cond_val(NULL)
-  {
-    TSDebug(PLUGIN_NAME_DBG, "Calling CTOR for Value");
-  };
-
-  void
-  set_value(const std::string& val)
-  {
-    _value = val;
-    if (_value.substr(0,2) == "%{") {
-      Parser parser(_value);
-
-      _cond_val = condition_factory(parser.get_op());
-      if (_cond_val) {
-        _cond_val->initialize(parser);
-      }
-    }
-    _int_value = strtol(_value.c_str(), NULL, 10);
-  }
-
-  void
-  append_value(std::string& s, const Resources& res) const {
-    if (_cond_val) {
-      _cond_val->append_value(s, res);
-    } else {
-      s += _value;
-    }
-  }
-
-  const std::string& get_value() const { return _value; }
-  int get_int_value() const { return _int_value; }
-
-  bool empty() const { return _value.empty(); }
-
-private:
-  DISALLOW_COPY_AND_ASSIGN(Value);
-
-  std::string _value;
-  int _int_value;
-  Condition* _cond_val;
-};
-
-
-#endif // __VALUE_H

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/hipes/LICENSE
----------------------------------------------------------------------
diff --git a/hipes/LICENSE b/hipes/LICENSE
deleted file mode 100644
index b2e6b61..0000000
--- a/hipes/LICENSE
+++ /dev/null
@@ -1,427 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-~~~
-
-Copyright (C) 2009 Yahoo! Inc.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-~~~
-
-Mersenne Twister License
-
-   Copyright (C) 2004, Makoto Matsumoto and Takuji Nishimura,
-   All rights reserved.                          
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions
-   are met:
-
-     1. Redistributions of source code must retain the above copyright
-        notice, this list of conditions and the following disclaimer.
-
-     2. Redistributions in binary form must reproduce the above copyright
-        notice, this list of conditions and the following disclaimer in the
-        documentation and/or other materials provided with the distribution.
-
-     3. The names of its contributors may not be used to endorse or promote 
-        products derived from this software without specific prior written 
-        permission.
-
-   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-~~~
-
-TK 8.3 License
-
-This software is copyrighted by the Regents of the University of
-California, Sun Microsystems, Inc., and other parties.  The following
-terms apply to all files associated with the software unless explicitly
-disclaimed in individual files.
-
-The authors hereby grant permission to use, copy, modify, distribute,
-and license this software and its documentation for any purpose, provided
-that existing copyright notices are retained in all copies and that this
-notice is included verbatim in any distributions. No written agreement,
-license, or royalty fee is required for any of the authorized uses.
-Modifications to this software may be copyrighted by their authors
-and need not follow the licensing terms described here, provided that
-the new terms are clearly indicated on the first page of each file where
-they apply.
-
-IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
-FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
-ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
-DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
-
-THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
-INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE
-IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
-NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
-MODIFICATIONS.
-
-GOVERNMENT USE: If you are acquiring this software on behalf of the
-U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
-Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2).  If you
-are acquiring the software on behalf of the Department of Defense, the
-software shall be classified as "Commercial Computer Software" and the
-Government shall have only "Restricted Rights" as defined in Clause
-252.227-7013 (c) (1) of DFARs.  Notwithstanding the foregoing, the
-authors grant the U.S. Government and others acting in its behalf
-permission to use and distribute the software in accordance with the
-terms specified in this license.
-
-~~~
-
-BIND license
-
-Copyright (c) 1985, 1989, 1993
-   The Regents of the University of California.  All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-3. Neither the name of the University nor the names of its contributors
-   may be used to endorse or promote products derived from this software
-   without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-
-
-
-Portions Copyright (c) 1993 by Digital Equipment Corporation.
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies, and that
-the name of Digital Equipment Corporation not be used in advertising or
-publicity pertaining to distribution of the document or software without
-specific, written prior permission.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
-WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
-CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
-PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
-ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
-SOFTWARE.
-
-
-
-Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
-Portions Copyright (c) 1996-1999 by Internet Software Consortium.
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
-OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-~~~
-
-Copyright (c) 1994-2011 John Bradley Plevyak, All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-3. The name of the author may be used to endorse or promote products derived
-   from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-
-~~~
-
-Copyright (C) 2007 Ariya Hidayat (ariya@kde.org)
-Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
-Copyright (C) 2005 Ariya Hidayat (ariya@kde.org)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
-For the strlcat, strlcpy in inktomi++/ink_string.cc:
-
-Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/hipes/Makefile
----------------------------------------------------------------------
diff --git a/hipes/Makefile b/hipes/Makefile
deleted file mode 100644
index 5d484f3..0000000
--- a/hipes/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#  http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-TSXS?=tsxs
-
-all:	hipes.cc
-	$(TSXS) -v -C $? -o hipes.so
-
-install:
-	$(TSXS) -i -o hipes.so
-
-clean:
-	rm -f *.lo *.so

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/hipes/README
----------------------------------------------------------------------
diff --git a/hipes/README b/hipes/README
deleted file mode 100644
index b12f722..0000000
--- a/hipes/README
+++ /dev/null
@@ -1,25 +0,0 @@
-This plugin implements the HIPES system.
-
-Plugin configuration
---------------------
-
-   server:<host>	Name of the server to send this request to
-   urlp:<name>		Name of the query parameter for the service URL [url]
-   path:<path>		Path to use for the service URL [/]
-   ssl			Use SSL when connecting to the service [no]
-   service		Service server, host[:port]  [no default]
-   server		Name of HIPES server, host[:port]   [hipes.yimg.com]
-   active_timeout	The active connection timeout in ms [no default]
-   no_activity_timeout	The no activity timeout in ms [no default]
-   connect_timeout	The connect timeout in ms [no default]
-   dns_timeout		The DNS timeout [no default]
-
-
-The timeout options override the server defaults (from records.config),
-and only apply to the connection to the specific "service" host.
-
-RELEASES
---------
-
-Version 1.0 (??/??/10)
-  - First release.

http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/ff849998/hipes/gen_escape.c
----------------------------------------------------------------------
diff --git a/hipes/gen_escape.c b/hipes/gen_escape.c
deleted file mode 100644
index e137372..0000000
--- a/hipes/gen_escape.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/** @file
-
-    @section license License
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-*/
-#include <stdio.h>
-#include <string.h>
-
-
-int main() {
-  unsigned char codes[32];
-  unsigned char hex;
-  int c;
-
-  memset(codes, 0, sizeof(codes));
-
-  for (c = 0; c <= 255; ++c) {
-    if ( ( (c >= '0') && (c <= '9') ) ||
-         ( (c >= 'A') && (c <= 'Z') ) ||
-         ( (c >= 'a') && (c <= 'z') ) ||
-         ( (c == '_') ) ||
-         ( (c == '-') ) ||
-         ( (c == '.') ) ) {
-    } else {
-      codes[c / 8] |= (1 << (7 - c % 8));
-    }
-  }
-
-  for (hex = 0; hex < 32; ++hex) {
-    printf("0x%02lX, ", codes[hex]);
-    if (!((hex+1) % 4))
-      printf("\n");
-  }
-}


Mime
View raw message