Package nl.vpro.domain.media.support
Interface ImageUrlService
-
- All Superinterfaces:
ImageUrlService
- All Known Implementing Classes:
AbsoluteImageUrlServiceImpl
public interface ImageUrlService extends ImageUrlService
This services knows how to create urls from image ids.- Since:
- 5.11
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Long
getId(@NonNull Image image)
default @Nullable Long
getIdFromImageUri(@Nullable String imageUri)
default @PolyNull String
getImageLocation(@PolyNull String uri, @Nullable String fileExtension, boolean encode, String... conversions)
Resolves a web location for images.default @Nullable String
getOriginalUrlFromImageUri(@Nullable String imageUri)
-
Methods inherited from interface nl.vpro.domain.image.ImageUrlService
appendSecurityTokens, getImageBaseUrl, getImageLocation, getImageLocation, getOriginalUrl
-
-
-
-
Method Detail
-
getOriginalUrlFromImageUri
default @Nullable String getOriginalUrlFromImageUri(@Nullable String imageUri)
-
getImageLocation
default @PolyNull String getImageLocation(@PolyNull String uri, @Nullable String fileExtension, boolean encode, String... conversions)
Resolves a web location for images. Relies on a system property #IMAGE_SERVER_BASE_URL_PROPERTY to obtain a base url for an image host.- Returns:
- valid url string or null if it can't resolve a location
- Since:
- 7.2
-
-