Class EipResource


  • @Path("/bean/eip")
    @ApplicationScoped
    public class EipResource
    extends Object
    • Field Detail

      • producerTemplate

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

        @Inject
        org.apache.camel.CamelContext context
    • Constructor Detail

      • EipResource

        public EipResource()
    • Method Detail

      • route

        @Path("/route/{route}")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String route​(String body,
                            @PathParam("route")
                            String route)
      • mock

        @Path("/result/{name}")
        @Produces("text/plain")
        @GET
        public String mock​(@PathParam("name")
                           String name,
                           @PathParam("count")
                           int count,
                           @PathParam("timeout")
                           int timeout)