public final class LoadingConfiguration extends Object implements 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
|
int |
getCacheSize()
Return the size of the cache to use
note that this do not affect preloadedSchema that are always cached
|
Dereferencing |
getDereferencing()
Return the dereferencing mode used for this configuration
|
Map<String,URIDownloader> |
getDownloaderMap()
Return the map of downloaders for this configuration
|
boolean |
getEnableCache()
Deprecated.
Use cacheSize getter instead to get the cache size
|
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
|
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()
JsonNodeReaderJsonNodeReader@Deprecated public boolean getEnableCache()
public int getCacheSize()
public LoadingConfigurationBuilder thaw()
thaw in interface Frozen<LoadingConfigurationBuilder>LoadingConfigurationBuilder.LoadingConfigurationBuilder(LoadingConfiguration)