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 Details

    • getId

      default Long getId(@NonNull Image image)
    • getIdFromImageUri

      default @Nullable Long getIdFromImageUri(@Nullable String imageUri)
    • 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