aldettinger commented on a change in pull request #2996:
URL: https://github.com/apache/camel-quarkus/pull/2996#discussion_r684215713



##########
File path: 
integration-test-groups/foundation/language/src/main/java/org/apache/camel/quarkus/component/language/it/LanguageResource.java
##########
@@ -18,34 +18,27 @@
 
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
-import javax.ws.rs.GET;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.POST;
 import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
 
-import org.apache.camel.CamelContext;
-import org.jboss.logging.Logger;
+import org.apache.camel.ProducerTemplate;
 
 @Path("/language")
 @ApplicationScoped
 public class LanguageResource {
 
-    private static final Logger LOG = Logger.getLogger(LanguageResource.class);
-
-    private static final String COMPONENT_LANGUAGE = "language";
     @Inject
-    CamelContext context;
+    ProducerTemplate template;
 
-    @Path("/load/component/language")
-    @GET
+    @Path("/route/{route}")
+    @POST
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.TEXT_PLAIN)
-    public Response loadComponentLanguage() throws Exception {
-        /* This is an autogenerated test */
-        if (context.getComponent(COMPONENT_LANGUAGE) != null) {
-            return Response.ok().build();
-        }
-        LOG.warnf("Could not load [%s] from the Camel context", 
COMPONENT_LANGUAGE);
-        return Response.status(500, COMPONENT_LANGUAGE + " could not be loaded 
from the Camel context").build();
+    public String resource(String body, @PathParam("route") String route) {

Review comment:
       resource ? Maybe it could be renamed to something like invokeRoute ? 
requestDirectRoute ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to