From 1596a1b8ce9af52d72ad89a43b65101566b87cff Mon Sep 17 00:00:00 2001 From: "denis.plotnikov" Date: Mon, 7 Oct 2024 14:16:08 +0300 Subject: [PATCH] Add encode-mode property --- src/main/java/com/exactpro/th2/FixHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/exactpro/th2/FixHandler.java b/src/main/java/com/exactpro/th2/FixHandler.java index 07282ed..62c13fe 100644 --- a/src/main/java/com/exactpro/th2/FixHandler.java +++ b/src/main/java/com/exactpro/th2/FixHandler.java @@ -1681,6 +1681,7 @@ private Map corruptMessageStructureProcessor(ByteBuf message, Ma metadata.put("structureMutated", "Y"); metadata.put("structureMutationKind", "header"); metadata.put("structureMutationPosition", config.getMoveHeaderConfiguration().getPosition().name()); + metadata.put(ENCODE_MODE_PROPERTY_NAME, DIRTY_ENCODE_MODE_NAME); } if (config.getMoveTrailerConfiguration() != null) { @@ -1688,6 +1689,7 @@ private Map corruptMessageStructureProcessor(ByteBuf message, Ma metadata.put("structureMutated", "Y"); metadata.put("structureMutationKind", "trailer"); metadata.put("structureMutationPosition", config.getMoveTrailerConfiguration().getPosition().name()); + metadata.put(ENCODE_MODE_PROPERTY_NAME, DIRTY_ENCODE_MODE_NAME); } state.getMessageCorrupted().set(true); @@ -1717,8 +1719,10 @@ private Map adjustSendingTimeStrategyProcessor(ByteBuf message, AdjustSendingTimeConfiguration config = strategy.getAdjustSendingTimeConfiguration(); metadata.put("sendingTimeUpdated", "Y"); metadata.put("sendingTimeUpdateSeconds", Long.toString(config.getAdjustDuration().toSeconds())); + metadata.put(ENCODE_MODE_PROPERTY_NAME, DIRTY_ENCODE_MODE_NAME); updateSendingTime(message, config.getAdjustDuration(), config.getSubstract()); + state.getMessageCorrupted().set(true); return null; }