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.cmz.http.websocketx.server.WebSocketIndexPageHandler.java

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

    private final String websocketPath;

From source file com.cmz.rxtx.RxtxClientHandler.java

public class RxtxClientHandler extends SimpleChannelInboundHandler<String> {

    @Override
    public void channelActive(ChannelHandlerContext ctx) {
        ctx.writeAndFlush("AT\n");
    }

From source file com.cmz.securechat.SecureChatClientHandler.java

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

    @Override

From source file com.cmz.securechat.SecureChatServerHandler.java

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

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

From source file com.cmz.stomp.StompClientHandler.java

/**
 * STOMP client inbound handler implementation, which just passes received messages to listener
 */
public class StompClientHandler extends SimpleChannelInboundHandler<StompFrame> {

    private enum ClientState {

From source file com.cmz.uptime.UptimeClientHandler.java

/**
 * Keep reconnecting to the server while printing out the current uptime and
 * connection attempt getStatus.
 */
@Sharable
public class UptimeClientHandler extends SimpleChannelInboundHandler<Object> {

From source file com.codeabovelab.dm.platform.http.async.NettyResponseHandler.java

/**
 */
class NettyResponseHandler extends SimpleChannelInboundHandler<HttpObject> {

    private final SettableListenableFuture<ClientHttpResponse> responseFuture;
    private final ChunkedInputStream<ByteBufHolder> in = new ChunkedInputStream<>(ByteBufHolderAdapter.INSTANCE);

From source file com.codebullets.external.party.simulator.connections.websocket.inbound.NettyWebSocketServerHandler.java

/**
 * Handles web socket frames being received.<p/>
 * Parts of this class are based on the WebSocketServerHandler class from netty examples.
 */
public class NettyWebSocketServerHandler extends SimpleChannelInboundHandler<Object> {
    private static final Logger LOG = LoggerFactory.getLogger(NettyWebSocketServerHandler.class);

From source file com.codebullets.external.party.simulator.connections.websocket.outbound.NettyWebSocketClientHandler.java

/**
 * Handler performing web socket handshake.
 */
public class NettyWebSocketClientHandler extends SimpleChannelInboundHandler<Object> {
    private static final Logger LOG = LoggerFactory.getLogger(NettyWebSocketClientHandler.class);

From source file com.company.product.test.http.HttpServerHandler.java

public class HttpServerHandler extends SimpleChannelInboundHandler<Object> {

    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) {
        ctx.flush();
    }