Class PahoMqtt5Resource


  • @Path("/paho-mqtt5")
    @ApplicationScoped
    public class PahoMqtt5Resource
    extends Object
    • Field Detail

      • context

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

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

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
    • Constructor Detail

      • PahoMqtt5Resource

        public PahoMqtt5Resource()
    • Method Detail

      • consumePahoMessage

        @Path("/{protocol}/{queueName}")
        @GET
        @Produces("text/plain")
        public String consumePahoMessage​(@PathParam("protocol")
                                         String protocol,
                                         @PathParam("queueName")
                                         String queueName)
      • producePahoMessage

        @Path("/{protocol}/{queueName}")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response producePahoMessage​(@PathParam("protocol")
                                                            String protocol,
                                                            @PathParam("queueName")
                                                            String queueName,
                                                            String message)
                                                     throws Exception
        Throws:
        Exception
      • overrideQueueName

        @Path("/override/{queueName}")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response overrideQueueName​(@PathParam("queueName")
                                                           String queueName,
                                                           String message)
                                                    throws Exception
        Throws:
        Exception
      • readThenWriteWithFilePersistenceShouldSucceed

        @Path("/readThenWriteWithFilePersistenceShouldSucceed")
        @GET
        @Produces("text/plain")
        public String readThenWriteWithFilePersistenceShouldSucceed​(@QueryParam("message")
                                                                    String message)
                                                             throws Exception
        Throws:
        Exception
      • routeStatus

        @Path("/routeStatus/{id}")
        @GET
        @Produces("text/plain")
        public String routeStatus​(@PathParam("id")
                                  String routeId,
                                  @QueryParam("waitForContainerStarted") @DefaultValue("false")
                                  boolean wait)
                           throws Exception
        Throws:
        Exception
      • send

        @Path("/send")
        @POST
        @Produces("text/plain")
        public javax.ws.rs.core.Response send​(String message)
                                       throws Exception
        Throws:
        Exception