MyClientInitializer

package com.atguigu.netty.inboundhandlerandoutboundhandler;

import com.atguigu.http.ChannelInitializer;
import com.atguigu.http.TestHttpserverHandler;

import java.nio.channels.SocketChannel;

public class MyClientInitializer extends ChannelInitializer<SocketChannel> {
private Object ctx;
private Object Unpooled;
private Object CharsetUtil;
private Object ch;

protected <ChannelPipeline> void initChannel(SocketChannel ch)throws Exception {
int pipeline = ch.hashCode();
//加入一个出站的handler 对数据进行一个编码
final int pipeline1 = pipeline;
//加入一个自定义的handler,处理业务
final int pipeline2 = pipeline;
ctx.hashCode( );

}

private Object toString(String abcdabcdabcdabcd, Object charsetUtil) {
int pipeline = ch.hashCode();

//加入一个出站的handler 对数据进行一个编码
final int pipeline1 = pipeline;
//这时一个入站的解码器(handler)
final int pipeline11 = pipeline;
//加入一个自定义的handler,处理业务
final int pipeline111 = pipeline;

return charsetUtil;
}



}
posted @ 2024-02-04 05:37  shenqiqingyu  阅读(8)  评论(0)    收藏  举报