Example usage for io.netty.channel ChannelInboundHandlerAdapter subclass-usage

List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel ChannelInboundHandlerAdapter subclass-usage.

Usage

From source file com.hazelcast.simulator.protocol.handler.ConnectionValidationHandler.java

/**
 * Validates new connections by checking the magic bytes of the first incoming {@link ByteBuf}.
 *
 * Removes itself from the channel pipeline after successful validation, since big {@link ByteBuf}
 * can be split up into several chunks and just the first one contains the magic bytes.
 */

From source file com.hipishare.chat.SecureChatClientHandler.java

/**
 * Handles a client-side channel.
 */
public class SecureChatClientHandler extends ChannelInboundHandlerAdapter {
    private static Logger LOG = LogManager.getLogger(SecureChatClientHandler.class.getName());

From source file com.hipishare.chat.test.EchoClientHandler.java

/**
 * Handler implementation for the echo client.  It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server.
 */
public class EchoClientHandler extends ChannelInboundHandlerAdapter {

From source file com.hipishare.chat.test.EchoServerHandler.java

/**
 * Handler implementation for the echo server.
 */
@Sharable
public class EchoServerHandler extends ChannelInboundHandlerAdapter {

From source file com.hop.hhxx.example.echo.EchoClientHandler.java

/**
 * Handler implementation for the echo client.  It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server.
 */
public class EchoClientHandler extends ChannelInboundHandlerAdapter {

From source file com.hop.hhxx.example.echo.EchoServerHandler.java

/**
 * Handler implementation for the echo server.
 */
@Sharable
public class EchoServerHandler extends ChannelInboundHandlerAdapter {

From source file com.hop.hhxx.example.http.helloworld.HttpHelloWorldServerHandler.java

public class HttpHelloWorldServerHandler extends ChannelInboundHandlerAdapter {
    private static final byte[] CONTENT = { 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd' };

    private static final AsciiString CONTENT_TYPE = new AsciiString("Content-Type");
    private static final AsciiString CONTENT_LENGTH = new AsciiString("Content-Length");
    private static final AsciiString CONNECTION = new AsciiString("Connection");

From source file com.hop.hhxx.example.localecho.LocalEchoServerHandler.java

public class LocalEchoServerHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) {
        // Write back as received
        ctx.write(msg);

From source file com.hop.hhxx.example.objectecho.ObjectEchoClientHandler.java

/**
 * Handler implementation for the object echo client.  It initiates the
 * ping-pong traffic between the object echo client and server by sending the
 * first message to the server.
 */
public class ObjectEchoClientHandler extends ChannelInboundHandlerAdapter {

From source file com.hop.hhxx.example.objectecho.ObjectEchoServerHandler.java

/**
 * Handles both client-side and server-side handler depending on which
 * constructor was called.
 */
public class ObjectEchoServerHandler extends ChannelInboundHandlerAdapter {