![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.handler.codec.haproxy.HAProxyMessageDecoder.class Maven / Gradle / Ivy
The newest version!
???? 29
?
?
? ? ?
? ?
?
B ? ? ? ?
? ?'
? ?
? ? ?
? ?
? ?
? ?
? ?
B ? ? ? ? ? ?
?
?
? ? ?
? ?
? ? ? ?
? ? ?
? ? ?
' ?
F ? ?
* ?
? ? ?
- ? ?
- ? ?
- ?
- ?
- ? ? ?
$ ?
$ ?
$ ?
$ ?
? ? ? ? ?
? ? ? ?
? ? StructHeaderExtractor InnerClasses LineHeaderExtractor HeaderExtractor
V1_MAX_LENGTH I
ConstantValue l
V2_MAX_LENGTH
V2_MIN_LENGTH ?
V2_MAX_TLV
BINARY_PREFIX [B TEXT_PREFIX BINARY_PREFIX_LENGTH DETECTION_RESULT_V1 0Lio/netty/handler/codec/ProtocolDetectionResult; Signature iLio/netty/handler/codec/ProtocolDetectionResult; DETECTION_RESULT_V2 headerExtractor FLio/netty/handler/codec/haproxy/HAProxyMessageDecoder$HeaderExtractor;
discarding Z discardedBytes failFast finished version v2MaxHeaderSize ()V Code LineNumberTable LocalVariableTable this 6Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder; (Z)V (I)V
maxTlvSize (IZ)V calcMax
StackMapTable ? findVersion (Lio/netty/buffer/ByteBuf;)I buffer Lio/netty/buffer/ByteBuf; n idx findEndOfHeader offset totalHeaderBytes
findEndOfLine b B i isSingleDecode ()Z channelRead =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/Object;
Exceptions decode T(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V decoded e 9Lio/netty/handler/codec/haproxy/HAProxyProtocolException; in out Ljava/util/List; LocalVariableTypeTable $Ljava/util/List; ? h(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V decodeStruct \(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
decodeLine
failOverLimit ,(Lio/netty/channel/ChannelHandlerContext;I)V length =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V Ljava/lang/String; maxLength fail R(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;Ljava/lang/Exception;)V ppex errMsg Ljava/lang/Exception; detectProtocol K(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/ProtocolDetectionResult; ?(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/ProtocolDetectionResult; match ([BLio/netty/buffer/ByteBuf;I)Z prefix
access$000 9(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;)Z x0
access$100 b(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;Lio/netty/channel/ChannelHandlerContext;I)V x1 x2
access$202 :(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;I)I
access$002 :(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;Z)Z
access$300
access$200 9(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;)I
access$400 s(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V
access$500
access$600
SourceFile HAProxyMessageDecoder.java v q y q ? ? ^ \ ] I ? ? [ \ b i b c ` I 4io/netty/handler/codec/haproxy/HAProxyMessageDecoder a I b l P Q ? ? S I
? _ \ p q ? ? ? ? 7io/netty/handler/codec/haproxy/HAProxyProtocolException ? ? Y Z Jio/netty/handler/codec/haproxy/HAProxyMessageDecoder$StructHeaderExtractor b ! ? Hio/netty/handler/codec/haproxy/HAProxyMessageDecoder$LineHeaderExtractor"#$ java/lang/StringBuilder header length (%& ) exceeds the allowed maximum (%'%()*+ b, b- b./01 X U R Q T U213456785 +io/netty/handler/codec/ByteToMessageDecoder Dio/netty/handler/codec/haproxy/HAProxyMessageDecoder$HeaderExtractor java/lang/Exception io/netty/buffer/ByteBuf
readableBytes ()I readerIndex getByte (I)B getUnsignedShort (I)I writerIndex &io/netty/channel/ChannelHandlerContext pipeline $()Lio/netty/channel/ChannelPipeline; io/netty/channel/ChannelPipeline remove E(Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline; io/netty/util/CharsetUtil US_ASCII Ljava/nio/charset/Charset; toString .(Ljava/nio/charset/Charset;)Ljava/lang/String; -io/netty/handler/codec/haproxy/HAProxyMessage decodeHeader C(Ljava/lang/String;)Lio/netty/handler/codec/haproxy/HAProxyMessage; java/util/List add (Ljava/lang/Object;)Z J(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/haproxy/HAProxyMessage; :(Lio/netty/handler/codec/haproxy/HAProxyMessageDecoder;I)V extract java/lang/String valueOf (I)Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; ()Ljava/lang/String; close "()Lio/netty/channel/ChannelFuture; *(Ljava/lang/String;Ljava/lang/Throwable;)V (Ljava/lang/String;)V (Ljava/lang/Throwable;)V .io/netty/handler/codec/ProtocolDetectionResult
needsMoreData 2()Lio/netty/handler/codec/ProtocolDetectionResult; invalid 5io/netty/handler/codec/haproxy/HAProxyProtocolVersion V1 7Lio/netty/handler/codec/haproxy/HAProxyProtocolVersion; detected D(Ljava/lang/Object;)Lio/netty/handler/codec/ProtocolDetectionResult; V2 ! B H I J K L I J M I J N O I J P Q R Q S I T U V W X U V W Y Z [ \ ] I ^ \ _ \ ` I a I b c d 4 *? ? e
? ? f g h b i d Y *? *?
*?
*? ? e ? { ? ? ? f g h ^ \ b j d ? *? ? e
? ? f g h k I b l d ? G*? *?
?
* ?
? ,? *?
? ?`>? *?
? *?
*? ? e 2 ? { ? ? ? ? ' ? - ? 3 ? <