Class AzureStorageResourcePatternResolver

  • All Implemented Interfaces:
    org.springframework.core.io.ResourceLoader, org.springframework.core.io.support.ResourcePatternResolver

    public class AzureStorageResourcePatternResolver
    extends Object
    implements org.springframework.core.io.support.ResourcePatternResolver
    An Azure Storage specific ResourcePatternResolver.
    • Constructor Detail

      • AzureStorageResourcePatternResolver

        public AzureStorageResourcePatternResolver​(com.azure.storage.blob.BlobServiceClient blobServiceClient)
        Constructor.
        Parameters:
        blobServiceClient - the BlobServiceClient.
      • AzureStorageResourcePatternResolver

        public AzureStorageResourcePatternResolver​(com.azure.storage.file.share.ShareServiceClient shareServiceClient)
        Constructor.
        Parameters:
        shareServiceClient - the ShareServiceClient.
      • AzureStorageResourcePatternResolver

        public AzureStorageResourcePatternResolver​(com.azure.storage.blob.BlobServiceClient blobServiceClient,
                                                   com.azure.storage.file.share.ShareServiceClient shareServiceClient)
        Constructor.
        Parameters:
        blobServiceClient - the BlobServiceClient.
        shareServiceClient - the ShareServiceClient.
    • Method Detail

      • getResources

        public org.springframework.core.io.Resource[] getResources​(String pattern)
                                                            throws IOException
        Specified by:
        getResources in interface org.springframework.core.io.support.ResourcePatternResolver
        Throws:
        IOException
        See Also:
        ResourcePatternResolver.getResources(java.lang.String)
      • getResource

        public org.springframework.core.io.Resource getResource​(String location)
        Specified by:
        getResource in interface org.springframework.core.io.ResourceLoader
        See Also:
        ResourceLoader.getResource(java.lang.String)
      • getClassLoader

        public ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface org.springframework.core.io.ResourceLoader
        See Also:
        ResourceLoader.getClassLoader()