com.lafaspot.icap.client.codec.IcapMessageDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icapclient Show documentation
Show all versions of icapclient Show documentation
Icap client to talk to Symantec server.
package com.lafaspot.icap.client.codec;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ReplayingDecoder;
import java.util.List;
import javax.annotation.Nonnull;
import com.lafaspot.logfast.logging.Logger;
/**
* Decoder to parse ICAP messages from Symantec server.
*
* @author kraman
*
*/
public class IcapMessageDecoder extends ReplayingDecoder {
/** The logger object. */
private final Logger logger;
/**
* Constructor for the decoder.
*
* @param logger the logger object
*/
public IcapMessageDecoder(@Nonnull final Logger logger) {
super(new IcapMessage(logger));
this.logger = logger;
}
@Override
protected void decode(final ChannelHandlerContext ctx, final ByteBuf buf, final List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy