| 271 | } /* anonymous namespace */ |
| 272 | |
| 273 | TransformationPlugin::TransformationPlugin(Transaction &transaction, TransformationPlugin::Type type) |
| 274 | : TransactionPlugin(transaction), state_(nullptr) |
| 275 | { |
| 276 | state_ = new TransformationPluginState(transaction, *this, type, static_cast<TSHttpTxn>(transaction.getAtsHandle())); |
| 277 | state_->vconn_ = TSTransformCreate(handleTransformationPluginEvents, state_->txn_); |
| 278 | TSContDataSet(state_->vconn_, static_cast<void *>(state_)); // edata in a TransformationHandler is NOT a TSHttpTxn. |
| 279 | LOG_DEBUG("Creating TransformationPlugin=%p (vconn)contp=%p tshttptxn=%p transformation_type=%d", this, state_->vconn_, |
| 280 | state_->txn_, type); |
| 281 | TSHttpTxnHookAdd(state_->txn_, utils::internal::convertInternalTransformationTypeToTsHook(type), state_->vconn_); |
| 282 | } |
| 283 | |
| 284 | TransformationPlugin::~TransformationPlugin() |
| 285 | { |
nothing calls this directly
no test coverage detected