Class KymaApiExportHelper


  • public class KymaApiExportHelper
    extends java.lang.Object
    Helper class for API export to kyma
    • Field Detail

      • API_REG_SERVICE_ID

        public static final java.lang.String API_REG_SERVICE_ID
        See Also:
        Constant Field Values
      • DEFAULT_API_REG_SERVICE_ID

        public static final java.lang.String DEFAULT_API_REG_SERVICE_ID
        See Also:
        Constant Field Values
      • GETINFO_DESTINATION_ID_KEY

        public static final java.lang.String GETINFO_DESTINATION_ID_KEY
        See Also:
        Constant Field Values
      • DEFAULT_GETINFO_DESTINATION_ID

        public static final java.lang.String DEFAULT_GETINFO_DESTINATION_ID
        See Also:
        Constant Field Values
      • RENEWAL_SERVICE_ID

        public static final java.lang.String RENEWAL_SERVICE_ID
        See Also:
        Constant Field Values
      • DEFAULT_RENEWAL_SERVICE_ID

        public static final java.lang.String DEFAULT_RENEWAL_SERVICE_ID
        See Also:
        Constant Field Values
    • Method Detail

      • getDestinationId

        public static java.lang.String getDestinationId​(ExposedDestinationModel exposedDestination)
        Method to get formatted destinationId for kyma
        Parameters:
        exposedDestination - ExposedDestination
        Returns:
        formatted destinationId
      • isUrlsEqualIgnoringQuery

        public static boolean isUrlsEqualIgnoringQuery​(java.lang.String urlString1,
                                                       java.lang.String urlString2)
                                                throws java.net.URISyntaxException
        Method to check if two urls strings correspond to the same destination
        Parameters:
        urlString1 - Url String
        urlString2 - Url String
        Returns:
        true if urls are equal
        Throws:
        java.net.URISyntaxException