Class GooglePubsubResource

java.lang.Object
org.apache.camel.quarkus.component.google.pubsub.it.GooglePubsubResource

@Path("/google-pubsub") public class GooglePubsubResource extends Object
  • Field Details

    • producerTemplate

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

      @Inject org.apache.camel.ConsumerTemplate consumerTemplate
    • context

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

      @Inject GooglePubSubRoutes.AcKFailing acKFailing
  • Constructor Details

    • GooglePubsubResource

      public GooglePubsubResource()
  • Method Details

    • sendStringToTopic

      @POST public jakarta.ws.rs.core.Response sendStringToTopic(String message)
    • consumeStringFromTopic

      @GET @Produces("application/json") public jakarta.ws.rs.core.Response consumeStringFromTopic()
    • sendPojoToTopic

      @Path("/pojo") @POST public jakarta.ws.rs.core.Response sendPojoToTopic(String fruitName)
    • consumePojoFromTopic

      @Path("/pojo") @GET @Produces("application/json") public jakarta.ws.rs.core.Response consumePojoFromTopic()
    • sentToEndpoint

      @Path("/sendToEndpoint") @POST public jakarta.ws.rs.core.Response sentToEndpoint(String message, @QueryParam("toEndpoint") String toEndpoint) throws Exception
      Throws:
      Exception
    • getFromEndpoint

      @Path("/getFromEndpoint") @GET @Produces("text/plain") public String getFromEndpoint(@QueryParam("fromEndpoint") String fromEndpoint) throws Exception
      Throws:
      Exception
    • receiveFromSubscription

      @Path("receive/subscription/{subscriptionName}") @GET @Produces("text/plain") public String receiveFromSubscription(@PathParam("subscriptionName") String subscriptionName) throws Exception
      Throws:
      Exception
    • receiveFromSubscriptionOrdered

      @Path("receive/subscriptionOrdering/{subscriptionName}") @GET @Produces("text/plain") public String receiveFromSubscriptionOrdered(@PathParam("subscriptionName") String subscriptionName) throws Exception
      Throws:
      Exception
    • mockReceive

      @Path("receive/mock/{mockName}") @GET @Produces("text/plain") public String mockReceive(@PathParam("mockName") String mockName) throws Exception
      Throws:
      Exception
    • setFail

      @Path("setFail/") @POST public jakarta.ws.rs.core.Response setFail(boolean fail) throws Exception
      Throws:
      Exception
    • stopConsumer

      @Path("/stopConsumer") @GET public void stopConsumer() throws Exception
      Throws:
      Exception
    • resetMock

      @Path("/resetMock/{mockName}") @GET public jakarta.ws.rs.core.Response resetMock(@PathParam("mockName") String mockName)