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 String
fileExtension
Extension 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 String
getBlobUrl(String contentUrl)
Returns the blob file url for the given contentString
getContentUrl(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:BlobUrlResolver
Returns the blob file url for the given content- Specified by:
getBlobUrl
in interfaceBlobUrlResolver
- 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 interfaceBlobUrlResolver
- Parameters:
blobUrl
- the url of the blob file- Returns:
- the content url
-
-