camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5505) Unable to customize URIResolver in xslt component
Date Wed, 15 Aug 2012 13:38:38 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435100#comment-13435100
] 

Hadrian Zbarcea commented on CAMEL-5505:
----------------------------------------

@Claus,

This is a discussion we'll have (again) on dev@. But to give you a couple of short answers
now:
1. There was absolutely no attention given to non-trivial configuration options 4+ years ago.
That slowly slipped into the current situation. No one to blame but ourselves.
2. You yourself give an example in which a '#' is not present (ref="myCustomUriResolver")
3. When using the XML dsl, no one would argue about the need to encode to make the xml valid,
yet in the URI case some seem to argue that there can be a gray area.
4. The Camel in Action book states that "In Camel, you configure endpoints using URIs", which
as we now know, is not quite correct. The Camel api uses the term URI all over the place (getEndpointUri()),
but that's not a (String representation of a) URI.
5. You seem to imply that the only alternative is to put Java code in the URI, bulking up
that ridiculous notion with the fact that the Camel URIs are badly designed, probably in an
attempt to dismiss both. 

If you were fair, you would have said that you can do either of:
?uriResolver=org.example.camel.MyCustomUriResolver&bla=123
?uriResolverRef=myCustomUriResolver&bla=123

But as I said, I am waiting for the days when we'll be able to have a decent discussion and
solution to fix this mess on dev@. I am patient. That's the last thing I'll say on the topic
in this jira.
                
> Unable to customize URIResolver in xslt component
> -------------------------------------------------
>
>                 Key: CAMEL-5505
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5505
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.0, 2.11.0
>            Reporter: Alexander Titov
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>              Labels: camel-core,, test, xslt
>         Attachments: camel-core-xslt-CustomURIResolver-checkstyle.patch, camel-core-xslt-CustomURIResolver.patch
>
>
> In xslt component we can't customize uriResolver For instance in route with uri "xslt:org/apache/camel/component/xslt/include_not_existing_resource.xsl?uriResolver=#customURIResolver"
camel still uses default XsltUriResolver.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message