com.groupbyinc.flux.common.apache.http.impl.cookie.BasicDomainHandler.class Maven / Gradle / Ivy
???? 2 ? Ecom/groupbyinc/flux/common/apache/http/impl/cookie/BasicDomainHandler java/lang/Object Jcom/groupbyinc/flux/common/apache/http/cookie/CommonCookieAttributeHandler BasicDomainHandler.java =Lcom/groupbyinc/flux/common/apache/http/annotation/Immutable; ()V
this GLcom/groupbyinc/flux/common/apache/http/impl/cookie/BasicDomainHandler; parse N(Lcom/groupbyinc/flux/common/apache/http/cookie/SetCookie;Ljava/lang/String;)V Fcom/groupbyinc/flux/common/apache/http/cookie/MalformedCookieException Cookie 0com/groupbyinc/flux/common/apache/http/util/Args notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
5com/groupbyinc/flux/common/apache/http/util/TextUtils isBlank (Ljava/lang/CharSequence;)Z
(Blank or null value for domain attribute ! (Ljava/lang/String;)V #
$ . & java/lang/String ( endsWith (Ljava/lang/String;)Z * +
) ,
startsWith . +
) / substring (I)Ljava/lang/String; 1 2
) 3 java/util/Locale 5 ROOT Ljava/util/Locale; 7 8 6 9 toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; ; <
) = 7com/groupbyinc/flux/common/apache/http/cookie/SetCookie ? setDomain A # @ B cookie 9Lcom/groupbyinc/flux/common/apache/http/cookie/SetCookie; value Ljava/lang/String; domain validate u(Lcom/groupbyinc/flux/common/apache/http/cookie/Cookie;Lcom/groupbyinc/flux/common/apache/http/cookie/CookieOrigin;)V
Cookie origin K :com/groupbyinc/flux/common/apache/http/cookie/CookieOrigin M getHost ()Ljava/lang/String; O P
N Q 4com/groupbyinc/flux/common/apache/http/cookie/Cookie S getDomain U P T V Qcom/groupbyinc/flux/common/apache/http/cookie/CookieRestrictionViolationException X Cookie 'domain' may not be null Z
Y $ equals (Ljava/lang/Object;)Z ] ^
) _ domainMatch '(Ljava/lang/String;Ljava/lang/String;)Z a b
c java/lang/StringBuilder e
f Illegal 'domain' attribute " h append -(Ljava/lang/String;)Ljava/lang/StringBuilder; j k
f l ". Domain of origin: " n " p toString r P
f s 6Lcom/groupbyinc/flux/common/apache/http/cookie/Cookie; origin