com.groupbyinc.flux.common.netty.handler.codec.http.HttpVersion.class Maven / Gradle / Ivy
???? 2 ? ?com/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion kLjava/lang/Object;Ljava/lang/Comparable; java/lang/Object java/lang/Comparable HttpVersion.java VERSION_PATTERN Ljava/util/regex/Pattern; HTTP_1_0_STRING Ljava/lang/String; HTTP/1.0
HTTP_1_1_STRING HTTP/1.1 HTTP_1_0 ALcom/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion; HTTP_1_1 protocolName majorVersion I minorVersion text keepAliveDefault Z bytes [B valueOf U(Ljava/lang/String;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion; java/lang/NullPointerException (Ljava/lang/String;)V # $
! % java/lang/String ' trim ()Ljava/lang/String; ) *
( + isEmpty ()Z - .
( / "java/lang/IllegalArgumentException 1 !text is empty (possibly HTTP/0.9) 3
2 % version0 6
7 (Ljava/lang/String;Z)V # 9
: version equals (Ljava/lang/Object;)Z = >
( ? A C ()V # E
F toUpperCase H *
( I
empty text K
M java/util/regex/Pattern O matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; Q R
P S java/util/regex/Matcher U matches W .
V X java/lang/StringBuilder Z
[ F invalid version format: ] append -(Ljava/lang/String;)Ljava/lang/StringBuilder; _ `
[ a toString c *
[ d group (I)Ljava/lang/String; f g
V h j java/lang/Integer l parseInt (Ljava/lang/String;)I n o
m p r t (C)Ljava/lang/StringBuilder; _ v
[ w (I)Ljava/lang/StringBuilder; _ y
[ z | ~ ? this m Ljava/util/regex/Matcher; (Ljava/lang/String;IIZ)V (Ljava/lang/String;IIZZ)V # ?
? empty protocolName ? length ()I ? ?
( ? charAt (I)C ? ?
( ? java/lang/Character ? isISOControl (C)Z ? ?
? ? isWhitespace ? ?
? ? !invalid character in protocolName ? negative majorVersion ? negative minorVersion ? 1com/groupbyinc/flux/common/netty/util/CharsetUtil ? US_ASCII Ljava/nio/charset/Charset; ? ? ? ? getBytes (Ljava/nio/charset/Charset;)[B ? ?
( ? i isKeepAliveDefault *
? hashCode *
? ? ?
( ? ?
? ?
? o Ljava/lang/Object; that compareTo D(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion;)I ? o
( ? v encode 4(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V /com/groupbyinc/flux/common/netty/buffer/ByteBuf ? writeCharSequence 5(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I ? ?
? ?
writeBytes 5([B)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? ? buf 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; (Ljava/lang/Object;)I ? ?
? (\S+)/(\d+)\.(\d+) ? compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; ? ?
P ? HTTP ?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable Signature
SourceFile !
? ? ? ? 9*?
? !Y"? &?*? ,K*? 0?
? 2Y4? 5?*? 8L+?
? Y*? ;L+? ? 9 ) <