Example usage for io.netty.channel SimpleChannelInboundHandler subclass-usage

List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel SimpleChannelInboundHandler subclass-usage.

Usage

From source file SecureChatServerHandler.java

/**
 * Handles a server-side channel.
 */
public class SecureChatServerHandler extends SimpleChannelInboundHandler<String> {

    static final ChannelGroup channels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);

From source file EchonewServerHandler.java

/**
 */
public class EchonewServerHandler extends SimpleChannelInboundHandler {
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, Object o) throws Exception {
        System.out.println("ready to flush" + o.toString());
        channelHandlerContext.writeAndFlush(o);

From source file WorldClockServerHandler.java

public class WorldClockServerHandler extends SimpleChannelInboundHandler<PackageInformation> {

    private static final Logger logger = Logger.getLogger(WorldClockServerHandler.class.getName());

    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {

From source file WebSocketFrameHandler.java

/**
 * Echoes back time stamp, ports used, server identification (tag), and received text.
 * @version 28.4.2016
 *
 */
public class WebSocketFrameHandler extends SimpleChannelInboundHandler<WebSocketFrame> {

From source file WorldClockClientHandler.java

public class WorldClockClientHandler extends SimpleChannelInboundHandler<PackageInformation> {

    private static final Logger logger = Logger.getLogger(WorldClockClientHandler.class.getName());

    private static final Pattern DELIM = Pattern.compile("/");

From source file 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 TelnetClientHandler.java

/**
 * Handles a client-side channel.
 */
@Sharable
public class TelnetClientHandler extends SimpleChannelInboundHandler<String> {

From source file HelloWorldHttp1Handler.java

/**
 * HTTP handler that responds with a "Hello World"
 */
public class HelloWorldHttp1Handler extends SimpleChannelInboundHandler<HttpRequest> {

    @Override

From source file IncommingPacketHandler.java

public class IncommingPacketHandler extends SimpleChannelInboundHandler<DatagramPacket> {
    ActorRef msgProcessor = null;
    ActorRef decoder = null;
    ActorRef discoveryActor = null;

    public IncommingPacketHandler() {

From source file IncommingPacketFSMHandler.java

public class IncommingPacketFSMHandler extends SimpleChannelInboundHandler<DatagramPacket> {
    ActorRef msgProcessor = null;

    public IncommingPacketFSMHandler() {

    }