com.groupbyinc.flux.common.http.impl.cookie.RFC2109Spec.class Maven / Gradle / Ivy
???? 27 7com/groupbyinc/flux/common/http/impl/cookie/RFC2109Spec :com/groupbyinc/flux/common/http/impl/cookie/CookieSpecBase RFC2109Spec.java 5Lcom/groupbyinc/flux/common/http/annotation/Obsolete; 5Lcom/groupbyinc/flux/common/http/annotation/Contract; threading >Lcom/groupbyinc/flux/common/http/annotation/ThreadingBehavior; SAFE 9com/groupbyinc/flux/common/http/impl/cookie/RFC2109Spec$1
DATE_PATTERNS [Ljava/lang/String; oneHeader Z ([Ljava/lang/String;Z)V Ccom/groupbyinc/flux/common/http/cookie/CommonCookieAttributeHandler Acom/groupbyinc/flux/common/http/impl/cookie/RFC2109VersionHandler ()V
@com/groupbyinc/flux/common/http/impl/cookie/RFC2109DomainHandler
>com/groupbyinc/flux/common/http/impl/cookie/BasicMaxAgeHandler
>com/groupbyinc/flux/common/http/impl/cookie/BasicSecureHandler !
" ?com/groupbyinc/flux/common/http/impl/cookie/BasicCommentHandler $
% ?com/groupbyinc/flux/common/http/impl/cookie/BasicExpiresHandler ' clone ()Ljava/lang/Object; * +
) , F[Lcom/groupbyinc/flux/common/http/cookie/CommonCookieAttributeHandler; .
0 ([Ljava/lang/String;)V 2
( 3 I([Lcom/groupbyinc/flux/common/http/cookie/CommonCookieAttributeHandler;)V 5
6 8 this 9Lcom/groupbyinc/flux/common/http/impl/cookie/RFC2109Spec; datepatterns
= J(Z[Lcom/groupbyinc/flux/common/http/cookie/CommonCookieAttributeHandler;)V handlers parse o(Lcom/groupbyinc/flux/common/http/Header;Lcom/groupbyinc/flux/common/http/cookie/CookieOrigin;)Ljava/util/List; ?com/groupbyinc/flux/common/http/cookie/MalformedCookieException C Header E )com/groupbyinc/flux/common/http/util/Args G notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; I J
H K
Cookie origin M &com/groupbyinc/flux/common/http/Header O getName ()Ljava/lang/String; Q R P S
Set-Cookie U java/lang/String W equalsIgnoreCase (Ljava/lang/String;)Z Y Z
X [ java/lang/StringBuilder ]
^ Unrecognized cookie header ' ` append -(Ljava/lang/String;)Ljava/lang/StringBuilder; b c
^ d java/lang/Object f toString h R
g i ' k
^ i (Ljava/lang/String;)V n
D o getElements 2()[Lcom/groupbyinc/flux/common/http/HeaderElement; q r P s w([Lcom/groupbyinc/flux/common/http/HeaderElement;Lcom/groupbyinc/flux/common/http/cookie/CookieOrigin;)Ljava/util/List; A u
v header (Lcom/groupbyinc/flux/common/http/Header; origin 5Lcom/groupbyinc/flux/common/http/cookie/CookieOrigin; elems 0[Lcom/groupbyinc/flux/common/http/HeaderElement; validate g(Lcom/groupbyinc/flux/common/http/cookie/Cookie;Lcom/groupbyinc/flux/common/http/cookie/CookieOrigin;)V Cookie ? -com/groupbyinc/flux/common/http/cookie/Cookie ? ? S indexOf (I)I ? ?
X ? Jcom/groupbyinc/flux/common/http/cookie/CookieRestrictionViolationException ? "Cookie name may not contain blanks ?
? o $ ?
startsWith ? Z
X ? Cookie name may not start with $ ? ~
? cookie /Lcom/groupbyinc/flux/common/http/cookie/Cookie; name Ljava/lang/String;
formatCookies "(Ljava/util/List;)Ljava/util/List; List of cookies ? notEmpty @(Ljava/util/Collection;Ljava/lang/String;)Ljava/util/Collection; ? ?
H ? java/util/List ? size ()I ? ? ? ? java/util/ArrayList ? (Ljava/util/Collection;)V ?
? ? ;com/groupbyinc/flux/common/http/cookie/CookiePathComparator ? INSTANCE =Lcom/groupbyinc/flux/common/http/cookie/CookiePathComparator; ? ? ? ? java/util/Collections ? sort )(Ljava/util/List;Ljava/util/Comparator;)V ? ?
? ? doFormatOneHeader ? ?
? doFormatManyHeaders ? ?
?
cookieList ALjava/util/List; Ljava/util/List; cookies??? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ? + ? ?
getVersion ? ? ? ? 4com/groupbyinc/flux/common/http/util/CharArrayBuffer ? (I)V ?
? ? b n
? ? : ? $Version= ? java/lang/Integer ? (I)Ljava/lang/String; h ?
? ? ; ? formatCookieAsVer i(Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;Lcom/groupbyinc/flux/common/http/cookie/Cookie;I)V ? ?
?
? ? 6com/groupbyinc/flux/common/http/message/BufferedHeader ? 9(Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;)V ?
? ? add (Ljava/lang/Object;)Z ? ? ? ? i$ Ljava/util/Iterator; cooky version I buffer 6Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer; headers :Ljava/util/List; Cookie: ? formatParamAsVer ^(Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;Ljava/lang/String;Ljava/lang/String;I)V = (C)V b
? value getValue R ?
getPath
R ? 3com/groupbyinc/flux/common/http/cookie/ClientCookie path containsAttribute Z $Path getDomain R ? domain $Domain getVersionHeader *()Lcom/groupbyinc/flux/common/http/Header; rfc2109" EEE, dd MMM yyyy HH:mm:ss zzz% EEE, dd-MMM-yy HH:mm:ss zzz' EEE MMM d HH:mm:ss yyyy) Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature ?(Lcom/groupbyinc/flux/common/http/Header;Lcom/groupbyinc/flux/common/http/cookie/CookieOrigin;)Ljava/util/List; LocalVariableTypeTable }(Ljava/util/List;)Ljava/util/List;
SourceFile InnerClasses RuntimeInvisibleAnnotations !
+ ? g*? Y? Y? SY? Y? SY? Y? SY? Y? SY? "Y? #SY? %Y? &SY? (Y+?
+? -? )? ? 1? 4S? 7*? 9? , g : ; g <