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

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

Introduction

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

Usage

From source file com.digisky.innerproxy.testclient.HttpSnoopClientHandler.java

public class HttpSnoopClientHandler extends SimpleChannelInboundHandler<Object> {

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        cause.printStackTrace();
        ctx.close();

From source file com.digisky.outerproxy.server.OuterProxyHttpServerHandler.java

public class OuterProxyHttpServerHandler extends SimpleChannelInboundHandler<Object> {

    private HttpRequest request;

    //defaut
    private static byte[] key = { (byte) 0x01, (byte) 0x82, (byte) 0x0D, (byte) 0xE0, (byte) 0xB0, (byte) 0x1A,

From source file com.digisky.outerproxy.testclient.HttpSnoopClientHandler.java

public class HttpSnoopClientHandler extends SimpleChannelInboundHandler<Object> {

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        cause.printStackTrace();
        ctx.close();

From source file com.digisky.stresstest.HttpSnoopClientHandler.java

public class HttpSnoopClientHandler extends SimpleChannelInboundHandler<Object> {

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        System.out.println("channelActive");
        test(ctx.channel(), "normal_login", R_normal_login.j_username);

From source file com.digitalpetri.opcua.stack.client.handlers.UaTcpClientAsymmetricHandler.java

public class UaTcpClientAsymmetricHandler extends SimpleChannelInboundHandler<ByteBuf> implements HeaderDecoder {

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

    private List<ByteBuf> chunkBuffers = new ArrayList<>();

From source file com.dingwang.rpc.client.RpcClient.java

/**
 * RpcClient.java??TODO ??
 * 
 * @author wangding_91@163.com 2016222 ?4:22:51
 */
public class RpcClient extends SimpleChannelInboundHandler<RpcResponse> {

From source file com.dingwang.rpc.handler.ProviderProxy.java

/**
 * ProviderProxy.java??TODO ??
 * 
 * @author wangding_91@163.com 2016223 ?1:56:57
 */
public class ProviderProxy extends SimpleChannelInboundHandler<RpcRequest>

From source file com.dingwang.rpc.handler.RpcHandler.java

/**
 * RpcHandler.java??TODO ??
 * 
 * @author wangding_91@163.com 2016222 ?4:12:46
 */
public class RpcHandler extends SimpleChannelInboundHandler<RpcRequest> {

From source file com.dwarf.netty.guide.factorial.FactorialClientHandler.java

/**
 * Handler for a client-side channel.  This handler maintains stateful
 * information which is specific to a certain channel using member variables.
 * Therefore, an instance of this handler can cover only one channel.  You have
 * to create a new handler instance whenever you create a new channel and insert
 * this handler to avoid a race condition.

From source file com.dwarf.netty.guide.factorial.FactorialServerHandler.java

/**
 * 
 * Handler for a server-side channel.  This handler maintains stateful
 * information which is specific to a certain channel using member variables.
 * Therefore, an instance of this handler can cover only one channel.  You have
 * to create a new handler instance whenever you create a new channel and insert