OkUrlFactory$1.smali
.class Lokhttp3/OkUrlFactory$1;
.super Ljava/net/URLStreamHandler;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/OkUrlFactory;->createURLStreamHandler(Ljava/lang/String;)Ljava/net/URLStreamHandler;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lokhttp3/OkUrlFactory;
.field public final synthetic val$protocol:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lokhttp3/OkUrlFactory;Ljava/lang/String;)V
.registers 3
iput-object p1, p0, Lokhttp3/OkUrlFactory$1;->this$0:Lokhttp3/OkUrlFactory;
iput-object p2, p0, Lokhttp3/OkUrlFactory$1;->val$protocol:Ljava/lang/String;
invoke-direct {p0}, Ljava/net/URLStreamHandler;-><init>()V
return-void
.end method
# virtual methods
.method public getDefaultPort()I
.registers 3
.line 1
iget-object v0, p0, Lokhttp3/OkUrlFactory$1;->val$protocol:Ljava/lang/String;
const-string v1, "http"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_d
const/16 v0, 0x50
return v0
.line 2
:cond_d
iget-object v0, p0, Lokhttp3/OkUrlFactory$1;->val$protocol:Ljava/lang/String;
const-string v1, "https"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1a
const/16 v0, 0x1bb
return v0
.line 3
:cond_1a
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.end method
.method public openConnection(Ljava/net/URL;)Ljava/net/URLConnection;
.registers 3
.line 1
iget-object v0, p0, Lokhttp3/OkUrlFactory$1;->this$0:Lokhttp3/OkUrlFactory;
invoke-virtual {v0, p1}, Lokhttp3/OkUrlFactory;->open(Ljava/net/URL;)Ljava/net/HttpURLConnection;
move-result-object p1
return-object p1
.end method
.method public openConnection(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/URLConnection;
.registers 4
.line 2
iget-object v0, p0, Lokhttp3/OkUrlFactory$1;->this$0:Lokhttp3/OkUrlFactory;
invoke-virtual {v0, p1, p2}, Lokhttp3/OkUrlFactory;->open(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/HttpURLConnection;
move-result-object p1
return-object p1
.end method