Class PahoMqtt5Resource
java.lang.Object
org.apache.camel.quarkus.component.paho.mqtt5.it.PahoMqtt5Resource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.ConsumerTemplate(package private) org.apache.camel.CamelContext(package private) Counter(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconsumePahoMessage(String protocol, String queueName) javax.ws.rs.core.ResponseoverrideQueueName(String queueName, String message) javax.ws.rs.core.ResponseproducePahoMessage(String protocol, String queueName, String message) routeStatus(String routeId, boolean wait) javax.ws.rs.core.Response
-
Field Details
-
context
@Inject org.apache.camel.CamelContext context -
counter
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
-
-
Constructor Details
-
PahoMqtt5Resource
public PahoMqtt5Resource()
-
-
Method Details
-
consumePahoMessage
-
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
- Throws:
Exception
-
send
@Path("/send") @POST @Produces("text/plain") public javax.ws.rs.core.Response send(String message) throws Exception - Throws:
Exception
-