Example usage for io.netty.handler.codec ByteToMessageDecoder subclass-usage

List of usage examples for io.netty.handler.codec ByteToMessageDecoder subclass-usage

Introduction

In this page you can find the example usage for io.netty.handler.codec ByteToMessageDecoder subclass-usage.

Usage

From source file com.stratio.deep.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.streamsets.pipeline.lib.parser.net.DataFormatParserDecoder.java

/**
 * <p>An implementation of {@link ByteToMessageDecoder} that delegates parsing logic</p>
 * <p><em>NOTE: </em> this class assumes that the {@link ByteBuf} supplied by the earlier handler is complete ,
 * and it has already taken care of properly framing the buffer and we are not waiting on any more input.  In
 * other words, it does not check the writerIndex nor does it follow the
 * {@link io.netty.handler.codec.ReplayingDecoder} paradigm.</p>

From source file com.streamsets.pipeline.lib.parser.net.DelimitedLengthFieldBasedFrameDecoder.java

public class DelimitedLengthFieldBasedFrameDecoder extends ByteToMessageDecoder {

    private final int maxFrameLength;
    private final int lengthAdjustment;
    private final boolean failFast;
    private final Charset lengthFieldCharset;

From source file com.streamsets.pipeline.lib.parser.net.syslog.SyslogDecoder.java

public class SyslogDecoder extends ByteToMessageDecoder {

    private static final Pattern TWO_SPACES = Pattern.compile("  ");
    private static final DateTimeFormatter rfc3164Format = DateTimeFormatter.ofPattern("MMM d HH:mm:ss", Locale.US);

    public static final String RFC5424_TS_PATTERN = "yyyy-MM-dd'T'HH:mm:ss";

From source file com.superman.netty.factorial.BigIntegerDecoder.java

/**
 * Decodes the binary representation of a {@link BigInteger} prepended
 * with a magic number ('F' or 0x46) and a 32-bit integer length prefix into a
 * {@link BigInteger} instance.  For example, { 'F', 0, 0, 0, 1, 42 } will be
 * decoded into new BigInteger("42").
 */

From source file com.superman.netty.portunification.PortUnificationServerHandler.java

/**
 * Manipulates the current pipeline dynamically to switch protocols or enable
 * SSL or GZIP.
 */
public class PortUnificationServerHandler extends ByteToMessageDecoder {

From source file com.tesora.dve.db.mysql.portal.protocol.MysqlClientAuthenticationHandler.java

public class MysqlClientAuthenticationHandler extends ByteToMessageDecoder {
    static final Logger log = Logger.getLogger(MysqlClientAuthenticationHandler.class);
    private static final long MAXIMUM_WAITTIME_MINUTES = 5; //abort operation if site doesn't at least authenticate us after 5 minutes.
    private static final int MESSAGE_HEADER_LEN = 4;

    enum AuthenticationState {

From source file com.tesora.dve.server.connectionmanager.loaddata.MSPLoadDataDecoder.java

/**
 * A netty handler that decodes and dispatches "LOAD DATA LOCAL INFILE", where the file contents are provided on the socket rather than on the server's disk.
 * Like all netty handlers, methods called by netty should never block since this will prevent other sockets processed by the same
 * thread from being serviced.  Currently, this class only expects method invocations from a single netty thread,
 * and is therefore completely thread safe and doesn't require any locking or atomics.  The only exception to this rule is
 * inserts are blocking and get submitted to a separate thread pool to prevent blocking, and the request and responses are handled

From source file com.torodb.mongowp.server.util.ChannelLittleEndianHandler.java

/**
 *
 */
public abstract class ChannelLittleEndianHandler extends ByteToMessageDecoder {

    @Override

From source file com.touwolf.esl.impl.EslMessageDecoder.java

/**
 *
 */
public class EslMessageDecoder extends ByteToMessageDecoder {
    private EslMessageImpl eslMsg = new EslMessageImpl();