List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage
From source file com.github.nettybook.ch7.junit.TelnetServerHandlerNetty.java
/** * Handles a server-side channel. */ @Sharable public class TelnetServerHandlerNetty extends SimpleChannelInboundHandler<String> {
From source file com.github.nettybook.ch7.junit.TelnetServerHandlerV3.java
/** * Handles a server-side channel. */ @Sharable @Slf4j public class TelnetServerHandlerV3 extends SimpleChannelInboundHandler<String> {
From source file com.github.nettybook.ch8.HttpSnoopServerHandler.java
@SuppressWarnings("deprecation") 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.github.nettybook.ch8.TelnetServerHandler.java
/** * Handles a server-side channel. */ @Sharable public class TelnetServerHandler extends SimpleChannelInboundHandler<String> { @Override
From source file com.github.picto.network.exemple.HttpSnoopClientHandler.java
public class HttpSnoopClientHandler extends SimpleChannelInboundHandler<HttpObject> { private AtomicBoolean shouldEnd; public HttpSnoopClientHandler(AtomicBoolean shouldEnd) { super();
From source file com.github.rmannibucau.featuredmock.http.FeaturedHandler.java
@ChannelHandler.Sharable class FeaturedHandler extends SimpleChannelInboundHandler<FullHttpRequest> implements Extensions { private final ContentTypeMapper[] mappers; public FeaturedHandler(final ContentTypeMapper[] mappers) { this.mappers = mappers;
From source file com.github.rodbate.qotm.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.github.rodbate.qotm.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.",
From source file com.github.sinsinpub.pero.backend.ConnectBackendHandler.java
@PetiteBean("connectBackendHandler") @Component("connectBackendHandler") @Singleton @ChannelHandler.Sharable public final class ConnectBackendHandler extends SimpleChannelInboundHandler<SocksCmdRequest> {
From source file com.github.sinsinpub.pero.frontend.SocksServerHandler.java
@PetiteBean @Component @Singleton @ChannelHandler.Sharable public final class SocksServerHandler extends SimpleChannelInboundHandler<SocksRequest> {