This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit c0af51edcbb4b23a467c2c1238b2eeffd3bd6808 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Thu Jun 25 13:49:54 2020 +0100 Remove NettyHttpComponent producer method from RestOpenapiResource Fixes #1237 --- .../component/rest/openapi/it/RestOpenapiResource.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/integration-tests/rest-openapi/src/main/java/org/apache/camel/quarkus/component/rest/openapi/it/RestOpenapiResource.java b/integration-tests/rest-openapi/src/main/java/org/apache/camel/quarkus/component/rest/openapi/it/RestOpenapiResource.java index 11f5727..ad7d348 100644 --- a/integration-tests/rest-openapi/src/main/java/org/apache/camel/quarkus/component/rest/openapi/it/RestOpenapiResource.java +++ b/integration-tests/rest-openapi/src/main/java/org/apache/camel/quarkus/component/rest/openapi/it/RestOpenapiResource.java @@ -17,7 +17,6 @@ package org.apache.camel.quarkus.component.rest.openapi.it; import javax.inject.Inject; -import javax.inject.Named; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @@ -25,9 +24,7 @@ import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import org.apache.camel.CamelContext; import org.apache.camel.ProducerTemplate; -import org.apache.camel.component.netty.http.NettyHttpComponent; @Path("/rest-openapi") public class RestOpenapiResource { @@ -41,13 +38,4 @@ public class RestOpenapiResource { String response = producerTemplate.requestBodyAndHeader("direct:start", null, "test-port", port, String.class); return Response.ok().entity(response).build(); } - - // TODO: Remove this for Camel 3.4.0. See https://issues.apache.org/jira/browse/CAMEL-15076 - @javax.enterprise.inject.Produces - @Named("netty-http") - public NettyHttpComponent createNettyHttpComponent(CamelContext context) { - NettyHttpComponent nettyHttpComponent = new NettyHttpComponent(); - nettyHttpComponent.setCamelContext(context); - return nettyHttpComponent; - } }