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.spotify.folsom.client.TcpTuningHandler.java

/**
 * A channel handler that sets up TCP keepalive and disables Nagle's algorithm. Removes itself from
 * the pipeline after it is done.
 */
public class TcpTuningHandler extends ChannelInboundHandlerAdapter {

From source file com.springapp.mvc.netty.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.springapp.mvc.netty.example.echo.EchoServerHandler.java

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

From source file com.springapp.mvc.netty.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' };

    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) {
        ctx.flush();

From source file com.springapp.mvc.netty.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.springapp.mvc.netty.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.springapp.mvc.netty.example.objectecho.ObjectEchoServerHandler.java

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

From source file com.springapp.mvc.netty.example.proxy.HexDumpProxyBackendHandler.java

public class HexDumpProxyBackendHandler extends ChannelInboundHandlerAdapter {

    private final Channel inboundChannel;

    public HexDumpProxyBackendHandler(Channel inboundChannel) {
        this.inboundChannel = inboundChannel;

From source file com.springapp.mvc.netty.example.proxy.HexDumpProxyFrontendHandler.java

public class HexDumpProxyFrontendHandler extends ChannelInboundHandlerAdapter {

    private final String remoteHost;
    private final int remotePort;

    private volatile Channel outboundChannel;

From source file com.springapp.mvc.netty.example.sctp.SctpEchoClientHandler.java

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