Package com.networknt.schema.uri
Class ClasspathURLFactory
- java.lang.Object
-
- com.networknt.schema.uri.ClasspathURLFactory
-
- All Implemented Interfaces:
URIFactory
public final class ClasspathURLFactory extends Object implements URIFactory
A URIFactory that uses URL for creatingURI
s.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
SUPPORTED_SCHEMES
-
Constructor Summary
Constructors Constructor Description ClasspathURLFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URL
convert(URI uri)
URI
create(String uri)
URI
create(URI baseURI, String segment)
-
-
-
Method Detail
-
convert
public static URL convert(URI uri) throws MalformedURLException
- Throws:
MalformedURLException
-
create
public URI create(String uri)
- Specified by:
create
in interfaceURIFactory
- Parameters:
uri
- Some uri string.- Returns:
- The converted
URI
.
-
-