Class DefaultHeadersHandler
- java.lang.Object
-
- io.apicurio.registry.serde.headers.DefaultHeadersHandler
-
- All Implemented Interfaces:
HeadersHandler
public class DefaultHeadersHandler extends Object implements HeadersHandler
- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description DefaultHeadersHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Map<String,Object> configs, boolean isKey)ArtifactReferencereadHeaders(org.apache.kafka.common.header.Headers headers)Reads the kafka message headers and returns an ArtifactReference that can contain or not information to identify an Artifact in the registry.voidwriteHeaders(org.apache.kafka.common.header.Headers headers, ArtifactReference reference)
-
-
-
Method Detail
-
configure
public void configure(Map<String,Object> configs, boolean isKey)
- Specified by:
configurein interfaceHeadersHandler- See Also:
HeadersHandler.configure(java.util.Map, boolean)
-
writeHeaders
public void writeHeaders(org.apache.kafka.common.header.Headers headers, ArtifactReference reference)- Specified by:
writeHeadersin interfaceHeadersHandler- See Also:
io.apicurio.registry.serde.headers.HeadersHandler#writeHeaders(org.apache.kafka.common.header.Headers, io.apicurio.registry.serde.SchemaLookupResult)
-
readHeaders
public ArtifactReference readHeaders(org.apache.kafka.common.header.Headers headers)
Description copied from interface:HeadersHandlerReads the kafka message headers and returns an ArtifactReference that can contain or not information to identify an Artifact in the registry.- Specified by:
readHeadersin interfaceHeadersHandler- Returns:
- ArtifactReference
- See Also:
HeadersHandler.readHeaders(org.apache.kafka.common.header.Headers)
-
-