Class JsonSchemaProvider
java.lang.Object
io.confluent.kafka.schemaregistry.AbstractSchemaProvider
io.confluent.kafka.schemaregistry.json.JsonSchemaProvider
- All Implemented Interfaces:
SchemaProvider,org.apache.kafka.common.Configurable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfig key (within theschema.providers.provider config map) controlling whether remote HTTP(S) schema references may be fetched.Fields inherited from interface io.confluent.kafka.schemaregistry.SchemaProvider
SCHEMA_VERSION_FETCHER_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseSchemaOrElseThrow(Schema schema, boolean isNew, boolean normalize) protected booleanshouldBlockRemoteRefs(Schema schema, boolean fetchRemoteRefs) Determines whether remote HTTP(S) schema-reference fetching should be blocked while loading the given schema.Methods inherited from class io.confluent.kafka.schemaregistry.AbstractSchemaProvider
canLookupIgnoringVersion, getConfluentVersion, getConfluentVersionNumber, hasLatestVersion, replaceLatestVersion, resolveReferences, resolveReferences, schemaVersionFetcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.kafka.schemaregistry.SchemaProvider
parseSchema, parseSchema, parseSchema, parseSchema, parseSchema
-
Field Details
-
FETCH_REMOTE_REFS
Config key (within theschema.providers.provider config map) controlling whether remote HTTP(S) schema references may be fetched. The typed value is injected by the schema registry fromschema.providers.json.fetch.remote.schemas(defaults to true).- See Also:
-
-
Constructor Details
-
JsonSchemaProvider
public JsonSchemaProvider()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable- Specified by:
configurein interfaceSchemaProvider- Overrides:
configurein classAbstractSchemaProvider
-
schemaType
-
shouldBlockRemoteRefs
Determines whether remote HTTP(S) schema-reference fetching should be blocked while loading the given schema. Subclasses may override to apply a narrower policy (e.g. only blocking new schema registrations) than the default of blocking all fetches once disabled. -
parseSchemaOrElseThrow
-