List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage
From source file com.look.netty.demo.upload.HttpUploadClientHandler.java
/** * Handler that just dumps the contents of the response from the server */ public class HttpUploadClientHandler extends SimpleChannelInboundHandler<HttpObject> { private boolean readingChunks;
From source file com.look.netty.demo.upload.HttpUploadServerHandler.java
public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObject> { private static final Logger logger = Logger.getLogger(HttpUploadServerHandler.class.getName()); private HttpRequest request;
From source file com.look.netty.demo.worldclock.WorldClockClientHandler.java
public class WorldClockClientHandler extends SimpleChannelInboundHandler<WorldClockProtocol.LocalTimes> { private static final Pattern DELIM = Pattern.compile("/"); // Stateful properties private volatile Channel channel;
From source file com.look.netty.demo.worldclock.WorldClockServerHandler.java
public class WorldClockServerHandler extends SimpleChannelInboundHandler<Locations> { @Override public void channelRead0(ChannelHandlerContext ctx, Locations locations) throws Exception { long currentTime = System.currentTimeMillis();
From source file com.loudsight.utilities.websocket.WebSocketClientHandler.java
public class WebSocketClientHandler extends SimpleChannelInboundHandler<Object> { private final WebSocketClientHandshaker handshaker; private ChannelPromise handshakeFuture; private WebSocketClient.Listener listener;
From source file com.lubbo.core.network.netty.ChannelProcessor.java
/**
* Channel??
*
* @author mozhu
*
* @param <I>
From source file com.lufs.preresearch.nettyrouter.playground.HttpHelloWorldServerHandler.java
public class HttpHelloWorldServerHandler extends SimpleChannelInboundHandler<FullHttpRequest> { private Router<MethodHandle> router; public HttpHelloWorldServerHandler(Router<MethodHandle> router) { this.router = router; }
From source file com.lunex.inputprocessor.testdemo.HttpSnoopClientHandler.java
public class HttpSnoopClientHandler extends SimpleChannelInboundHandler<HttpObject> { @Override public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Exception { if (msg instanceof HttpResponse) { HttpResponse response = (HttpResponse) msg;
From source file com.lunex.inputprocessor.testdemo.QuoteOfTheMomentClientHandler.java
public class QuoteOfTheMomentClientHandler extends SimpleChannelInboundHandler<DatagramPacket> { @Override public void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception { String response = msg.content().toString(CharsetUtil.UTF_8); if (response.startsWith("QOTM: ")) {
From source file com.lunex.inputprocessor.testdemo.QuoteOfTheMomentServerHandler.java
public class QuoteOfTheMomentServerHandler extends SimpleChannelInboundHandler<DatagramPacket> { private static final Random random = new Random(); // Quotes from Mohandas K. Gandhi: private static final String[] quotes = { "Where there is love there is life.",