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 com.ixortalk.nifi.processors.gettcp.TcpClientHandler.java

@Sharable
public class TcpClientHandler extends SimpleChannelInboundHandler<Object> {

    public static final int POLLING_TIMEOUT_IN_MS = 100;
    private final GetTCP client;
    private final int reconnectDelayInSeconds;

From source file com.izhengyin.protocol.websocket.WebSocketServerHandler.java

public class WebSocketServerHandler extends SimpleChannelInboundHandler<WebSocketFrame> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, WebSocketFrame frame) throws Exception {

        if (frame instanceof TextWebSocketFrame) {

From source file com.jacky.netty.file.FileServerHandler.java

public class FileServerHandler extends SimpleChannelInboundHandler<String> {

    @Override
    public void channelActive(ChannelHandlerContext ctx) {
        ctx.writeAndFlush("HELO: Type the path of the file to retrieve.\n");
    }

From source file com.jansegre.jwar.webapi.FileServerHandler.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>.
 * <p/>

From source file com.jason.netty.file.FileServerHandler.java

/**
 * ??
 *
 * @author <a href="http://www.waylau.com">waylau.com</a> 2015115
 */
public class FileServerHandler extends SimpleChannelInboundHandler<String> {

From source file com.jcin.cms.game.LocalEchoClientHandler.java

public class LocalEchoClientHandler extends SimpleChannelInboundHandler<Object> {

    @Override
    public void messageReceived(ChannelHandlerContext ctx, Object msg) {
        // Print as received
        System.out.println(msg);

From source file com.jcm.auto.sys.analyze.SiteParserHandler.java

public class SiteParserHandler extends SimpleChannelInboundHandler<HttpObject> {

    // handler
    private final Site site;
    //   private ByteBuf contentBuf = null;
    private final StringBuffer sb = new StringBuffer();

From source file com.jin.jlg.netty.websock.WebSocketFrameHandler.java

/**
 * Echoes uppercase content of text frames.
 */
public class WebSocketFrameHandler extends SimpleChannelInboundHandler<WebSocketFrame> {

    private static final Logger logger = LoggerFactory.getLogger(WebSocketFrameHandler.class);

From source file com.jin.jlg.netty.websock.WebSocketIndexPageHandler.java

/**
 * Outputs index page content.
 */
public class WebSocketIndexPageHandler extends SimpleChannelInboundHandler<FullHttpRequest> {

    private final String websocketPath;

From source file com.jjneko.jjnet.networking.http.client.WebSocketClientHandler.java

public class WebSocketClientHandler extends SimpleChannelInboundHandler<Object> {

    private final WebSocketClientHandshaker handshaker;
    private ChannelPromise handshakeFuture;
    private Pipe pipe;