com.github.fge.jsonschema.core.load.uri
Class URITranslator
java.lang.Object
com.github.fge.jsonschema.core.load.uri.URITranslator
public final class URITranslator
- extends Object
URI translation
When it is required that a URI be dereferenced (either by yourself,
using SchemaLoader.get(URI), or when a JSON Reference is encountered
in a JSON Schema), this class is in charge of translating the
resolved URI into a more suitable URI for your environment.
Translation is done in three steps:
- resolving against the default namespace,
- translating the path to another one (if applicable),
- translating the full schema URI to another one (if applicable).
By default, the namespace is empty and no path or schema translations are
defined.
- See Also:
URITranslatorConfiguration
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URITranslator
public URITranslator(URITranslatorConfiguration cfg)
translate
public URI translate(URI source)