Class NatsResource


  • @Path("/nats/")
    @ApplicationScoped
    public class NatsResource
    extends Object
    • Field Detail

      • template

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

      • NatsResource

        public NatsResource()
    • Method Detail

      • send

        @Path("/send")
        @POST
        @Consumes("text/plain")
        public void send​(@HeaderParam("sendToEndpointUri")
                         String sendToEndpointUri,
                         String message)
      • storeMessage

        void storeMessage​(org.apache.camel.Exchange e,
                          @Body
                          String message)
      • getRouteMessages

        @Path("/messages/{route-id}")
        @GET
        @Produces("application/json")
        public Collection<String> getRouteMessages​(@PathParam("route-id")
                                                   String routeId)