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 books.netty.protocol.websocket.server.WebSocketServerHandler.java

/**
 * @author lilinfeng
 * @version 1.0
 * @date 2014214
 */
public class WebSocketServerHandler extends SimpleChannelInboundHandler<Object> {

From source file books.netty.ssl.SecureChatClientHandler.java

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

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

From source file books.netty.ssl.SecureChatServerHandler.java

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

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

From source file buildcraft.core.lib.network.base.PacketHandler.java

@Sharable
public final class PacketHandler extends SimpleChannelInboundHandler<Packet> {
    /** A massive negative number. Close to {@link Integer#MIN_VALUE} to reduce the likelyhood of this being a valid dim
     * ID in another mod. */
    public static final int INVALID_DIM_ID = Integer.MIN_VALUE + 10;

From source file buildcraft.core.lib.network.PacketHandler.java

@Sharable
public class PacketHandler extends SimpleChannelInboundHandler<Packet> {
    private void onTileUpdate(EntityPlayer player, PacketTileUpdate packet) throws IOException {
        World world = player.worldObj;

        if (!packet.targetExists(world)) {

From source file buildcraft.core.network.PacketHandler.java

@Sharable
public class PacketHandler extends SimpleChannelInboundHandler<BuildCraftPacket> {
    private void onTileUpdate(EntityPlayer player, PacketTileUpdate packet) throws IOException {
        World world = player.worldObj;

        if (!packet.targetExists(world)) {

From source file buildcraft.factory.network.PacketHandlerFactory.java

@Sharable
public class PacketHandlerFactory extends SimpleChannelInboundHandler<BuildCraftPacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, BuildCraftPacket packet) {
        try {

From source file buildcraft.silicon.network.PacketHandlerSilicon.java

@Sharable
public class PacketHandlerSilicon extends SimpleChannelInboundHandler<BuildCraftPacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, BuildCraftPacket packet) {
        try {

From source file buildcraft.transport.network.PacketHandlerTransport.java

@Sharable
public class PacketHandlerTransport extends SimpleChannelInboundHandler<BuildCraftPacket> {

    /**
     * TODO: A lot of this is based on the player to retrieve the world.
     * Passing a dimension id would be more appropriate. More generally, it

From source file bzh.ygu.fun.chitchat.HttpChitChatServerHandler.java

public class HttpChitChatServerHandler extends SimpleChannelInboundHandler<Object> {

    private HttpRequest request;
    /** Buffer that stores the response content */
    private final StringBuilder buf = new StringBuilder();
    private final StringBuilder contentBuf = new StringBuilder();