.class final Lokhttp3/Cache$Entry; .super Ljava/lang/Object; .source "Cache.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/Cache; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1a name = "Entry" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/Cache$Entry$Companion; } .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\u0080\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0002\u0018\u0000 .2\u00020\u0001:\u0001.B\u000f\u0008\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004B\u000f\u0008\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007J\u0016\u0010\u001b\u001a\u00020\r2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u0005\u001a\u00020\u0006J\u0016\u0010\u001e\u001a\u0008\u0012\u0004\u0012\u00020 0\u001f2\u0006\u0010!\u001a\u00020\"H\u0002J\u0012\u0010\u0005\u001a\u00020\u00062\n\u0010#\u001a\u00060$R\u00020%J\u001e\u0010&\u001a\u00020\'2\u0006\u0010(\u001a\u00020)2\u000c\u0010*\u001a\u0008\u0012\u0004\u0012\u00020 0\u001fH\u0002J\u0012\u0010+\u001a\u00020\'2\n\u0010,\u001a\u00060-R\u00020%R\u000e\u0010\u0008\u001a\u00020\tX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u0004\u0018\u00010\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u000c\u001a\u00020\r8BX\u0082\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u000c\u0010\u000eR\u000e\u0010\u000f\u001a\u00020\u0010X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0011\u001a\u00020\u0012X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0013\u001a\u00020\u0014X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0015\u001a\u00020\u0010X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0016\u001a\u00020\u0017X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0018\u001a\u00020\u0014X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0019\u001a\u00020\u0010X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u001a\u001a\u00020\u0017X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006/" } d2 = { "Lokhttp3/Cache$Entry;", "", "rawSource", "Lokio/Source;", "(Lokio/Source;)V", "response", "Lokhttp3/Response;", "(Lokhttp3/Response;)V", "code", "", "handshake", "Lokhttp3/Handshake;", "isHttps", "", "()Z", "message", "", "protocol", "Lokhttp3/Protocol;", "receivedResponseMillis", "", "requestMethod", "responseHeaders", "Lokhttp3/Headers;", "sentRequestMillis", "url", "varyHeaders", "matches", "request", "Lokhttp3/Request;", "readCertificateList", "", "Ljava/security/cert/Certificate;", "source", "Lokio/BufferedSource;", "snapshot", "Lokhttp3/internal/cache/DiskLruCache$Snapshot;", "Lokhttp3/internal/cache/DiskLruCache;", "writeCertList", "", "sink", "Lokio/BufferedSink;", "certificates", "writeTo", "editor", "Lokhttp3/internal/cache/DiskLruCache$Editor;", "Companion", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokhttp3/Cache$Entry$Companion; .field private static final RECEIVED_MILLIS:Ljava/lang/String; .field private static final SENT_MILLIS:Ljava/lang/String; # instance fields .field private final code:I .field private final handshake:Lokhttp3/Handshake; .field private final message:Ljava/lang/String; .field private final protocol:Lokhttp3/Protocol; .field private final receivedResponseMillis:J .field private final requestMethod:Ljava/lang/String; .field private final responseHeaders:Lokhttp3/Headers; .field private final sentRequestMillis:J .field private final url:Ljava/lang/String; .field private final varyHeaders:Lokhttp3/Headers; # direct methods .method static constructor ()V .locals 2 new-instance v0, Lokhttp3/Cache$Entry$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/Cache$Entry$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokhttp3/Cache$Entry;->Companion:Lokhttp3/Cache$Entry$Companion; .line 660 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V sget-object v1, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion; invoke-virtual {v1}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform; move-result-object v1 invoke-virtual {v1}, Lokhttp3/internal/platform/Platform;->getPrefix()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "-Sent-Millis" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 sput-object v0, Lokhttp3/Cache$Entry;->SENT_MILLIS:Ljava/lang/String; .line 663 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V sget-object v1, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion; invoke-virtual {v1}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform; move-result-object v1 invoke-virtual {v1}, Lokhttp3/internal/platform/Platform;->getPrefix()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "-Received-Millis" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 sput-object v0, Lokhttp3/Cache$Entry;->RECEIVED_MILLIS:Ljava/lang/String; return-void .end method .method public constructor (Lokhttp3/Response;)V .locals 2 const-string v0, "response" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 545 invoke-direct {p0}, Ljava/lang/Object;->()V invoke-virtual {p1}, Lokhttp3/Response;->request()Lokhttp3/Request; move-result-object v0 invoke-virtual {v0}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v0 invoke-virtual {v0}, Lokhttp3/HttpUrl;->toString()Ljava/lang/String; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->url:Ljava/lang/String; .line 546 sget-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {v0, p1}, Lokhttp3/Cache$Companion;->varyHeaders(Lokhttp3/Response;)Lokhttp3/Headers; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 547 invoke-virtual {p1}, Lokhttp3/Response;->request()Lokhttp3/Request; move-result-object v0 invoke-virtual {v0}, Lokhttp3/Request;->method()Ljava/lang/String; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->requestMethod:Ljava/lang/String; .line 548 invoke-virtual {p1}, Lokhttp3/Response;->protocol()Lokhttp3/Protocol; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->protocol:Lokhttp3/Protocol; .line 549 invoke-virtual {p1}, Lokhttp3/Response;->code()I move-result v0 iput v0, p0, Lokhttp3/Cache$Entry;->code:I .line 550 invoke-virtual {p1}, Lokhttp3/Response;->message()Ljava/lang/String; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->message:Ljava/lang/String; .line 551 invoke-virtual {p1}, Lokhttp3/Response;->headers()Lokhttp3/Headers; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 552 invoke-virtual {p1}, Lokhttp3/Response;->handshake()Lokhttp3/Handshake; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; .line 553 invoke-virtual {p1}, Lokhttp3/Response;->sentRequestAtMillis()J move-result-wide v0 iput-wide v0, p0, Lokhttp3/Cache$Entry;->sentRequestMillis:J .line 554 invoke-virtual {p1}, Lokhttp3/Response;->receivedResponseAtMillis()J move-result-wide v0 iput-wide v0, p0, Lokhttp3/Cache$Entry;->receivedResponseMillis:J return-void .end method .method public constructor (Lokio/Source;)V .locals 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "rawSource" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 493 invoke-direct {p0}, Ljava/lang/Object;->()V .line 494 :try_start_0 invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource; move-result-object v0 .line 495 invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v1 iput-object v1, p0, Lokhttp3/Cache$Entry;->url:Ljava/lang/String; .line 496 invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v1 iput-object v1, p0, Lokhttp3/Cache$Entry;->requestMethod:Ljava/lang/String; .line 497 new-instance v1, Lokhttp3/Headers$Builder; invoke-direct {v1}, Lokhttp3/Headers$Builder;->()V .line 498 sget-object v2, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {v2, v0}, Lokhttp3/Cache$Companion;->readInt$okhttp(Lokio/BufferedSource;)I move-result v2 const/4 v3, 0x0 move v4, v3 :goto_0 if-ge v4, v2, :cond_0 .line 500 invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v5 invoke-virtual {v1, v5}, Lokhttp3/Headers$Builder;->addLenient$okhttp(Ljava/lang/String;)Lokhttp3/Headers$Builder; add-int/lit8 v4, v4, 0x1 goto :goto_0 .line 502 :cond_0 invoke-virtual {v1}, Lokhttp3/Headers$Builder;->build()Lokhttp3/Headers; move-result-object v1 iput-object v1, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 504 sget-object v1, Lokhttp3/internal/http/StatusLine;->Companion:Lokhttp3/internal/http/StatusLine$Companion; invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Lokhttp3/internal/http/StatusLine$Companion;->parse(Ljava/lang/String;)Lokhttp3/internal/http/StatusLine; move-result-object v1 .line 505 iget-object v2, v1, Lokhttp3/internal/http/StatusLine;->protocol:Lokhttp3/Protocol; iput-object v2, p0, Lokhttp3/Cache$Entry;->protocol:Lokhttp3/Protocol; .line 506 iget v2, v1, Lokhttp3/internal/http/StatusLine;->code:I iput v2, p0, Lokhttp3/Cache$Entry;->code:I .line 507 iget-object v1, v1, Lokhttp3/internal/http/StatusLine;->message:Ljava/lang/String; iput-object v1, p0, Lokhttp3/Cache$Entry;->message:Ljava/lang/String; .line 508 new-instance v1, Lokhttp3/Headers$Builder; invoke-direct {v1}, Lokhttp3/Headers$Builder;->()V .line 509 sget-object v2, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {v2, v0}, Lokhttp3/Cache$Companion;->readInt$okhttp(Lokio/BufferedSource;)I move-result v2 :goto_1 if-ge v3, v2, :cond_1 .line 511 invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v4 invoke-virtual {v1, v4}, Lokhttp3/Headers$Builder;->addLenient$okhttp(Ljava/lang/String;)Lokhttp3/Headers$Builder; add-int/lit8 v3, v3, 0x1 goto :goto_1 :cond_1 sget-object v2, Lokhttp3/Cache$Entry;->SENT_MILLIS:Ljava/lang/String; .line 513 invoke-virtual {v1, v2}, Lokhttp3/Headers$Builder;->get(Ljava/lang/String;)Ljava/lang/String; move-result-object v3 sget-object v4, Lokhttp3/Cache$Entry;->RECEIVED_MILLIS:Ljava/lang/String; .line 514 invoke-virtual {v1, v4}, Lokhttp3/Headers$Builder;->get(Ljava/lang/String;)Ljava/lang/String; move-result-object v5 .line 515 invoke-virtual {v1, v2}, Lokhttp3/Headers$Builder;->removeAll(Ljava/lang/String;)Lokhttp3/Headers$Builder; .line 516 invoke-virtual {v1, v4}, Lokhttp3/Headers$Builder;->removeAll(Ljava/lang/String;)Lokhttp3/Headers$Builder; const-wide/16 v6, 0x0 if-eqz v3, :cond_2 .line 517 invoke-static {v3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J move-result-wide v2 goto :goto_2 :cond_2 move-wide v2, v6 :goto_2 iput-wide v2, p0, Lokhttp3/Cache$Entry;->sentRequestMillis:J if-eqz v5, :cond_3 .line 518 invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J move-result-wide v6 :cond_3 iput-wide v6, p0, Lokhttp3/Cache$Entry;->receivedResponseMillis:J .line 519 invoke-virtual {v1}, Lokhttp3/Headers$Builder;->build()Lokhttp3/Headers; move-result-object v1 iput-object v1, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 521 invoke-direct {p0}, Lokhttp3/Cache$Entry;->isHttps()Z move-result v1 if-eqz v1, :cond_6 .line 522 invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v1 .line 523 move-object v2, v1 check-cast v2, Ljava/lang/CharSequence; invoke-interface {v2}, Ljava/lang/CharSequence;->length()I move-result v2 if-gtz v2, :cond_5 .line 526 invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v1 .line 527 sget-object v2, Lokhttp3/CipherSuite;->Companion:Lokhttp3/CipherSuite$Companion; invoke-virtual {v2, v1}, Lokhttp3/CipherSuite$Companion;->forJavaName(Ljava/lang/String;)Lokhttp3/CipherSuite; move-result-object v1 .line 528 invoke-direct {p0, v0}, Lokhttp3/Cache$Entry;->readCertificateList(Lokio/BufferedSource;)Ljava/util/List; move-result-object v2 .line 529 invoke-direct {p0, v0}, Lokhttp3/Cache$Entry;->readCertificateList(Lokio/BufferedSource;)Ljava/util/List; move-result-object v3 .line 530 invoke-interface {v0}, Lokio/BufferedSource;->exhausted()Z move-result v4 if-nez v4, :cond_4 .line 531 sget-object v4, Lokhttp3/TlsVersion;->Companion:Lokhttp3/TlsVersion$Companion; invoke-interface {v0}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v0 invoke-virtual {v4, v0}, Lokhttp3/TlsVersion$Companion;->forJavaName(Ljava/lang/String;)Lokhttp3/TlsVersion; move-result-object v0 goto :goto_3 .line 533 :cond_4 sget-object v0, Lokhttp3/TlsVersion;->SSL_3_0:Lokhttp3/TlsVersion; .line 535 :goto_3 sget-object v4, Lokhttp3/Handshake;->Companion:Lokhttp3/Handshake$Companion; invoke-virtual {v4, v0, v1, v2, v3}, Lokhttp3/Handshake$Companion;->get(Lokhttp3/TlsVersion;Lokhttp3/CipherSuite;Ljava/util/List;Ljava/util/List;)Lokhttp3/Handshake; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; goto :goto_4 .line 524 :cond_5 new-instance p0, Ljava/io/IOException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v2, "expected \"\" but was \"" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const/16 v1, 0x22 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_6 const/4 v0, 0x0 .line 537 move-object v1, v0 check-cast v1, Lokhttp3/Handshake; iput-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 540 :goto_4 invoke-interface {p1}, Lokio/Source;->close()V return-void :catchall_0 move-exception p0 invoke-interface {p1}, Lokio/Source;->close()V throw p0 .end method .method private final isHttps()Z .locals 4 iget-object p0, p0, Lokhttp3/Cache$Entry;->url:Ljava/lang/String; const/4 v0, 0x2 const/4 v1, 0x0 const-string v2, "https://" const/4 v3, 0x0 .line 439 invoke-static {p0, v2, v3, v0, v1}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result p0 return p0 .end method .method private final readCertificateList(Lokio/BufferedSource;)Ljava/util/List; .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lokio/BufferedSource;", ")", "Ljava/util/List<", "Ljava/security/cert/Certificate;", ">;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 599 sget-object p0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {p0, p1}, Lokhttp3/Cache$Companion;->readInt$okhttp(Lokio/BufferedSource;)I move-result p0 const/4 v0, -0x1 if-ne p0, v0, :cond_0 .line 600 invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List; move-result-object p0 return-object p0 :cond_0 :try_start_0 const-string v0, "X.509" .line 603 invoke-static {v0}, Ljava/security/cert/CertificateFactory;->getInstance(Ljava/lang/String;)Ljava/security/cert/CertificateFactory; move-result-object v0 .line 604 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1, p0}, Ljava/util/ArrayList;->(I)V const/4 v2, 0x0 :goto_0 if-ge v2, p0, :cond_1 .line 606 invoke-interface {p1}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String; move-result-object v3 .line 607 new-instance v4, Lokio/Buffer; invoke-direct {v4}, Lokio/Buffer;->()V .line 608 sget-object v5, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v5, v3}, Lokio/ByteString$Companion;->decodeBase64(Ljava/lang/String;)Lokio/ByteString; move-result-object v3 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v4, v3}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; .line 609 invoke-virtual {v4}, Lokio/Buffer;->inputStream()Ljava/io/InputStream; move-result-object v3 invoke-virtual {v0, v3}, Ljava/security/cert/CertificateFactory;->generateCertificate(Ljava/io/InputStream;)Ljava/security/cert/Certificate; move-result-object v3 invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z add-int/lit8 v2, v2, 0x1 goto :goto_0 .line 611 :cond_1 check-cast v1, Ljava/util/List; :try_end_0 .catch Ljava/security/cert/CertificateException; {:try_start_0 .. :try_end_0} :catch_0 return-object v1 :catch_0 move-exception p0 .line 613 new-instance p1, Ljava/io/IOException; invoke-virtual {p0}, Ljava/security/cert/CertificateException;->getMessage()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method private final writeCertList(Lokio/BufferedSink;Ljava/util/List;)V .locals 9 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lokio/BufferedSink;", "Ljava/util/List<", "+", "Ljava/security/cert/Certificate;", ">;)V" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 620 :try_start_0 invoke-interface {p2}, Ljava/util/List;->size()I move-result p0 int-to-long v0, p0 invoke-interface {p1, v0, v1}, Lokio/BufferedSink;->writeDecimalLong(J)Lokio/BufferedSink; move-result-object p0 const/16 v0, 0xa invoke-interface {p0, v0}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; .line 621 invoke-interface {p2}, Ljava/util/List;->size()I move-result p0 const/4 v1, 0x0 :goto_0 if-ge v1, p0, :cond_0 .line 622 invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/security/cert/Certificate; invoke-virtual {v2}, Ljava/security/cert/Certificate;->getEncoded()[B move-result-object v4 .line 623 sget-object v3, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; const-string v2, "bytes" invoke-static {v4, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x3 const/4 v8, 0x0 invoke-static/range {v3 .. v8}, Lokio/ByteString$Companion;->of$default(Lokio/ByteString$Companion;[BIIILjava/lang/Object;)Lokio/ByteString; move-result-object v2 invoke-virtual {v2}, Lokio/ByteString;->base64()Ljava/lang/String; move-result-object v2 .line 624 invoke-interface {p1, v2}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v2 invoke-interface {v2, v0}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; :try_end_0 .catch Ljava/security/cert/CertificateEncodingException; {:try_start_0 .. :try_end_0} :catch_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_0 return-void :catch_0 move-exception p0 .line 627 new-instance p1, Ljava/io/IOException; invoke-virtual {p0}, Ljava/security/cert/CertificateEncodingException;->getMessage()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method # virtual methods .method public final matches(Lokhttp3/Request;Lokhttp3/Response;)Z .locals 2 const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "response" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokhttp3/Cache$Entry;->url:Ljava/lang/String; .line 632 invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v1 invoke-virtual {v1}, Lokhttp3/HttpUrl;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lokhttp3/Cache$Entry;->requestMethod:Ljava/lang/String; invoke-virtual {p1}, Lokhttp3/Request;->method()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 sget-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; iget-object p0, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 634 invoke-virtual {v0, p2, p0, p1}, Lokhttp3/Cache$Companion;->varyMatches(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z move-result p0 if-eqz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public final response(Lokhttp3/internal/cache/DiskLruCache$Snapshot;)Lokhttp3/Response; .locals 5 const-string v0, "snapshot" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; const-string v1, "Content-Type" .line 638 invoke-virtual {v0, v1}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 iget-object v1, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; const-string v2, "Content-Length" .line 639 invoke-virtual {v1, v2}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 .line 640 new-instance v2, Lokhttp3/Request$Builder; invoke-direct {v2}, Lokhttp3/Request$Builder;->()V iget-object v3, p0, Lokhttp3/Cache$Entry;->url:Ljava/lang/String; .line 641 invoke-virtual {v2, v3}, Lokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder; move-result-object v2 iget-object v3, p0, Lokhttp3/Cache$Entry;->requestMethod:Ljava/lang/String; const/4 v4, 0x0 .line 642 invoke-virtual {v2, v3, v4}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; move-result-object v2 iget-object v3, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 643 invoke-virtual {v2, v3}, Lokhttp3/Request$Builder;->headers(Lokhttp3/Headers;)Lokhttp3/Request$Builder; move-result-object v2 .line 644 invoke-virtual {v2}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request; move-result-object v2 .line 645 new-instance v3, Lokhttp3/Response$Builder; invoke-direct {v3}, Lokhttp3/Response$Builder;->()V .line 646 invoke-virtual {v3, v2}, Lokhttp3/Response$Builder;->request(Lokhttp3/Request;)Lokhttp3/Response$Builder; move-result-object v2 iget-object v3, p0, Lokhttp3/Cache$Entry;->protocol:Lokhttp3/Protocol; .line 647 invoke-virtual {v2, v3}, Lokhttp3/Response$Builder;->protocol(Lokhttp3/Protocol;)Lokhttp3/Response$Builder; move-result-object v2 iget v3, p0, Lokhttp3/Cache$Entry;->code:I .line 648 invoke-virtual {v2, v3}, Lokhttp3/Response$Builder;->code(I)Lokhttp3/Response$Builder; move-result-object v2 iget-object v3, p0, Lokhttp3/Cache$Entry;->message:Ljava/lang/String; .line 649 invoke-virtual {v2, v3}, Lokhttp3/Response$Builder;->message(Ljava/lang/String;)Lokhttp3/Response$Builder; move-result-object v2 iget-object v3, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 650 invoke-virtual {v2, v3}, Lokhttp3/Response$Builder;->headers(Lokhttp3/Headers;)Lokhttp3/Response$Builder; move-result-object v2 .line 651 new-instance v3, Lokhttp3/Cache$CacheResponseBody; invoke-direct {v3, p1, v0, v1}, Lokhttp3/Cache$CacheResponseBody;->(Lokhttp3/internal/cache/DiskLruCache$Snapshot;Ljava/lang/String;Ljava/lang/String;)V check-cast v3, Lokhttp3/ResponseBody; invoke-virtual {v2, v3}, Lokhttp3/Response$Builder;->body(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder; move-result-object p1 iget-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; .line 652 invoke-virtual {p1, v0}, Lokhttp3/Response$Builder;->handshake(Lokhttp3/Handshake;)Lokhttp3/Response$Builder; move-result-object p1 iget-wide v0, p0, Lokhttp3/Cache$Entry;->sentRequestMillis:J .line 653 invoke-virtual {p1, v0, v1}, Lokhttp3/Response$Builder;->sentRequestAtMillis(J)Lokhttp3/Response$Builder; move-result-object p1 iget-wide v0, p0, Lokhttp3/Cache$Entry;->receivedResponseMillis:J .line 654 invoke-virtual {p1, v0, v1}, Lokhttp3/Response$Builder;->receivedResponseAtMillis(J)Lokhttp3/Response$Builder; move-result-object p0 .line 655 invoke-virtual {p0}, Lokhttp3/Response$Builder;->build()Lokhttp3/Response; move-result-object p0 return-object p0 .end method .method public final writeTo(Lokhttp3/internal/cache/DiskLruCache$Editor;)V .locals 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "editor" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 559 invoke-virtual {p1, v0}, Lokhttp3/internal/cache/DiskLruCache$Editor;->newSink(I)Lokio/Sink; move-result-object p1 invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink; move-result-object p1 check-cast p1, Ljava/io/Closeable; const/4 v1, 0x0 move-object v2, v1 check-cast v2, Ljava/lang/Throwable; :try_start_0 move-object v2, p1 check-cast v2, Lokio/BufferedSink; iget-object v3, p0, Lokhttp3/Cache$Entry;->url:Ljava/lang/String; .line 560 invoke-interface {v2, v3}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v3 const/16 v4, 0xa invoke-interface {v3, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v3, p0, Lokhttp3/Cache$Entry;->requestMethod:Ljava/lang/String; .line 561 invoke-interface {v2, v3}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v3 invoke-interface {v3, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v3, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 562 invoke-virtual {v3}, Lokhttp3/Headers;->size()I move-result v3 int-to-long v5, v3 invoke-interface {v2, v5, v6}, Lokio/BufferedSink;->writeDecimalLong(J)Lokio/BufferedSink; move-result-object v3 invoke-interface {v3, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v3, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 563 invoke-virtual {v3}, Lokhttp3/Headers;->size()I move-result v3 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 move v5, v0 :goto_0 const-string v6, ": " if-ge v5, v3, :cond_0 :try_start_1 iget-object v7, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 564 invoke-virtual {v7, v5}, Lokhttp3/Headers;->name(I)Ljava/lang/String; move-result-object v7 invoke-interface {v2, v7}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v7 .line 565 invoke-interface {v7, v6}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v6 iget-object v7, p0, Lokhttp3/Cache$Entry;->varyHeaders:Lokhttp3/Headers; .line 566 invoke-virtual {v7, v5}, Lokhttp3/Headers;->value(I)Ljava/lang/String; move-result-object v7 invoke-interface {v6, v7}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v6 .line 567 invoke-interface {v6, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; add-int/lit8 v5, v5, 0x1 goto :goto_0 .line 570 :cond_0 new-instance v3, Lokhttp3/internal/http/StatusLine; iget-object v5, p0, Lokhttp3/Cache$Entry;->protocol:Lokhttp3/Protocol; iget v7, p0, Lokhttp3/Cache$Entry;->code:I iget-object v8, p0, Lokhttp3/Cache$Entry;->message:Ljava/lang/String; invoke-direct {v3, v5, v7, v8}, Lokhttp3/internal/http/StatusLine;->(Lokhttp3/Protocol;ILjava/lang/String;)V invoke-virtual {v3}, Lokhttp3/internal/http/StatusLine;->toString()Ljava/lang/String; move-result-object v3 invoke-interface {v2, v3}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v3 invoke-interface {v3, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v3, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 571 invoke-virtual {v3}, Lokhttp3/Headers;->size()I move-result v3 add-int/lit8 v3, v3, 0x2 int-to-long v7, v3 invoke-interface {v2, v7, v8}, Lokio/BufferedSink;->writeDecimalLong(J)Lokio/BufferedSink; move-result-object v3 invoke-interface {v3, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v3, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 572 invoke-virtual {v3}, Lokhttp3/Headers;->size()I move-result v3 :goto_1 if-ge v0, v3, :cond_1 iget-object v5, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 573 invoke-virtual {v5, v0}, Lokhttp3/Headers;->name(I)Ljava/lang/String; move-result-object v5 invoke-interface {v2, v5}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v5 .line 574 invoke-interface {v5, v6}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v5 iget-object v7, p0, Lokhttp3/Cache$Entry;->responseHeaders:Lokhttp3/Headers; .line 575 invoke-virtual {v7, v0}, Lokhttp3/Headers;->value(I)Ljava/lang/String; move-result-object v7 invoke-interface {v5, v7}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v5 .line 576 invoke-interface {v5, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; add-int/lit8 v0, v0, 0x1 goto :goto_1 :cond_1 sget-object v0, Lokhttp3/Cache$Entry;->SENT_MILLIS:Ljava/lang/String; .line 578 invoke-interface {v2, v0}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v0 .line 579 invoke-interface {v0, v6}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v0 iget-wide v7, p0, Lokhttp3/Cache$Entry;->sentRequestMillis:J .line 580 invoke-interface {v0, v7, v8}, Lokio/BufferedSink;->writeDecimalLong(J)Lokio/BufferedSink; move-result-object v0 .line 581 invoke-interface {v0, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; sget-object v0, Lokhttp3/Cache$Entry;->RECEIVED_MILLIS:Ljava/lang/String; .line 582 invoke-interface {v2, v0}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v0 .line 583 invoke-interface {v0, v6}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v0 iget-wide v5, p0, Lokhttp3/Cache$Entry;->receivedResponseMillis:J .line 584 invoke-interface {v0, v5, v6}, Lokio/BufferedSink;->writeDecimalLong(J)Lokio/BufferedSink; move-result-object v0 .line 585 invoke-interface {v0, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; .line 587 invoke-direct {p0}, Lokhttp3/Cache$Entry;->isHttps()Z move-result v0 if-eqz v0, :cond_2 .line 588 invoke-interface {v2, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; .line 589 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v0}, Lokhttp3/Handshake;->cipherSuite()Lokhttp3/CipherSuite; move-result-object v0 invoke-virtual {v0}, Lokhttp3/CipherSuite;->javaName()Ljava/lang/String; move-result-object v0 invoke-interface {v2, v0}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object v0 invoke-interface {v0, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; iget-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; .line 590 invoke-virtual {v0}, Lokhttp3/Handshake;->peerCertificates()Ljava/util/List; move-result-object v0 invoke-direct {p0, v2, v0}, Lokhttp3/Cache$Entry;->writeCertList(Lokio/BufferedSink;Ljava/util/List;)V iget-object v0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; .line 591 invoke-virtual {v0}, Lokhttp3/Handshake;->localCertificates()Ljava/util/List; move-result-object v0 invoke-direct {p0, v2, v0}, Lokhttp3/Cache$Entry;->writeCertList(Lokio/BufferedSink;Ljava/util/List;)V iget-object p0, p0, Lokhttp3/Cache$Entry;->handshake:Lokhttp3/Handshake; .line 592 invoke-virtual {p0}, Lokhttp3/Handshake;->tlsVersion()Lokhttp3/TlsVersion; move-result-object p0 invoke-virtual {p0}, Lokhttp3/TlsVersion;->javaName()Ljava/lang/String; move-result-object p0 invoke-interface {v2, p0}, Lokio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; move-result-object p0 invoke-interface {p0, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink; .line 594 :cond_2 sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 559 invoke-static {p1, v1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-void :catchall_0 move-exception p0 :try_start_2 throw p0 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 :catchall_1 move-exception v0 invoke-static {p1, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v0 .end method