You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Arno Noordover (JIRA)" <ji...@apache.org> on 2017/02/16 18:56:41 UTC
[jira] [Commented] (CAMEL-5606) Validator component - Could be
optimized as xslt to use source from message body as is
[ https://issues.apache.org/jira/browse/CAMEL-5606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870511#comment-15870511 ]
Arno Noordover commented on CAMEL-5606:
---------------------------------------
I think this can be closed.
Looking at ValidatingProcessor, lines 380-382 a StreamSource is used:
{code}
if (content instanceof InputStream) {
return new StreamSource((InputStream) content);
}
{code}
> Validator component - Could be optimized as xslt to use source from message body as is
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-5606
> URL: https://issues.apache.org/jira/browse/CAMEL-5606
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.10.0
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
>
> The xslt component has been improved to use the message body if applicable. And then use source types thats most performant.
> The validator component has not been optimized likewise. It can most possible benefit from some of the same logic.
> See XsltBuilder vs ValidatingProcessor process methods.
> See nabble
> http://camel.465427.n5.nabble.com/Why-doesnt-the-validation-component-use-Stream-Source-internally-to-parse-the-XML-tp5718632.html
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)