List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage
From source file com.wq.wqchat.netty.udp.UDPChannelHandler.java
@ChannelHandler.Sharable public final class UDPChannelHandler extends ChannelInboundHandlerAdapter { private static final Logger LOGGER = LoggerFactory.getLogger(UDPChannelHandler.class); private final NettyConnection connection = new NettyConnection(); private final PacketReceiver receiver; private InetAddress multicastAddress;
From source file com.wuma.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.xiovr.unibot.bot.network.impl.ClientConnectionHandlerImpl.java
public class ClientConnectionHandlerImpl extends ChannelInboundHandlerAdapter implements ClientConnectionHandler // SimpleChannelInboundHandler<Packet> implements ServerConnectionHandler { { private static final Logger logger = LoggerFactory.getLogger(ClientConnectionHandlerImpl.class); private List<BotContext> proxyBots; private BotContext botContext;
From source file com.xiovr.unibot.bot.network.impl.ServerConnectionHandlerImpl.java
public class ServerConnectionHandlerImpl extends ChannelInboundHandlerAdapter implements ServerConnectionHandler // SimpleChannelInboundHandler<Packet> implements ServerConnectionHandler { { private static final Logger logger = LoggerFactory.getLogger(ServerConnectionHandlerImpl.class); private BotContext botContext; private RingBufferPool<Packet> readBufPool;
From source file com.xiovr.unibot.utils.EchoServerHandler.java
public class EchoServerHandler extends ChannelInboundHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) { ctx.write(msg); }
From source file com.xmpp.push.androidpn.server.xmpp.handler.XMPPDecodeHandler.java
/** * XEP-0114 Stream Decoder. */ public class XMPPDecodeHandler extends ChannelInboundHandlerAdapter { private final static Logger LOG = LoggerFactory.getLogger(XMPPDecodeHandler.class);
From source file com.xmpp.push.androidpn.server.xmpp.handler.XMPPHandler.java
/** * Handles XMPP Stanzas. */ public class XMPPHandler extends ChannelInboundHandlerAdapter { private final String serverName;
From source file com.xxx.demo.netty.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.xxx.demo.netty.echo.EchoServerHandler.java
/** * Handler implementation for the echo server. */ @Sharable public class EchoServerHandler extends ChannelInboundHandlerAdapter {
From source file com.xxx.util.io.client.netty.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 {