public final class LoadingConfiguration extends Object implements com.github.fge.Frozen<LoadingConfigurationBuilder>
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
Modifier and Type | Method and Description |
---|---|
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,com.fasterxml.jackson.databind.JsonNode> |
getPreloadedSchemas()
Return the map of preloaded schemas
|
com.github.fge.jackson.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
|
public static LoadingConfigurationBuilder newBuilder()
LoadingConfigurationBuilder
public 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,com.fasterxml.jackson.databind.JsonNode> getPreloadedSchemas()
public com.github.fge.jackson.JsonNodeReader getReader()
JsonNodeReader
JsonNodeReader
public boolean getEnableCache()
public LoadingConfigurationBuilder thaw()
thaw
in interface com.github.fge.Frozen<LoadingConfigurationBuilder>
LoadingConfigurationBuilder.LoadingConfigurationBuilder(LoadingConfiguration)
Copyright © 2016. All rights reserved.