Class NatsResource

java.lang.Object
org.apache.camel.quarkus.component.nats.it.NatsResource

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

    • template

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

    • NatsResource

      public NatsResource()
  • Method Details

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