Class PahoMqtt5Resource
- java.lang.Object
-
- org.apache.camel.quarkus.component.paho.mqtt5.it.PahoMqtt5Resource
-
@Path("/paho-mqtt5") @ApplicationScoped public class PahoMqtt5Resource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ConsumerTemplateconsumerTemplate(package private) org.apache.camel.CamelContextcontext(package private) Countercounter(package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description PahoMqtt5Resource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconsumePahoMessage(String protocol, String queueName)Stringmock(String message)javax.ws.rs.core.ResponseoverrideQueueName(String queueName, String message)javax.ws.rs.core.ResponseproducePahoMessage(String protocol, String queueName, String message)StringreadThenWriteWithFilePersistenceShouldSucceed(String message)StringrouteStatus(String routeId, boolean wait)javax.ws.rs.core.Responsesend(String message)
-
-
-
Field Detail
-
context
@Inject org.apache.camel.CamelContext context
-
counter
@Inject Counter counter
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
-
-
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
-
mock
@Path("/mock") @POST @Produces("text/plain") public String mock(String message) throws Exception- Throws:
Exception
-
-