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.cloudhopper.smpp.channel.SmppSessionPduDecoder.java

/**
 * Channel handler responsible for decoding a ChannelBuffer into a PDU.  A
 * decoded PDU is then passed up the pipeline for further processing.
 * 
 * @author joelauer (twitter: @jjlauer or <a href="http://twitter.com/jjlauer" target=window>http://twitter.com/jjlauer</a>)
 */

From source file com.cloudhopper.smpp.simulator.SmppSimulatorSessionHandler.java

/**
 * Basically turns the event-driven handler into a "queued" handler by queuing
 * received PDUs and exceptions thrown.  A calling thread can then "poll" for
 * these events.  Also, the responses can be scheduled and queued ahead of time.
 * The next event that matches it will automatically write it back.
 * 

From source file com.codnos.dbgp.internal.handlers.DBGpCommandDecoder.java

public class DBGpCommandDecoder extends ByteToMessageDecoder {

    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> objects) throws Exception {
        int nullPosition = in.forEachByte(ByteProcessor.FIND_NUL);
        if (nullPosition < 0)

From source file com.codnos.dbgp.internal.handlers.DBGpResponseDecoder.java

public class DBGpResponseDecoder extends ByteToMessageDecoder {
    private static final Logger LOGGER = Logger.getLogger(DBGpResponseDecoder.class.getName());

    private static final int NULL_BYTE_SIZE = 1;

    @Override

From source file com.comphenix.protocol.compat.netty.independent.NettyChannelInjector.java

/**
 * Represents a channel injector.
 * @author Kristian
 */
public class NettyChannelInjector extends ByteToMessageDecoder implements ChannelInjector {
    public static final ReportType REPORT_CANNOT_INTERCEPT_SERVER_PACKET = new ReportType(

From source file com.comphenix.protocol.injector.netty.ChannelInjector.java

/**
 * Represents a channel injector.
 * @author Kristian
 */
public class ChannelInjector extends ByteToMessageDecoder implements Injector {
    public static final ReportType REPORT_CANNOT_INTERCEPT_SERVER_PACKET = new ReportType(

From source file com.dempe.chat.common.mqtt.codec.MQTTDecoder.java

/**
 * @author andrea
 */
public class MQTTDecoder extends ByteToMessageDecoder {

    //3 = 3.1, 4 = 3.1.1

From source file com.dempe.chat.common.netty.MQTTDecoder.java

/**
 *
 * @author andrea
 */
public class MQTTDecoder extends ByteToMessageDecoder {

From source file com.digitalpetri.opcua.stack.server.handlers.UaTcpServerAsymmetricHandler.java

public class UaTcpServerAsymmetricHandler extends ByteToMessageDecoder implements HeaderDecoder {

    private static final long SecureChannelLifetimeMin = 60000L * 60;
    private static final long SecureChannelLifetimeMax = 60000L * 60 * 24;

    private final Logger logger = LoggerFactory.getLogger(getClass());

From source file com.digitalpetri.opcua.stack.server.handlers.UaTcpServerHelloHandler.java

public class UaTcpServerHelloHandler extends ByteToMessageDecoder implements HeaderDecoder {

    public static final AttributeKey<String> ENDPOINT_URL_KEY = AttributeKey.valueOf("endpoint-url");

    private final Logger logger = LoggerFactory.getLogger(getClass());