.class public final Lokhttp3/Cookie$Builder; .super Ljava/lang/Object; .source "Cookie.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/Cookie; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Builder" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nCookie.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Cookie.kt\nokhttp3/Cookie$Builder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,614:1\n1#2:615\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\u000f\u001a\u00020\u0010J\u000e\u0010\u0003\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0004J\u0018\u0010\u0003\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0008H\u0002J\u000e\u0010\u0005\u001a\u00020\u00002\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0011\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0004J\u0006\u0010\t\u001a\u00020\u0000J\u000e\u0010\n\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u0004J\u000e\u0010\u000b\u001a\u00020\u00002\u0006\u0010\u000b\u001a\u00020\u0004J\u0006\u0010\r\u001a\u00020\u0000J\u000e\u0010\u000e\u001a\u00020\u00002\u0006\u0010\u000e\u001a\u00020\u0004R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u0004\u0018\u00010\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000c\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u000e\u001a\u0004\u0018\u00010\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0012" } d2 = { "Lokhttp3/Cookie$Builder;", "", "()V", "domain", "", "expiresAt", "", "hostOnly", "", "httpOnly", "name", "path", "persistent", "secure", "value", "build", "Lokhttp3/Cookie;", "hostOnlyDomain", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field private domain:Ljava/lang/String; .field private expiresAt:J .field private hostOnly:Z .field private httpOnly:Z .field private name:Ljava/lang/String; .field private path:Ljava/lang/String; .field private persistent:Z .field private secure:Z .field private value:Ljava/lang/String; # direct methods .method public constructor ()V .locals 2 .line 254 invoke-direct {p0}, Ljava/lang/Object;->()V const-wide v0, 0xe677d21fdbffL iput-wide v0, p0, Lokhttp3/Cookie$Builder;->expiresAt:J const-string v0, "/" iput-object v0, p0, Lokhttp3/Cookie$Builder;->path:Ljava/lang/String; return-void .end method .method private final domain(Ljava/lang/String;Z)Lokhttp3/Cookie$Builder; .locals 1 .line 295 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; .line 296 invoke-static {p1}, Lokhttp3/internal/HostnamesKt;->toCanonicalHost(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_0 iput-object v0, p0, Lokhttp3/Cookie$Builder;->domain:Ljava/lang/String; iput-boolean p2, p0, Lokhttp3/Cookie$Builder;->hostOnly:Z return-object p0 .line 297 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; new-instance p2, Ljava/lang/StringBuilder; const-string v0, "unexpected domain: " invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method # virtual methods .method public final build()Lokhttp3/Cookie; .locals 13 .line 316 new-instance v12, Lokhttp3/Cookie; iget-object v1, p0, Lokhttp3/Cookie$Builder;->name:Ljava/lang/String; if-eqz v1, :cond_2 iget-object v2, p0, Lokhttp3/Cookie$Builder;->value:Ljava/lang/String; if-eqz v2, :cond_1 iget-wide v3, p0, Lokhttp3/Cookie$Builder;->expiresAt:J iget-object v5, p0, Lokhttp3/Cookie$Builder;->domain:Ljava/lang/String; if-eqz v5, :cond_0 iget-object v6, p0, Lokhttp3/Cookie$Builder;->path:Ljava/lang/String; iget-boolean v7, p0, Lokhttp3/Cookie$Builder;->secure:Z iget-boolean v8, p0, Lokhttp3/Cookie$Builder;->httpOnly:Z iget-boolean v9, p0, Lokhttp3/Cookie$Builder;->persistent:Z iget-boolean v10, p0, Lokhttp3/Cookie$Builder;->hostOnly:Z const/4 v11, 0x0 move-object v0, v12 invoke-direct/range {v0 .. v11}, Lokhttp3/Cookie;->(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZZZZLkotlin/jvm/internal/DefaultConstructorMarker;)V return-object v12 .line 320 :cond_0 new-instance p0, Ljava/lang/NullPointerException; const-string v0, "builder.domain == null" invoke-direct {p0, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 318 :cond_1 new-instance p0, Ljava/lang/NullPointerException; const-string v0, "builder.value == null" invoke-direct {p0, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 317 :cond_2 new-instance p0, Ljava/lang/NullPointerException; const-string v0, "builder.name == null" invoke-direct {p0, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public final domain(Ljava/lang/String;)Lokhttp3/Cookie$Builder; .locals 1 const-string v0, "domain" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 287 invoke-direct {p0, p1, v0}, Lokhttp3/Cookie$Builder;->domain(Ljava/lang/String;Z)Lokhttp3/Cookie$Builder; move-result-object p0 return-object p0 .end method .method public final expiresAt(J)Lokhttp3/Cookie$Builder; .locals 3 .line 275 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-gtz v0, :cond_0 const-wide/high16 p1, -0x8000000000000000L :cond_0 const-wide v0, 0xe677d21fdbffL cmp-long v2, p1, v0 if-lez v2, :cond_1 move-wide p1, v0 :cond_1 iput-wide p1, p0, Lokhttp3/Cookie$Builder;->expiresAt:J const/4 p1, 0x1 iput-boolean p1, p0, Lokhttp3/Cookie$Builder;->persistent:Z return-object p0 .end method .method public final hostOnlyDomain(Ljava/lang/String;)Lokhttp3/Cookie$Builder; .locals 1 const-string v0, "domain" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x1 .line 293 invoke-direct {p0, p1, v0}, Lokhttp3/Cookie$Builder;->domain(Ljava/lang/String;Z)Lokhttp3/Cookie$Builder; move-result-object p0 return-object p0 .end method .method public final httpOnly()Lokhttp3/Cookie$Builder; .locals 1 .line 311 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; const/4 v0, 0x1 iput-boolean v0, p0, Lokhttp3/Cookie$Builder;->httpOnly:Z return-object p0 .end method .method public final name(Ljava/lang/String;)Lokhttp3/Cookie$Builder; .locals 1 const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 265 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; .line 266 move-object v0, p1 check-cast v0, Ljava/lang/CharSequence; invoke-static {v0}, Lkotlin/text/StringsKt;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iput-object p1, p0, Lokhttp3/Cookie$Builder;->name:Ljava/lang/String; return-object p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "name is not trimmed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public final path(Ljava/lang/String;)Lokhttp3/Cookie$Builder; .locals 4 const-string v0, "path" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 302 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; const/4 v0, 0x2 const/4 v1, 0x0 const-string v2, "/" const/4 v3, 0x0 .line 303 invoke-static {p1, v2, v3, v0, v1}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iput-object p1, p0, Lokhttp3/Cookie$Builder;->path:Ljava/lang/String; return-object p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "path must start with \'/\'" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public final secure()Lokhttp3/Cookie$Builder; .locals 1 .line 307 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; const/4 v0, 0x1 iput-boolean v0, p0, Lokhttp3/Cookie$Builder;->secure:Z return-object p0 .end method .method public final value(Ljava/lang/String;)Lokhttp3/Cookie$Builder; .locals 1 const-string v0, "value" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 270 move-object v0, p0 check-cast v0, Lokhttp3/Cookie$Builder; .line 271 move-object v0, p1 check-cast v0, Ljava/lang/CharSequence; invoke-static {v0}, Lkotlin/text/StringsKt;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iput-object p1, p0, Lokhttp3/Cookie$Builder;->value:Ljava/lang/String; return-object p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "value is not trimmed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method