Class EventExportUtils

java.lang.Object
de.hybris.platform.apiregistryservices.utils.EventExportUtils

public class EventExportUtils extends Object
Helper class.
  • Field Details

  • Method Details

    • getDelimiter

      public static final String getDelimiter()
      Reads apiregistryservices.eventPropertyConfiguration.delimiter property
      Returns:
      delimiter, default value is .
    • isEventExportActive

      public static boolean isEventExportActive()
      reads the kymaintegrationservices.events.exporting property false by default
    • getBlacklist

      public static String[] getBlacklist()
      reads kymaintegrationservices.events.blacklist property return empty array if not defined
    • canSplitReference

      public static boolean canSplitReference(String reference, String delimiter)
      Checks if it possible to split the original string with delimiter.
      Parameters:
      reference -
      delimiter -
      Returns:
      boolean
    • splitReference

      public static String[] splitReference(String reference, String delimiter)
      Splits the original string to 2 parts
      Parameters:
      reference -
      delimiter -
      Returns:
      array of 2 strings
    • isUrlValid

      public static boolean isUrlValid(String urlString)
      Checks if the url string is a valid URL regarding to allowed protocols
      Parameters:
      urlString - url string that is validated
      Returns:
      boolean
    • isUrlValidInternal

      protected static boolean isUrlValidInternal(String urlString)
    • getUrlWithDeploymentAddress

      @Deprecated(since="2005", forRemoval=true) public static String getUrlWithDeploymentAddress(String url)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Replace the ccv2 end point placeholder with the configured value in the given url. expected input with the placeholder format:"{system property name}/rest of the url"
      Parameters:
      url - url which contains the deployment end point place holder
      Returns:
      String if the input string url is empty, null or does not start with "{" then the method returns the given url
      Throws:
      ConversionException - in case the method can't find the placeholder in the system property or can't extract the placeholder variable from the given string
    • replacePropertyPlaceholders

      public static String replacePropertyPlaceholders(String argument)
      Replaces the placeholders (in curly brackets) in the argument with the configured system property values.