Class DirectResource


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

      • context

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

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

      • DirectResource

        public DirectResource()
    • Method Detail

      • 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 javax.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)