You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/19 12:54:05 UTC

[camel] 04/21: (chores) camel-huaweicloud-common: removed unused parameters

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

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

commit 4c01428df68e6f5aa305d3ac29f75f9615b1e73a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sun Jun 19 11:13:39 2022 +0200

    (chores) camel-huaweicloud-common: removed unused parameters
---
 .../apache/camel/component/jetty/JettyHttpComponent.java | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

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 b51044cae3a..b9f2f22c793 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
@@ -366,11 +366,11 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
             }
 
             if (endpoint.isEnableMultipartFilter()) {
-                enableMultipartFilter(endpoint, connectorRef.server, connectorKey);
+                enableMultipartFilter(endpoint, connectorRef.server);
             }
 
             if (endpoint.getFilters() != null && !endpoint.getFilters().isEmpty()) {
-                setFilters(endpoint, connectorRef.server, connectorKey);
+                setFilters(endpoint, connectorRef.server);
             }
             connectorRef.servlet.connect(consumer);
         }
@@ -400,7 +400,7 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
         }
     }
 
-    private void setFilters(JettyHttpEndpoint endpoint, Server server, String connectorKey) {
+    private void setFilters(JettyHttpEndpoint endpoint, Server server) {
         ServletContextHandler context = server.getChildHandlerByClass(ServletContextHandler.class);
         List<Filter> filters = endpoint.getFilters();
         for (Filter filter : filters) {
@@ -424,7 +424,7 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
         context.getServletHandler().addFilterWithMapping(filterHolder, pathSpec, 0);
     }
 
-    private void enableMultipartFilter(HttpCommonEndpoint endpoint, Server server, String connectorKey) throws Exception {
+    private void enableMultipartFilter(HttpCommonEndpoint endpoint, Server server) throws Exception {
         ServletContextHandler context = server.getChildHandlerByClass(ServletContextHandler.class);
         CamelContext camelContext = this.getCamelContext();
         FilterHolder filterHolder = new FilterHolder();
@@ -693,7 +693,7 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
             // ignore
         } catch (IllegalArgumentException e) {
             // ignore
-        } catch (IllegalAccessException e) {
+        } catch (gIllegalAccessException e) {
             // ignore
         } catch (InvocationTargetException e) {
             // ignore
@@ -1046,7 +1046,7 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
             CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate,
             String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters)
             throws Exception {
-        return doCreateConsumer(camelContext, processor, verb, basePath, uriTemplate, consumes, produces, configuration,
+        return doCreateConsumer(camelContext, processor, verb, basePath, uriTemplate, configuration,
                 parameters, false);
     }
 
@@ -1056,12 +1056,12 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
             RestConfiguration configuration, Map<String, Object> parameters)
             throws Exception {
         // reuse the createConsumer method we already have. The api need to use GET and match on uri prefix
-        return doCreateConsumer(camelContext, processor, "GET", contextPath, null, null, null, configuration, parameters, true);
+        return doCreateConsumer(camelContext, processor, "GET", contextPath, null, configuration, parameters, true);
     }
 
     Consumer doCreateConsumer(
             CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate,
-            String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters, boolean api)
+            RestConfiguration configuration, Map<String, Object> parameters, boolean api)
             throws Exception {
 
         String path = basePath;