Class DirectResource

java.lang.Object
org.apache.camel.quarkus.component.direct.it.DirectResource

@ApplicationScoped @Path("/direct") public class DirectResource extends Object
  • Field Details

    • context

      @Inject org.apache.camel.CamelContext context
    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
  • Constructor Details

    • DirectResource

      public DirectResource()
  • Method Details

    • routeTemplate

      @Path("/routes/template/{id}/{greeting}") @GET @Produces("text/plain") public String routeTemplate(@PathParam("id") String id, @PathParam("greeting") String greeting)
    • catalog

      @Path("/catalog/{type}/{name}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response catalog(@PathParam("type") String type, @PathParam("name") String name) throws IOException
      Throws:
      IOException
    • route

      @Path("/route/{route}") @POST public void route(@PathParam("route") String route, String message)