This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 3b2dca15518 CAMEL-21859: camel-xslt - add source option
3b2dca15518 is described below

commit 3b2dca1551899e116a80fc91d946e5391860251a
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Apr 16 07:34:21 2025 +0200

    CAMEL-21859: camel-xslt - add source option
---
 .../java/org/apache/camel/component/xslt/SourceHandlerFactory.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/SourceHandlerFactory.java
 
b/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/SourceHandlerFactory.java
index 885b4069ecf..5294ecf9d4d 100644
--- 
a/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/SourceHandlerFactory.java
+++ 
b/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/SourceHandlerFactory.java
@@ -19,6 +19,7 @@ package org.apache.camel.component.xslt;
 import javax.xml.transform.Source;
 
 import org.apache.camel.Exchange;
+import org.apache.camel.Expression;
 
 /**
  * Interface to be implemented by concrete source handlers/converters
@@ -29,8 +30,9 @@ public interface SourceHandlerFactory {
      * Creates a specific {@link Source} depending on the current message 
exchanged
      *
      * @param  exchange  the exchange
+     * @param  source    source to use, instead of message body.
      * @return           the source created from the message
      * @throws Exception if the source couldn't be created
      */
-    Source getSource(Exchange exchange) throws Exception;
+    Source getSource(Exchange exchange, Expression source) throws Exception;
 }

Reply via email to