Class URIUtils


  • public final class URIUtils
    extends Object
    • Method Detail

      • buildForConnId

        public static URI buildForConnId​(String location)
                                  throws MalformedURLException,
                                         URISyntaxException
        Build a valid URI out of the given location. Only "file", "connid" and "connids" schemes are allowed. For "file", invalid characters are handled via intermediate transformation into URL.
        Parameters:
        location - the candidate location for URI
        Returns:
        valid URI for the given location
        Throws:
        MalformedURLException - if the intermediate URL is not valid
        URISyntaxException - if the given location does not correspond to a valid URI