| 111 | } // namespace |
| 112 | |
| 113 | InterceptPlugin::InterceptPlugin(Transaction &transaction, InterceptPlugin::Type type) : TransactionPlugin(transaction) |
| 114 | { |
| 115 | TSCont cont = TSContCreate(handleEvents, TSMutexCreate()); |
| 116 | state_ = new State(cont, this); |
| 117 | TSContDataSet(cont, state_); |
| 118 | TSHttpTxn txn = static_cast<TSHttpTxn>(transaction.getAtsHandle()); |
| 119 | if (type == SERVER_INTERCEPT) { |
| 120 | TSHttpTxnServerIntercept(cont, txn); |
| 121 | } else { |
| 122 | TSHttpTxnIntercept(cont, txn); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | InterceptPlugin::~InterceptPlugin() |
| 127 | { |
nothing calls this directly
no test coverage detected