public final class LoadingConfigurationBuilder extends Object implements Thawed<LoadingConfiguration>
LoadingConfigurationpublic LoadingConfigurationBuilder addScheme(String scheme, URIDownloader downloader)
scheme - the schemedownloader - the downloaderNullPointerException - scheme or downloader is nullIllegalArgumentException - illegal schemepublic LoadingConfigurationBuilder removeScheme(String scheme)
scheme - the schemepublic LoadingConfigurationBuilder setURITransformer(URITransformer transformer)
@Deprecated public LoadingConfigurationBuilder setNamespace(String input)
setURITransformer(URITransformer) instead; will
disappear in 1.1.9.input - the namespaceNullPointerException - input is nullIllegalArgumentException - input is not an absolute JSON Referencepublic LoadingConfigurationBuilder dereferencing(Dereferencing dereferencing)
By default, it is Dereferencing.CANONICAL.
dereferencing - the dereferencing modeNullPointerException - dereferencing mode is null@Deprecated public LoadingConfigurationBuilder addSchemaRedirect(String source, String destination)
setURITransformer(URITransformer) instead; will
be removed in 1.1.9.source - URI of the source schemadestination - URI to redirect toNullPointerException - source or destination is nullIllegalArgumentException - source and destination are the same URIpublic LoadingConfigurationBuilder preloadSchema(String uri, JsonNode schema)
Use this if the schema you wish to preload does not have an absolute
id at the top level.
Note that the syntax of the schema is not checked at this stage.
uri - the URI to useschema - the schemaNullPointerException - the URI or schema is nullIllegalArgumentException - a schema already exists at this URIJsonRefpublic LoadingConfigurationBuilder preloadSchema(JsonNode schema)
Use this if the schema already has an absolute id.
schema - the schemaNullPointerException - schema is nullIllegalArgumentException - schema has no id, or its id is not an absolute JSON ReferenceJsonRefpublic LoadingConfigurationBuilder addParserFeature(JsonParser.Feature feature)
Use this option to enable non-standard JSON schema source including comments, single quotes, unquoted field names, etc.
feature - the JsonParser feature to enableNullPointerException - feature is nullJsonParser.Featurepublic LoadingConfigurationBuilder removeParserFeature(JsonParser.Feature feature)
Note that attempts to remove JsonParser.Feature.AUTO_CLOSE_SOURCE will
be ignored for safety reasons.
feature - the feature to removeNullPointerException - feature is nulladdParserFeature(JsonParser.Feature)public LoadingConfiguration freeze()
freeze in interface Thawed<LoadingConfiguration>