Class FetchUrlShortenerResource

java.lang.Object
org.gcube.application.shlink.FetchUrlShortenerResource
Direct Known Subclasses:
FetchUrlShortenerFromNewIS, FetchUrlShortenerFromOldIS

public abstract class FetchUrlShortenerResource extends Object
The abstract class FetchUrlShortenerResource provides a template for fetching and managing the URL shortener service configuration from a runtime resource. It defines methods to read properties and check availability of the service.
Since:
July 2025
Author:
Francesco Mangiacrapa
  • Field Details

  • Constructor Details

  • Method Details

    • fetchUrlShortener

      protected abstract void fetchUrlShortener() throws Exception
      Throws:
      Exception
    • isAvailable

      protected abstract boolean isAvailable()
    • readPropertyValue

      protected String readPropertyValue(Map<String,org.gcube.common.resources.gcore.ServiceEndpoint.Property> propertiesMap, String key, boolean failOnNull) throws Exception
      Read property value.
      Parameters:
      propertiesMap - the properties map
      key - the key
      Returns:
      the string
      Throws:
      Exception - the exception
    • getScope

      protected String getScope()
    • getShortnerServiceUrl

      protected String getShortnerServiceUrl()
    • getDomain

      protected String getDomain()
    • getApiKey

      protected String getApiKey()