Class AzureBlobResource


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

      • producerTemplate

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

        String azureStorageAccountName
      • azureStorageAccountKey

        String azureStorageAccountKey
      • azureBlobServiceUrl

        String azureBlobServiceUrl
      • azureBlobContainerName

        String azureBlobContainerName
    • Constructor Detail

      • AzureBlobResource

        public AzureBlobResource()
    • Method Detail

      • createBlobClient

        @Produces
        @Named("azureBlobClient")
        public com.microsoft.azure.storage.blob.CloudBlob createBlobClient()
                                                                    throws Exception
        Throws:
        Exception
      • createBlob

        @Path("/blob/create")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response createBlob​(String message)
                                             throws Exception
        Throws:
        Exception
      • readBlob

        @Path("/blob/read")
        @GET
        @Produces("text/plain")
        public String readBlob()
                        throws Exception
        Throws:
        Exception
      • updateBlob

        @Path("/blob/update")
        @PATCH
        @Consumes("text/plain")
        public javax.ws.rs.core.Response updateBlob​(String message)
                                             throws Exception
        Throws:
        Exception
      • deleteBlob

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