You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/01/04 15:35:57 UTC
[09/10] camel git commit: Add missing options in component docs
Add missing options in component docs
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/23cd70e2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/23cd70e2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/23cd70e2
Branch: refs/heads/master
Commit: 23cd70e23e30f4d9c00f312e0ca5e7b1967e946a
Parents: f633475
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jan 4 15:28:14 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jan 4 15:28:14 2016 +0100
----------------------------------------------------------------------
.../org/apache/camel/component/jetty/JettyHttpComponent.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/23cd70e2/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index 325a799..833bf95 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -164,6 +164,7 @@ public abstract class JettyHttpComponent extends HttpCommonComponent implements
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
// must extract well known parameters before we create the endpoint
+ List<Handler> handlerList = resolveAndRemoveReferenceListParameter(parameters, "handlers", Handler.class);
HttpBinding binding = resolveAndRemoveReferenceParameter(parameters, "httpBindingRef", HttpBinding.class);
JettyHttpBinding jettyBinding = resolveAndRemoveReferenceParameter(parameters, "jettyHttpBindingRef", JettyHttpBinding.class);
Boolean enableJmx = getAndRemoveParameter(parameters, "enableJmx", Boolean.class);
@@ -220,7 +221,9 @@ public abstract class JettyHttpComponent extends HttpCommonComponent implements
if (httpClientParameters != null && !httpClientParameters.isEmpty()) {
endpoint.setHttpClientParameters(httpClientParameters);
}
- // prefer to use endpoint configured over component configured
+ if (handlerList.size() > 0) {
+ endpoint.setHandlers(handlerList);
+ } // prefer to use endpoint configured over component configured
if (binding == null) {
// fallback to component configured
binding = getHttpBinding();