Class EventExportUtils


  • public class EventExportUtils
    extends java.lang.Object
    Helper class.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean canSplitReference​(java.lang.String reference, java.lang.String delimiter)
      Checks if it possible to split the original string with delimiter.
      static java.lang.String[] getBlacklist()
      reads kymaintegrationservices.events.blacklist property return empty array if not defined
      static java.lang.String getDelimiter()
      Reads apiregistryservices.eventPropertyConfiguration.delimiter property
      static java.lang.String getUrlWithDeploymentAddress​(java.lang.String url)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2005.
      static boolean isEventExportActive()
      reads the kymaintegrationservices.events.exporting property false by default
      static boolean isUrlValid​(java.lang.String urlString)
      Checks if the url string is a valid URL regarding to allowed protocols
      protected static boolean isUrlValidInternal​(java.lang.String urlString)  
      static java.lang.String replacePropertyPlaceholders​(java.lang.String argument)
      Replaces the placeholders (in curly brackets) in the argument with the configured system property values.
      static java.lang.String[] splitReference​(java.lang.String reference, java.lang.String delimiter)
      Splits the original string to 2 parts
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDelimiter

        public static final java.lang.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 java.lang.String[] getBlacklist()
        reads kymaintegrationservices.events.blacklist property return empty array if not defined
      • canSplitReference

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

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

        public static boolean isUrlValid​(java.lang.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​(java.lang.String urlString)
      • getUrlWithDeploymentAddress

        @Deprecated(since="2005",
                    forRemoval=true)
        public static java.lang.String getUrlWithDeploymentAddress​(java.lang.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 java.lang.String replacePropertyPlaceholders​(java.lang.String argument)
        Replaces the placeholders (in curly brackets) in the argument with the configured system property values.