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/7b5db245
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7b5db245
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7b5db245

Branch: refs/heads/camel-2.16.x
Commit: 7b5db245fbd9233c3e347d71ec9e5c2f1b079c99
Parents: a1709b9
Author: Claus Ibsen <davscl...@apache.org>
Authored: Mon Jan 4 15:28:14 2016 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Jan 4 15:35:40 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/7b5db245/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 6d141f8..6778bbc 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();

Reply via email to