Class UrlUtil


  • public class UrlUtil
    extends Object
    • Constructor Detail

      • UrlUtil

        public UrlUtil()
    • Method Detail

      • handleSqlServerDbUrlParameters

        public static String handleSqlServerDbUrlParameters​(List<String> keys,
                                                            String url)
        Move the specified keys up in the connection url for better readability and remove additional parameters. As far as I can tell this is sql server specific right now.
        Parameters:
        keys - the important keys to keep at the start of the connection url
        url - the url to modify
        Returns:
        a new connection url with the connection parameters matching the keys provided moved forward, sorted alphabetically and with all other parameters REMOVED.