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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6b88ad9  CAMEL-11952: XSLT options not set when resource URI is http
6b88ad9 is described below

commit 6b88ad93392806780130cdec9ca1f8b86ed681d6
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Oct 27 10:01:09 2017 +0200

    CAMEL-11952: XSLT options not set when resource URI is http
---
 .../org/apache/camel/component/xslt/XsltComponent.java | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/camel-core/src/main/java/org/apache/camel/component/xslt/XsltComponent.java 
b/camel-core/src/main/java/org/apache/camel/component/xslt/XsltComponent.java
index 122caf0..dac1e36 100644
--- 
a/camel-core/src/main/java/org/apache/camel/component/xslt/XsltComponent.java
+++ 
b/camel-core/src/main/java/org/apache/camel/component/xslt/XsltComponent.java
@@ -173,15 +173,6 @@ public class XsltComponent extends UriEndpointComponent {
         endpoint.setSaxonConfigurationProperties(saxonConfigurationProperties);
         endpoint.setSaxonExtensionFunctions(saxonExtensionFunctions);
 
-        String resourceUri = remaining;
-
-        // if its a http uri, then append additional parameters as they are 
part of the uri
-        if (ResourceHelper.isHttpUri(resourceUri)) {
-            resourceUri = ResourceHelper.appendParameters(resourceUri, 
parameters);
-        }
-        LOG.debug("{} using schema resource: {}", this, resourceUri);
-        endpoint.setResourceUri(resourceUri);
-
         // lookup custom resolver to use
         URIResolver resolver = resolveAndRemoveReferenceParameter(parameters, 
"uriResolver", URIResolver.class);
         if (resolver == null) {
@@ -205,6 +196,15 @@ public class XsltComponent extends UriEndpointComponent {
         endpoint.setUriResolver(resolver);
 
         setProperties(endpoint, parameters);
+
+        String resourceUri = remaining;
+        if (ResourceHelper.isHttpUri(resourceUri)) {
+            // if its a http uri, then append additional parameters as they 
are part of the uri
+            resourceUri = ResourceHelper.appendParameters(resourceUri, 
parameters);
+        }
+        LOG.debug("{} using schema resource: {}", this, resourceUri);
+        endpoint.setResourceUri(resourceUri);
+
         if (!parameters.isEmpty()) {
             // additional parameters need to be stored on endpoint as they can 
be used to configure xslt builder additionally
             endpoint.setParameters(parameters);

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to