Package com.networknt.schema.uri
Class URITranslator.MappingURITranslator
- java.lang.Object
-
- com.networknt.schema.uri.URITranslator.MappingURITranslator
-
- All Implemented Interfaces:
URITranslator
- Enclosing interface:
- URITranslator
public static class URITranslator.MappingURITranslator extends Object implements URITranslator
Provides support for legacy map-based translations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.networknt.schema.uri.URITranslator
URITranslator.CompositeURITranslator, URITranslator.MappingURITranslator, URITranslator.PrefixReplacer
-
-
Field Summary
-
Fields inherited from interface com.networknt.schema.uri.URITranslator
NOOP
-
-
Constructor Summary
Constructors Constructor Description MappingURITranslator(Map<String,String> uriMappings)
-
-
-
Method Detail
-
translate
public URI translate(URI original)
Description copied from interface:URITranslator
Translates one URI into another.- Specified by:
translate
in interfaceURITranslator
- Parameters:
original
- the URI to translate- Returns:
- the translated URI or the original URI if it did not match the conditions triggering translation
-
-