List of usage examples for io.netty.handler.codec ByteToMessageDecoder subclass-usage
From source file com.baidu.jprotobuf.pbrpc.transport.handler.RpcDataPackageDecoder.java
/**
* Decode RpcDataPackage from received bytes
*
* @author xiemalin
* @since 1.0
* @see RpcDataPackage
From source file com.basho.riak.client.core.netty.HealthCheckDecoder.java
/** * * @author Brian Roach <roach at basho dot com> */ public abstract class HealthCheckDecoder extends ByteToMessageDecoder { private final Logger logger = LoggerFactory.getLogger(HealthCheckDecoder.class);
From source file com.basho.riak.client.core.netty.RiakSecurityDecoder.java
/** * * @author Brian Roach <roach at basho dot com> */ public class RiakSecurityDecoder extends ByteToMessageDecoder
From source file com.bosscs.spark.commons.extractor.client.codecs.ActionDecoder.java
public class ActionDecoder extends ByteToMessageDecoder { private static final Logger LOG = LoggerFactory.getLogger(ActionDecoder.class); protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
From source file com.bosscs.spark.commons.extractor.client.codecs.ResponseDecoder.java
public class ResponseDecoder extends ByteToMessageDecoder { protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) { // Wait until the length prefix is available. if (in.readableBytes() < 5) {
From source file com.butor.netty.handler.codec.ftp.CrlfStringDecoder.java
/**
* {@link FrameDecoder} implementation, that accumulates input strings until {@code \r\n}
* and sends accumulated string upstream.
*
* @author alexkasko
* Date: 12/28/12
From source file com.cc.nettytest.proxy.decoder.CCLengthFieldBasedFrameDecoder.java
/**
* A decoder that splits the received {@link ByteBuf}s dynamically by the
* value of the length field in the message. It is particularly useful when you
* decode a binary message which has an integer header field that represents the
* length of the message body or the whole message.
* <p>
From source file com.chat.common.netty.handler.decode.LengthFieldBasedFrameDecoder.java
/**
* A decoder that splits the received {@link ByteBuf}s dynamically by the
* value of the length field in the message. It is particularly useful when you
* decode a binary message which has an integer header field that represents the
* length of the message body or the whole message.
* <p>
From source file com.chat.common.netty.handler.decode.ProtobufVarint32FrameDecoder.java
/**
* A decoder that splits the received {@link ByteBuf}s dynamically by the
* value of the Google Protocol Buffers
* <a href="http://code.google.com/apis/protocolbuffers/docs/encoding.html#varints">Base
* 128 Varints</a> integer length field in the message. For example:
* <pre>
From source file com.chiorichan.http.ssl.SniNegotiator.java
/**
* <p>
* Enables <a href="https://tools.ietf.org/html/rfc3546#section-3.1">SNI (Server Name Indication)</a> extension for server side SSL. For clients support SNI, the server could have multiple host name bound on a single IP. The client will send host name in
* the handshake data so server could decide which certificate to choose for the host name.
*
* Original code from io.netty.handler.ssl.SniHandler, modified for Chiori-chan's Web Server use case.