From 23a46b4be35277e06ec89f48730eeb694e686be8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 15:40:06 +0000
Subject: [PATCH] add fdx-commons and fdx-consultation
---
apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/processors/ConsumedFilesProcessor.java | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/processors/ConsumedFilesProcessor.java b/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/processors/ConsumedFilesProcessor.java
new file mode 100644
index 0000000..962f8af
--- /dev/null
+++ b/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/processors/ConsumedFilesProcessor.java
@@ -0,0 +1,25 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.megatim.apifdxweb.service.impl.camel.processors;
+
+import java.nio.file.Files;
+import java.nio.file.Path;
+import javax.enterprise.context.Dependent;
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+
+/**
+ *
+ * @author ASUS
+ */
+@Dependent
+public class ConsumedFilesProcessor implements Processor {
+
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ Path filePath = exchange.getIn().getBody(Path.class);
+ Files.deleteIfExists(filePath);
+ }
+}
--
Gitblit v1.10.0