Class SubjectNames

java.lang.Object
io.confluent.kafka.schemaregistry.validator.core.SubjectNames

public final class SubjectNames extends Object
Subject-name helpers shared by the schema validation core and the Schema Registry client wrappers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Mirrors LogConfig.DEFAULT_CONTEXT_NAME_SCHEMA_VALIDATION, duplicated rather than referenced so this package does not depend on the storage module.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    maybeAddContextName(String subject, String contextName)
    Qualify subject with contextName unless the context is absent or is the default context, in which case the subject is returned unchanged.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_CONTEXT_NAME

      public static final String DEFAULT_CONTEXT_NAME
      Mirrors LogConfig.DEFAULT_CONTEXT_NAME_SCHEMA_VALIDATION, duplicated rather than referenced so this package does not depend on the storage module. That constant is the default for the public topic config confluent.schema.validation.context.name, so it does not change without a breaking config change; if it ever does, grep for this literal.
      See Also:
  • Method Details

    • maybeAddContextName

      public static String maybeAddContextName(String subject, String contextName)
      Qualify subject with contextName unless the context is absent or is the default context, in which case the subject is returned unchanged. A null subject yields the bare normalized context.