List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage
From source file com.superman.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 = 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.superman.netty.localecho.LocalEchoServerHandler.java
public class LocalEchoServerHandler extends ChannelInboundHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) { // Write back as received ctx.write(msg);
From source file com.superman.netty.objectecho.ObjectEchoClientHandler.java
/** * Handler implementation for the object echo client. It initiates the * ping-pong traffic between the object echo client and server by sending the * first message to the server. */ public class ObjectEchoClientHandler extends ChannelInboundHandlerAdapter {
From source file com.superman.netty.objectecho.ObjectEchoServerHandler.java
/** * Handles both client-side and server-side handler depending on which * constructor was called. */ public class ObjectEchoServerHandler extends ChannelInboundHandlerAdapter {
From source file com.superman.netty.proxy.HexDumpProxyBackendHandler.java
public class HexDumpProxyBackendHandler extends ChannelInboundHandlerAdapter { private final Channel inboundChannel; public HexDumpProxyBackendHandler(Channel inboundChannel) { this.inboundChannel = inboundChannel;
From source file com.superman.netty.proxy.HexDumpProxyFrontendHandler.java
public class HexDumpProxyFrontendHandler extends ChannelInboundHandlerAdapter { private final String remoteHost; private final int remotePort; // As we use inboundChannel.eventLoop() when buildling the Bootstrap this does not need to be volatile as
From source file com.superman.netty.sctp.SctpEchoClientHandler.java
/** * Handler implementation for the SCTP echo client. It initiates the ping-pong * traffic between the echo client and server by sending the first message to * the server. */ public class SctpEchoClientHandler extends ChannelInboundHandlerAdapter {
From source file com.superman.netty.sctp.SctpEchoServerHandler.java
/** * Handler implementation for the SCTP echo server. */ @Sharable public class SctpEchoServerHandler extends ChannelInboundHandlerAdapter {
From source file com.superman.netty.socksproxy.DirectClientHandler.java
public final class DirectClientHandler extends ChannelInboundHandlerAdapter { private final Promise<Channel> promise; public DirectClientHandler(Promise<Channel> promise) { this.promise = promise;
From source file com.superman.netty.socksproxy.RelayHandler.java
public final class RelayHandler extends ChannelInboundHandlerAdapter { private final Channel relayChannel; public RelayHandler(Channel relayChannel) { this.relayChannel = relayChannel;