Interface ImageUrlService

    • Method Detail

      • 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