List of usage examples for io.netty.handler.codec ByteToMessageDecoder subclass-usage
From source file netty.syslog.MessageDecoder.java
public class MessageDecoder extends ByteToMessageDecoder { @Override protected void decode(ChannelHandlerContext context, ByteBuf buffer, List<Object> objects) throws Exception { if (buffer.readableBytes() < 1) { return;
From source file nettyClient4.clientDecoder.java
/**
* @author :
* Project : LandlordsServer
* Date: 13-8-7
* Time: ?9:52
* Connect: 13638363871@163.com
From source file nl.thijsalders.spigotproxy.haproxy.HAProxyMessageDecoder.java
/** * Decodes an HAProxy proxy protocol header * * @see <a href="http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt">Proxy Protocol Specification</a> */ public class HAProxyMessageDecoder extends ByteToMessageDecoder {
From source file nss.delta.agentmanager.utils.OFMessageDecoder.java
/** * Decode an openflow message from a channel, for use in a netty pipeline. * * @author Andreas Wundsam <andreas.wundsam@bigswitch.com> */ public class OFMessageDecoder extends ByteToMessageDecoder {
From source file org.apache.drill.exec.rpc.ProtobufLengthDecoder.java
/** * Modified version of {@link io.netty.handler.codec.protobuf.ProtobufVarint32FrameDecoder} that avoids bytebuf copy. * See the documentation there. */ public class ProtobufLengthDecoder extends ByteToMessageDecoder { static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ProtobufLengthDecoder.class);
From source file org.apache.drill.exec.rpc.ZeroCopyProtobufLengthDecoder.java
/** * Modified version of ProtobufVarint32FrameDecoder that avoids bytebuf copy. */ public class ZeroCopyProtobufLengthDecoder extends ByteToMessageDecoder { static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ZeroCopyProtobufLengthDecoder.class);
From source file org.apache.dubbo.qos.server.handler.QosProcessHandler.java
public class QosProcessHandler extends ByteToMessageDecoder { private ScheduledFuture<?> welcomeFuture; private String welcome; // true means to accept foreign IP
From source file org.apache.geode.redis.internal.ByteToCommandDecoder.java
/**
* This is the first part of the channel pipeline for Netty. Here incoming bytes are read and a
* created {@link Command} is sent down the pipeline. It is unfortunate that this class is not
* {@link io.netty.channel.ChannelHandler.Sharable} because no state is kept in this class. State is
* kept by {@link ByteToMessageDecoder}, it may be worthwhile to look at a different decoder setup
* as to avoid allocating a decoder for every new connection.
From source file org.apache.hadoop.hbase.security.SaslChallengeDecoder.java
/** * Decode the sasl challenge sent by RpcServer. */ @InterfaceAudience.Private public class SaslChallengeDecoder extends ByteToMessageDecoder {
From source file org.apache.hadoop.hdfs.server.datanode.web.PortUnificationServerHandler.java
/** * A port unification handler to support HTTP/1.1 and HTTP/2 on the same port. */ @InterfaceAudience.Private public class PortUnificationServerHandler extends ByteToMessageDecoder {