io.netty.handler.codec.MessageAggregator.class Maven / Gradle / Ivy
???? 2[ (io/netty/handler/codec/MessageAggregator ?Lio/netty/handler/codec/MessageToMessageDecoder; .io/netty/handler/codec/MessageToMessageDecoder MessageAggregator.java *io/netty/handler/codec/MessageAggregator$1 &DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS I maxContentLength currentMessage Lio/netty/buffer/ByteBufHolder; TO; handlingOversizedMessage Z maxCumulationBufferComponents ctx (Lio/netty/channel/ChannelHandlerContext; continueResponseWriteListener (Lio/netty/channel/ChannelFutureListener; (I)V ()V
validateMaxContentLength
! this 8Lio/netty/handler/codec/MessageAggregator; *Lio/netty/handler/codec/MessageAggregator; (ILjava/lang/Class;)V (Ljava/lang/Class;)V '
( inboundMessageType Ljava/lang/Class<+TI;>; Ljava/lang/Class; "java/lang/IllegalArgumentException - java/lang/StringBuilder /
0 maxContentLength: 2 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 4 5
0 6 (I)Ljava/lang/StringBuilder; 4 8
0 9 (expected: >= 0) ; toString ()Ljava/lang/String; = >
0 ? (Ljava/lang/String;)V A
. B acceptInboundMessage (Ljava/lang/Object;)Z java/lang/Exception F D E
H isContentMessage J E
K isStartMessage M E
N java/lang/Object P isAggregated R E
S msg Ljava/lang/Object; in TI; isLastContentMessage "(Lio/netty/buffer/ByteBufHolder;)Z ()I setMaxCumulationBufferComponents maxCumulationBufferComponents: ] (expected: >= 2) _ a java/lang/IllegalStateException c Mdecoder properties cannot be changed once the decoder is added to a pipeline. e
d B isHandlingOversizedMessage ()Z Ljava/lang/Deprecated; k *()Lio/netty/channel/ChannelHandlerContext; not added to a pipeline yet n decode M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V
r io/netty/buffer/ByteBufHolder t release v i u w 2io/netty/handler/codec/MessageAggregationException y
z &io/netty/channel/ChannelHandlerContext | pipeline $()Lio/netty/channel/ChannelPipeline; ~ } ? newContinueResponse I(Ljava/lang/Object;ILio/netty/channel/ChannelPipeline;)Ljava/lang/Object; ? ?
? ? U(Lio/netty/handler/codec/MessageAggregator;Lio/netty/channel/ChannelHandlerContext;)V ?
? &io/netty/channel/ChannelFutureListener ? closeAfterContinueResponse ? E
? "ignoreContentAfterContinueResponse ? E
?
writeAndFlush 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture; ? ? } ? io/netty/channel/ChannelFuture ? addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; ? ? ? ? CLOSE ? ? ? isContentLengthInvalid (Ljava/lang/Object;I)Z ? ?
? invokeHandleOversizedMessage =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V ? ?
? ,io/netty/handler/codec/DecoderResultProvider ?
decoderResult (()Lio/netty/handler/codec/DecoderResult; ? ? ? ? $io/netty/handler/codec/DecoderResult ? isSuccess ? i
? ? content ()Lio/netty/buffer/ByteBuf; ? ? u ? io/netty/buffer/ByteBuf ?
isReadable ? i
? ? retain ? ?
? ? beginAggregation L(Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBufHolder; ? ?
? io/netty/buffer/Unpooled ? EMPTY_BUFFER Lio/netty/buffer/ByteBuf; ? ? ? ? finishAggregation "(Lio/netty/buffer/ByteBufHolder;)V ? ?
? java/util/List ? add ? E ? ? alloc $()Lio/netty/buffer/ByteBufAllocator; ? ? } ? io/netty/buffer/ByteBufAllocator ? compositeBuffer %(I)Lio/netty/buffer/CompositeByteBuf; ? ? ? ? appendPartialContent >(Lio/netty/buffer/CompositeByteBuf;Lio/netty/buffer/ByteBuf;)V ? ?
? io/netty/buffer/CompositeByteBuf ?
readableBytes ? [
? ?
? ? aggregate A(Lio/netty/buffer/ByteBufHolder;Lio/netty/buffer/ByteBufHolder;)V ? ?
? cause ()Ljava/lang/Throwable; ? ?
? ? failure =(Ljava/lang/Throwable;)Lio/netty/handler/codec/DecoderResult; ? ?
? ? setDecoderResult )(Lio/netty/handler/codec/DecoderResult;)V ? ? ? ? Y Z
? listener closeAfterWrite future Lio/netty/channel/ChannelFuture;
aggregated m TS; continueResponse "Lio/netty/buffer/CompositeByteBuf; s last &Lio/netty/handler/codec/DecoderResult; TC; out $Ljava/util/List; Ljava/util/List; addComponent >(ZLio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf;
?
partialContent handleOversizedMessage
?
io/netty/util/ReferenceCountUtil v E
java/lang/Throwable oversized ,io/netty/handler/codec/TooLongFrameException content length exceeded [
bytes.
B fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext; ! }" channelReadComplete +(Lio/netty/channel/ChannelHandlerContext;)V channel ()Lio/netty/channel/Channel;&' }( io/netty/channel/Channel* config "()Lio/netty/channel/ChannelConfig;,-+. io/netty/channel/ChannelConfig0
isAutoRead2 i13 read5 m }6 fireChannelReadComplete8 m }9 channelInactive;%
< releaseCurrentMessage>
? handlerAdded handlerRemovedB%
C
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable (ILjava/lang/Class<+TI;>;)V
StackMapTable
Exceptions (TI;)Z (TC;)Z
Deprecated RuntimeVisibleAnnotations R(Lio/netty/channel/ChannelHandlerContext;TI;Ljava/util/List;)V (TS;I)Z :(TS;ILio/netty/channel/ChannelPipeline;)Ljava/lang/Object; !(TS;Lio/netty/buffer/ByteBuf;)TO; (TO;TC;)V (TO;)V .(Lio/netty/channel/ChannelHandlerContext;TS;)V
SourceFile InnerClasses!
E
F
G k *? * ? ? *? "? H # %
I # $ J H <