List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage
From source file com.sangupta.swift.netty.proxy.ProxyFrontendHandler.java
/** * * @author sangupta * */ public class ProxyFrontendHandler extends ChannelInboundHandlerAdapter {
From source file com.seed.nettyechoserver.EchoServerHandler.java
public class EchoServerHandler extends ChannelInboundHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) { ctx.write(msg); }
From source file com.sheldon.javaPrj.netty.DiscardServerHandler.java
/** * * @author xiangnan.wang@ipinyou.com */ public class DiscardServerHandler extends ChannelInboundHandlerAdapter {
From source file com.sheldon.javaPrj.netty.FileClientHandler.java
/** * * @author xiangnan.wang@ipinyou.com */ public class FileClientHandler extends ChannelInboundHandlerAdapter {
From source file com.sheldon.javaPrj.netty.TimeClientHandler.java
/** * * @author xiangnan.wang@ipinyou.com */ public class TimeClientHandler extends ChannelInboundHandlerAdapter {
From source file com.sheldon.javaPrj.netty.TimeServerHandler.java
/** * * @author xiangnan.wang@ipinyou.com */ public class TimeServerHandler extends ChannelInboundHandlerAdapter {
From source file com.shiyq.netty.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 = AsciiString.cached("Content-Type"); private static final AsciiString CONTENT_LENGTH = AsciiString.cached("Content-Length"); private static final AsciiString CONNECTION = AsciiString.cached("Connection");
From source file com.shouxun.server.netty.tcp.EchoServerHandler.java
/** * Handler implementation for the echo server. */ @SuppressWarnings("deprecation") @Sharable public class EchoServerHandler extends ChannelInboundHandlerAdapter {
From source file com.shun.liu.quickserver.socksproxy.DirectClientHandler.java
/**
* if(msg instanceof ByteBuf){
ByteBuf temp = (ByteBuf)msg;
System.out.print(temp.retain().toString(CharsetUtil.UTF_8));
}
*/
From source file com.shun.liu.quickserver.socksproxy.RelayHandler.java
public final class RelayHandler extends ChannelInboundHandlerAdapter { private final Channel relayChannel; public RelayHandler(Channel relayChannel) { this.relayChannel = relayChannel;