io.netty.handler.codec.http.CookieDecoder.class Maven / Gradle / Ivy
???? 2a )io/netty/handler/codec/http/CookieDecoder java/lang/Object CookieDecoder.java Ljava/lang/Deprecated; logger /Lio/netty/util/internal/logging/InternalLogger; STRICT +Lio/netty/handler/codec/http/CookieDecoder; LAX COMMENT Ljava/lang/String; Comment
COMMENTURL
CommentURL DISCARD Discard PORT Port VERSION Version strict Z decode #(Ljava/lang/String;)Ljava/util/Set; $(Ljava/lang/String;Z)Ljava/util/Set;
! header
$
& doDecode (
) java/lang/NumberFormatException + java/util/ArrayList - (I)V / 0
. 1 extractKeyValuePairs 5(Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V 3 4
5 java/util/List 7 isEmpty ()Z 9 : 8 ; java/util/Collections = emptySet ()Ljava/util/Set; ? @
> A get (I)Ljava/lang/Object; C D 8 E java/lang/String G equalsIgnoreCase (Ljava/lang/String;)Z I J
H K java/lang/Integer M parseInt (Ljava/lang/String;)I O P
N Q size ()I S T 8 U java/util/TreeSet W ()V / Y
X Z
java/util/Set \ ^
initCookie Q(Ljava/lang/String;Ljava/lang/String;)Lio/netty/handler/codec/http/DefaultCookie; ` a
b "io/netty/handler/codec/http/Cookie d? Secure h HTTPOnly j Domain l Path n Expires p $io/netty/handler/codec/DateFormatter r
parseHttpDate *(Ljava/lang/CharSequence;)Ljava/util/Date; t u
s v java/util/Date x getTime ()J z {
y | java/lang/System ~ currentTimeMillis ? {
? ? Max-Age ? , ? split '(Ljava/lang/String;)[Ljava/lang/String; ? ?
H ? [Ljava/lang/String; ? valueOf '(Ljava/lang/String;)Ljava/lang/Integer; ? ?
N ? add (Ljava/lang/Object;)Z ? ? 8 ?
setVersion ? 0 e ? setMaxAge (J)V ? ? e ? setPath (Ljava/lang/String;)V ? ? e ? setDomain ? ? e ? setSecure (Z)V ? ? e ? setHttpOnly ? ? e ?
setComment ? ? e ?
setCommentUrl ? ? e ? setPorts (Ljava/lang/Iterable;)V ? ? e ?
setDiscard ? ? e ? ] ? i I maxAgeMillis J date Ljava/util/Date; s1 portList j name value c $Lio/netty/handler/codec/http/Cookie; discard secure httpOnly comment
commentURL domain path maxAge ports %Ljava/util/List; Ljava/util/List; this names $Ljava/util/List; values version cookies 5Ljava/util/Set; Ljava/util/Set; length ? T
H ? charAt (I)C ? ?
H ? substring (II)Ljava/lang/String; ? ?
H ? java/lang/StringBuilder ?
? 1 toString ()Ljava/lang/String; ? ?
? ?
? ? setCharAt (IC)V ? ?
? ? append (C)Ljava/lang/StringBuilder; ? ?
? ? indexOf (II)I ? ?
H ? (I)Ljava/lang/String; ? ?
H ? newValueBuf Ljava/lang/StringBuilder; q C hadBackslash semiPos
newValueStart newNameStart headerLen
Z getClass ()Ljava/lang/Class;
4io/netty/util/internal/logging/InternalLoggerFactory
getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
Skipping cookie with null name -io/netty/util/internal/logging/InternalLogger debug ? Skipping cookie with null value &io/netty/handler/codec/http/CookieUtil unwrapValue 2(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
! ISkipping cookie because starting quotes are not properly balanced in '{}'# '(Ljava/lang/String;Ljava/lang/Object;)V%& java/lang/CharSequence( firstInvalidCookieNameOctet (Ljava/lang/CharSequence;)I*+
, isDebugEnabled. :/