Class UriSchemaLoader

    • Constructor Detail

      • UriSchemaLoader

        public UriSchemaLoader()
    • Method Detail

      • toURI

        protected URI toURI​(AbsoluteIri absoluteIri)
        Converts an AbsoluteIRI to a URI.

        Internationalized domain names will be converted using java.net.IDN.toASCII.

        Parameters:
        absoluteIri - the absolute IRI
        Returns:
        the URI
      • toURL

        protected URL toURL​(URI uri)
        Converts a URI to a URL.

        This will throw if the URI is not a valid URL. For instance if the URI is not absolute.

        Parameters:
        uri - the URL
        Returns:
        the URL