Class BlobUrlResolverImpl

java.lang.Object
org.craftercms.commons.file.blob.impl.BlobUrlResolverImpl
All Implemented Interfaces:
BlobUrlResolver

public class BlobUrlResolverImpl extends Object implements BlobUrlResolver
Default implementation of BlobUrlResolver
Since:
3.1.6
Author:
joseross
  • Field Details

    • fileExtension

      protected String fileExtension
      Extension used for the blob files
  • Constructor Details

  • Method Details

    • getBlobUrl

      public String getBlobUrl(String contentUrl)
      Description copied from interface: BlobUrlResolver
      Returns the blob file url for the given content
      Specified by:
      getBlobUrl in interface BlobUrlResolver
      Parameters:
      contentUrl - the url of the content
      Returns:
      the blob url
    • getContentUrl

      public String getContentUrl(String blobUrl)
      Description copied from interface: BlobUrlResolver
      Returns the content url for the given blob file
      Specified by:
      getContentUrl in interface BlobUrlResolver
      Parameters:
      blobUrl - the url of the blob file
      Returns:
      the content url