Class AzureQueueResource


  • @Path("/azure")
    @ApplicationScoped
    public class AzureQueueResource
    extends Object
    • Field Detail

      • producerTemplate

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

        String azureStorageAccountName
      • azureStorageAccountKey

        String azureStorageAccountKey
      • azureQueueServiceUrl

        String azureQueueServiceUrl
    • Constructor Detail

      • AzureQueueResource

        public AzureQueueResource()
    • Method Detail

      • createQueueClient

        @Produces
        @Named("azureQueueClient")
        public com.microsoft.azure.storage.queue.CloudQueue createQueueClient()
                                                                       throws Exception
        Throws:
        Exception
      • createQueue

        @Path("/queue/create")
        @POST
        public javax.ws.rs.core.Response createQueue()
                                              throws Exception
        Throws:
        Exception
      • retrieveMessage

        @Path("/queue/read")
        @GET
        @Produces("text/plain")
        public String retrieveMessage()
                               throws Exception
        Throws:
        Exception
      • addMessage

        @Path("/queue/message")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response addMessage​(String message)
                                             throws Exception
        Throws:
        Exception
      • deleteQueue

        @Path("/queue/delete")
        @DELETE
        public javax.ws.rs.core.Response deleteQueue()
                                              throws Exception
        Throws:
        Exception