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

public class JsonSchemaProvider extends AbstractSchemaProvider
  • Field Details

    • FETCH_REMOTE_REFS

      public static final String FETCH_REMOTE_REFS
      Config key (within the schema.providers. provider config map) controlling whether remote HTTP(S) schema references may be fetched. The typed value is injected by the schema registry from schema.providers.json.fetch.remote.schemas (defaults to true).
      See Also:
  • Constructor Details

    • JsonSchemaProvider

      public JsonSchemaProvider()
  • Method Details

    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable
      Specified by:
      configure in interface SchemaProvider
      Overrides:
      configure in class AbstractSchemaProvider
    • schemaType

      public String schemaType()
    • shouldBlockRemoteRefs

      protected boolean shouldBlockRemoteRefs(Schema schema, boolean fetchRemoteRefs)
      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

      public ParsedSchema parseSchemaOrElseThrow(Schema schema, boolean isNew, boolean normalize)