You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Rik van Ballegooijen (Jira)" <ji...@apache.org> on 2021/08/06 16:32:00 UTC
[jira] [Created] (CAMEL-16853) camel-xslt: setting
resultHandlerFactory via URI is broken
Rik van Ballegooijen created CAMEL-16853:
--------------------------------------------
Summary: camel-xslt: setting resultHandlerFactory via URI is broken
Key: CAMEL-16853
URL: https://issues.apache.org/jira/browse/CAMEL-16853
Project: Camel
Issue Type: Bug
Components: camel-xslt
Reporter: Rik van Ballegooijen
In XsltEndpoint.java, createXsltBuilder() the resultHandlerFactory is set if configured.
However, further down in the method it is overwritten because of
{code:java}
configureOutput(xslt, output.name());{code}
Since output is an enum which cannot be set to "" or null via Spring/XML, there is no way around this except for extending the Endpoint class and overriding the behavior.
Suggested solution is setting the result handler factory after configureOutput, or skipping configureOutput in case of a custom result handler factory.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)