Package io.netty.handler.codec

Examples of io.netty.handler.codec.DecoderException


    @Override
    public void exceptionCaught(final ChannelHandlerContext context, final Throwable cause) {
      this.rejectFutureNotifications = true;

      if (cause instanceof DecoderException) {
        final DecoderException decoderException = (DecoderException)cause;

        if (decoderException.getCause() instanceof ApnsDecoderException) {
          if (this.server.shouldSendErrorResponses()) {
            final ApnsDecoderException apnsDecoderException = (ApnsDecoderException)decoderException.getCause();
            final RejectedNotification rejectedNotification =
                new RejectedNotification(apnsDecoderException.sequenceNumber, apnsDecoderException.reason);

            context.writeAndFlush(rejectedNotification).addListener(ChannelFutureListener.CLOSE);
          }
View Full Code Here


import java.util.List;

public final class ChunkBulkCodec implements Codec<ChunkBulkMessage> {
    @Override
    public ChunkBulkMessage decode(ByteBuf buffer) throws IOException {
        throw new DecoderException("Cannot decode ChunkBulkMessage");
    }
View Full Code Here

import java.io.IOException;

public final class EntityRotationCodec implements Codec<EntityRotationMessage> {
    @Override
    public EntityRotationMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode EntityRotationMessage");
    }
View Full Code Here

import java.io.IOException;

public final class RelativeEntityPositionRotationCodec implements Codec<RelativeEntityPositionRotationMessage> {
    @Override
    public RelativeEntityPositionRotationMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode RelativeEntityPositionRotationMessage");
    }
View Full Code Here

import java.io.IOException;

public final class EntityHeadRotationCodec implements Codec<EntityHeadRotationMessage> {
    @Override
    public EntityHeadRotationMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode EntityHeadRotationMessage");
    }
View Full Code Here

import java.io.IOException;

public final class EntityMetadataCodec implements Codec<EntityMetadataMessage> {
    @Override
    public EntityMetadataMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode EntityMetadataMessage");
    }
View Full Code Here

import java.io.IOException;

public final class EntityTeleportCodec implements Codec<EntityTeleportMessage> {
    @Override
    public EntityTeleportMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode EntityTeleportMessage");
    }
View Full Code Here

import java.io.IOException;

public final class SpawnLightningStrikeCodec implements Codec<SpawnLightningStrikeMessage> {
    @Override
    public SpawnLightningStrikeMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode SpawnLightningStrikeMessage");
    }
View Full Code Here

import java.io.IOException;

public final class TabCompleteResponseCodec implements Codec<TabCompleteResponseMessage> {
    @Override
    public TabCompleteResponseMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode TabCompleteResponseMessage");
    }
View Full Code Here

import java.util.Map;

public final class StatisticCodec implements Codec<StatisticMessage> {
    @Override
    public StatisticMessage decode(ByteBuf buf) throws IOException {
        throw new DecoderException("Cannot decode StatisticMessage");
    }
View Full Code Here

TOP

Related Classes of io.netty.handler.codec.DecoderException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.