Package com.github.erosb.jsonsKema
Class PrepopulatedSchemaClient
-
- All Implemented Interfaces:
-
com.github.erosb.jsonsKema.SchemaClient
public final class PrepopulatedSchemaClient implements SchemaClient
A SchemaClient which, holds a registry of URI -> String mapping. If the URI received by {@code get()} is known by the registry, then the mapped {@code String} is returned, otherwise the {@code fallbackClient} is used to obtain the content.
The registry contains default mappings for meta-schema URIs, which can be extended by adding {@code additionalMappings}.
-
-
Constructor Summary
Constructors Constructor Description PrepopulatedSchemaClient(SchemaClient fallbackClient, Map<URI, String> additionalMappings)
-
Method Summary
Modifier and Type Method Description InputStreamget(URI uri)-
-
Constructor Detail
-
PrepopulatedSchemaClient
PrepopulatedSchemaClient(SchemaClient fallbackClient, Map<URI, String> additionalMappings)
-
-
Method Detail
-
get
InputStream get(URI uri)
-
-
-
-