Class URLFactory

  • All Implemented Interfaces:
    URIFactory

    public final class URLFactory
    extends Object
    implements URIFactory
    A URIFactory that uses URL for creating URIs.
    • Field Detail

      • SUPPORTED_SCHEMES

        public static final Set<String> SUPPORTED_SCHEMES
    • Constructor Detail

      • URLFactory

        public URLFactory()
    • Method Detail

      • create

        public URI create​(String uri)
        Specified by:
        create in interface URIFactory
        Parameters:
        uri - String
        Returns:
        URI
      • create

        public URI create​(URI baseURI,
                          String segment)
        Specified by:
        create in interface URIFactory
        Parameters:
        baseURI - URI
        segment - String
        Returns:
        URI