com.github.fge.jsonschema.core.load.uri
Class URITranslator

java.lang.Object
  extended by 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:

By default, the namespace is empty and no path or schema translations are defined.

See Also:
URITranslatorConfiguration

Constructor Summary
URITranslator(URITranslatorConfiguration cfg)
           
 
Method Summary
 URI translate(URI source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URITranslator

public URITranslator(URITranslatorConfiguration cfg)
Method Detail

translate

public URI translate(URI source)