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.eclipse.milo.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 org.eclipse.milo.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());

From source file org.eclipse.milo.opcua.stack.server.transport.uasc.UascServerAsymmetricHandler.java

public class UascServerAsymmetricHandler extends ByteToMessageDecoder implements HeaderDecoder {

    static final AttributeKey<EndpointDescription> ENDPOINT_KEY = AttributeKey.valueOf("endpoint");

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

From source file org.eclipse.milo.opcua.stack.server.transport.uasc.UascServerHelloHandler.java

public class UascServerHelloHandler extends ByteToMessageDecoder implements HeaderDecoder {

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

    /**
     * Cumulative count of all connection rejections for the lifetime of the server.

From source file org.eclipse.milo.opcua.stack.server.transport.uasc.UascServerSymmetricHandler.java

public class UascServerSymmetricHandler extends ByteToMessageDecoder implements HeaderDecoder {

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

    private List<ByteBuf> chunkBuffers;

From source file org.eclipse.moquette.parser.netty.MQTTDecoder.java

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

From source file org.eclipse.neoscada.protocol.iec60870.apci.APDUDecoder.java

public class APDUDecoder extends ByteToMessageDecoder {

    private final static Logger logger = LoggerFactory.getLogger(APDUDecoder.class);

    @Override
    protected void decode(final ChannelHandlerContext ctx, final ByteBuf in, final List<Object> out)

From source file org.eclipse.scada.protocol.iec60870.apci.APDUDecoder.java

public class APDUDecoder extends ByteToMessageDecoder {

    private final static Logger logger = LoggerFactory.getLogger(APDUDecoder.class);

    @Override
    protected void decode(final ChannelHandlerContext ctx, final ByteBuf in, final List<Object> out)

From source file org.elasticsearch.hadoop.transport.netty4.Netty4SizeHeaderFrameDecoder.java

final class Netty4SizeHeaderFrameDecoder extends ByteToMessageDecoder {

    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
        try {
            boolean continueProcessing = TcpTransport.validateMessageHeader(Netty4Utils.toBytesReference(in));

From source file org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.java

final class Netty4SizeHeaderFrameDecoder extends ByteToMessageDecoder {

    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
        try {
            boolean continueProcessing = TcpTransport.validateMessageHeader(Netty4Utils.toBytesReference(in));