List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage
From source file com.dwarf.netty.guide.http.snoop.HttpSnoopClientHandler.java
public class HttpSnoopClientHandler extends SimpleChannelInboundHandler<HttpObject> { @Override public void messageReceived(ChannelHandlerContext ctx, HttpObject msg) { if (msg instanceof HttpResponse) { HttpResponse response = (HttpResponse) msg;
From source file com.dwarf.netty.guide.http.snoop.HttpSnoopServerHandler.java
public class HttpSnoopServerHandler extends SimpleChannelInboundHandler<Object> { private HttpRequest request; /** Buffer that stores the response content */ private final StringBuilder buf = new StringBuilder();
From source file com.dwarf.netty.guide.securechat.SecureChatClientHandler.java
/** * Handles a client-side channel. */ public class SecureChatClientHandler extends SimpleChannelInboundHandler<String> { @Override
From source file com.dwarf.netty.guide.securechat.SecureChatServerHandler.java
/** * Handles a server-side channel. */ public class SecureChatServerHandler extends SimpleChannelInboundHandler<String> { //?channel
From source file com.dwarf.netty.guide.uptime.UptimeClientHandler.java
/** * Keep reconnecting to the server while printing out the current uptime and * connection attempt getStatus. */ @Sharable public class UptimeClientHandler extends SimpleChannelInboundHandler<Object> {
From source file com.dwarf.netty.guide.worldclock.WorldClockClientHandler.java
public class WorldClockClientHandler extends SimpleChannelInboundHandler<LocalTimes> { private static final Pattern DELIM = Pattern.compile("/"); // Stateful properties private volatile Channel channel;
From source file com.dwarf.netty.guide.worldclock.WorldClockServerHandler.java
public class WorldClockServerHandler extends SimpleChannelInboundHandler<Locations> { @Override public void messageReceived(ChannelHandlerContext ctx, Locations locations) { long currentTime = System.currentTimeMillis();
From source file com.e2e.management.HttpSocketHandler.java
/**
* A simple handler that serves incoming HTTP requests to send their respective
* HTTP responses. It also implements {@code 'If-Modified-Since'} header to
* take advantage of browser cache, as described in
* <a href="http://tools.ietf.org/html/rfc2616#section-14.25">RFC 2616</a>.
*
From source file com.earasoft.framework.http.WebSocketServerHandler.java
/**
* Handles handshakes and messages
*
* A simple handler that serves incoming HTTP requests to send their respective
* HTTP responses. It also implements {@code 'If-Modified-Since'} header to
* take advantage of browser cache, as described in
From source file com.elephant.framework.network.telnet.netty.TelnetClientHandler.java
/** * Handles a client-side channel. */ @Sharable public class TelnetClientHandler extends SimpleChannelInboundHandler<String> {