|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.jsonschema.core.load.configuration.LoadingConfiguration
public final class LoadingConfiguration
Loading configuration (frozen instance)
With a loading configuration, you can influence the following aspects:
URITranslatorConfiguration);The default configuration only preloads the core metaschemas for draft v4 and draft v3, and uses canonical dereferencing mode; it also uses the default set of supported schemes:
file,http,https,ftp,resource (resource in the classpath),jar (jar URL).You don't instantiate this class directly, you must go through a LoadingConfigurationBuilder for this (using newBuilder();
alternatively, you can obtain a default configuration using byDefault().
LoadingConfigurationBuilder,
Dereferencing,
URIManager,
SchemaLoader| Method Summary | |
|---|---|
static LoadingConfiguration |
byDefault()
Create a default, immutable loading configuration |
Dereferencing |
getDereferencing()
Return the dereferencing mode used for this configuration |
Map<String,URIDownloader> |
getDownloaderMap()
Return the map of downloaders for this configuration |
boolean |
getEnableCache()
Return if we want to cache loaded schema or not note that this do not affect preloadedSchema that are always cached |
Map<URI,JsonNode> |
getPreloadedSchemas()
Return the map of preloaded schemas |
JsonNodeReader |
getReader()
Get a configured JsonNodeReader |
URITranslatorConfiguration |
getTranslatorConfiguration()
|
static LoadingConfigurationBuilder |
newBuilder()
Create a new, default, mutable configuration instance |
LoadingConfigurationBuilder |
thaw()
Return a thawed version of this loading configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LoadingConfigurationBuilder newBuilder()
LoadingConfigurationBuilderpublic static LoadingConfiguration byDefault()
This is the result of calling Thawed.freeze() on newBuilder().
public Map<String,URIDownloader> getDownloaderMap()
ImmutableMap of downloaderspublic URITranslatorConfiguration getTranslatorConfiguration()
public Dereferencing getDereferencing()
public Map<URI,JsonNode> getPreloadedSchemas()
public JsonNodeReader getReader()
JsonNodeReader
JsonNodeReaderpublic boolean getEnableCache()
public LoadingConfigurationBuilder thaw()
thaw in interface Frozen<LoadingConfigurationBuilder>LoadingConfigurationBuilder.LoadingConfigurationBuilder(LoadingConfiguration)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||