io.kroxylicious.test.codec.KafkaMessageDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kroxylicious-integration-test-support Show documentation
Show all versions of kroxylicious-integration-test-support Show documentation
Support code to simplify writing integration tests for filters
The newest version!
/*
* Copyright Kroxylicious Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.kroxylicious.test.codec;
import java.util.List;
import org.slf4j.Logger;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
/**
* Abstraction for request and response decoders.
*/
public abstract class KafkaMessageDecoder extends ByteToMessageDecoder {
/**
* Get the logger to use
* @return logger
*/
protected abstract Logger log();
/**
* Create a KafkaMessageDecoder
*/
public KafkaMessageDecoder() {
}
@Override
public void decode(ChannelHandlerContext ctx, ByteBuf in, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy