List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage
From source file demo.netty.stickypacket.err.TimeServerHandler.java
public class TimeServerHandler extends ChannelInboundHandlerAdapter { private int counter; @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
From source file devices.android.bootstrap.server.netty.ServerHandler.java
public class ServerHandler extends ChannelInboundHandlerAdapter { private final static Logger LOGGER = Logger.getLogger(ServerHandler.class.getName()); private List<HttpServlet> httpHandlers; public ServerHandler(List<HttpServlet> handlers) { this.httpHandlers = handlers;
From source file discord4j.common.close.CloseHandlerAdapter.java
public class CloseHandlerAdapter extends ChannelInboundHandlerAdapter { private final AtomicReference<CloseStatus> closeStatus; private final Logger log; public CloseHandlerAdapter(AtomicReference<CloseStatus> closeStatus, Logger log) {
From source file divconq.ctp.net.CtpHandler.java
public class CtpHandler extends ChannelInboundHandlerAdapter implements ICtpChannel { protected CtpAdapter adapter = null; protected ChannelHandlerContext chan = null; protected boolean serverMode = true; protected ByteBuf remnant = null;
From source file divconq.net.ByteToMessageDecoder.java
/**
* {@link ChannelInboundHandlerAdapter} which decodes bytes in a stream-like fashion from one {@link ByteBuf} to an
* other Message type.
*
* For example here is an implementation which reads all readable bytes from
* the input {@link ByteBuf} and create a new {@link ByteBuf}.
From source file dorkbox.network.connection.ConnectionImpl.java
/** * The "network connection" is established once the registration is validated for TCP/UDP */ @SuppressWarnings("unused") @Sharable public class ConnectionImpl extends ChannelInboundHandlerAdapter
From source file dorkbox.network.connection.registration.RegistrationHandler.java
@Sharable public abstract class RegistrationHandler extends ChannelInboundHandlerAdapter { protected static final String CONNECTION_HANDLER = "connection"; protected final RegistrationWrapper registrationWrapper; protected final org.slf4j.Logger logger;
From source file 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 echo.EchoServerHandler.java
/** * Handler implementation for the echo server. */ @Sharable public class EchoServerHandler extends ChannelInboundHandlerAdapter {