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 org.msgpack.rpc.loop.netty.MessagePackStreamDecoder.java

public class MessagePackStreamDecoder extends ByteToMessageDecoder {
    protected MessagePack msgpack;

    public MessagePackStreamDecoder(MessagePack msgpack) {
        super();
        this.msgpack = msgpack;

From source file org.neo4j.bolt.transport.TransportSelectionHandler.java

public class TransportSelectionHandler extends ByteToMessageDecoder {
    private static final String WEBSOCKET_MAGIC = "GET ";
    private static final int MAX_WEBSOCKET_HANDSHAKE_SIZE = 65536;

    private final SslContext sslCtx;
    private final boolean isEncrypted;

From source file org.onosproject.ofagent.impl.OFMessageDecoder.java

/**
 * Decodes inbound byte buffer from OpenFlow channel to OFMessage.
 */
public final class OFMessageDecoder extends ByteToMessageDecoder {

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

From source file org.onosproject.ovsdb.controller.impl.MessageDecoder.java

/**
 * Decoder for inbound messages.
 */
public class MessageDecoder extends ByteToMessageDecoder {

    private final Logger log = LoggerFactory.getLogger(MessageDecoder.class);

From source file org.onosproject.xmpp.core.ctl.handlers.XmlStreamDecoder.java

/**
 * Decodes a incoming data from XML stream.
 */
public class XmlStreamDecoder extends ByteToMessageDecoder {

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

From source file org.opendaylight.controller.netconf.impl.mapping.ExiDecoderHandler.java

public class ExiDecoderHandler extends ByteToMessageDecoder {

    public static final String HANDLER_NAME;

    static {
        HANDLER_NAME = "exiDecoder";

From source file org.opendaylight.controller.netconf.nettyutil.handler.NetconfChunkAggregator.java

public class NetconfChunkAggregator extends ByteToMessageDecoder {
    private final static Logger LOG = LoggerFactory.getLogger(NetconfChunkAggregator.class);
    private static final String GOT_PARAM_WHILE_WAITING_FOR_PARAM = "Got byte {} while waiting for {}";
    private static final String GOT_PARAM_WHILE_WAITING_FOR_PARAM_PARAM = "Got byte {} while waiting for {}-{}";
    public static final int DEFAULT_MAXIMUM_CHUNK_SIZE = 16 * 1024 * 1024;

From source file org.opendaylight.controller.netconf.nettyutil.handler.NetconfEXIToMessageDecoder.java

public final class NetconfEXIToMessageDecoder extends ByteToMessageDecoder {

    private static final Logger LOG = LoggerFactory.getLogger(NetconfEXIToMessageDecoder.class);
    private static final SAXTransformerFactory FACTORY = (SAXTransformerFactory) SAXTransformerFactory
            .newInstance();
    /**

From source file org.opendaylight.controller.netconf.nettyutil.handler.NetconfXMLToHelloMessageDecoder.java

/**
 * Customized NetconfXMLToMessageDecoder that reads additional header with
 * session metadata from
 * {@link org.opendaylight.controller.netconf.util.messages.NetconfHelloMessage}
 *
 *

From source file org.opendaylight.controller.netconf.nettyutil.handler.NetconfXMLToMessageDecoder.java

public final class NetconfXMLToMessageDecoder extends ByteToMessageDecoder {
    private static final Logger LOG = LoggerFactory.getLogger(NetconfXMLToMessageDecoder.class);

    @Override
    public void decode(final ChannelHandlerContext ctx, final ByteBuf in, final List<Object> out)
            throws IOException, SAXException {