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 ofBlobUrlResolver- Since:
- 3.1.6
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected StringfileExtensionExtension used for the blob files
-
Constructor Summary
Constructors Constructor Description BlobUrlResolverImpl(String fileExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBlobUrl(String contentUrl)Returns the blob file url for the given contentStringgetContentUrl(String blobUrl)Returns the content url for the given blob file
-
-
-
Field Detail
-
fileExtension
protected String fileExtension
Extension used for the blob files
-
-
Constructor Detail
-
BlobUrlResolverImpl
@ConstructorProperties("fileExtension") public BlobUrlResolverImpl(String fileExtension)
-
-
Method Detail
-
getBlobUrl
public String getBlobUrl(String contentUrl)
Description copied from interface:BlobUrlResolverReturns the blob file url for the given content- Specified by:
getBlobUrlin interfaceBlobUrlResolver- Parameters:
contentUrl- the url of the content- Returns:
- the blob url
-
getContentUrl
public String getContentUrl(String blobUrl)
Description copied from interface:BlobUrlResolverReturns the content url for the given blob file- Specified by:
getContentUrlin interfaceBlobUrlResolver- Parameters:
blobUrl- the url of the blob file- Returns:
- the content url
-
-