Class KameletResource

java.lang.Object
org.apache.camel.quarkus.component.kamelet.it.KameletResource

@Path("/kamelet") public class KameletResource extends Object
  • Field Details

    • camelContext

      @Inject org.apache.camel.CamelContext camelContext
    • fluentProducerTemplate

      @Inject org.apache.camel.FluentProducerTemplate fluentProducerTemplate
    • consumerTemplate

      @Inject org.apache.camel.ConsumerTemplate consumerTemplate
  • Constructor Details

    • KameletResource

      public KameletResource()
  • Method Details

    • produceToKamelet

      @Path("/produce") @POST @Consumes("text/plain") @Produces("text/plain") public String produceToKamelet(String message) throws Exception
      Throws:
      Exception
    • consumeFromKamelet

      @Path("/consume") @GET @Produces("text/plain") public Integer consumeFromKamelet() throws Exception
      Throws:
      Exception
    • bodyFromProperty

      @Path("/property") @GET @Produces("text/plain") public String bodyFromProperty() throws Exception
      Throws:
      Exception
    • kameletChain

      @Path("/chain") @POST @Produces("text/plain") public String kameletChain(String message) throws Exception
      Throws:
      Exception
    • invoke

      @Path("/invoke/{name}") @POST @Produces("text/plain") public String invoke(@PathParam("name") String name, String message) throws Exception
      Throws:
      Exception
    • list

      @Path("/list") @GET @Produces("application/json") public jakarta.json.JsonArray list()
    • kameletLocationAtRuntime

      @Path("/locationAtRuntime/{name}") @POST @Produces("text/plain") public String kameletLocationAtRuntime(@PathParam("name") String name)