Package nl.vpro.domain.media.support
Interface ImageUrlService
- All Superinterfaces:
ImageUrlService
- All Known Implementing Classes:
AbsoluteImageUrlServiceImpl
This services knows how to create urls from image ids.
- Since:
- 5.11
- Author:
- Michiel Meeuwissen
-
Method Summary
Modifier and TypeMethodDescriptiondefault Long
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 Details
-
getId
-
getIdFromImageUri
-
getOriginalUrlFromImageUri
-
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
-