Http2Connection$Builder.smali
.class public Lokhttp3/internal/http2/Http2Connection$Builder;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/http2/Http2Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
# instance fields
.field public client:Z
.field public hostname:Ljava/lang/String;
.field public listener:Lokhttp3/internal/http2/Http2Connection$Listener;
.field public pingIntervalMillis:I
.field public pushObserver:Lokhttp3/internal/http2/PushObserver;
.field public sink:Lokio/c;
.field public socket:Ljava/net/Socket;
.field public source:Lokio/d;
# direct methods
.method public constructor <init>(Z)V
.registers 3
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
sget-object v0, Lokhttp3/internal/http2/Http2Connection$Listener;->REFUSE_INCOMING_STREAMS:Lokhttp3/internal/http2/Http2Connection$Listener;
iput-object v0, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->listener:Lokhttp3/internal/http2/Http2Connection$Listener;
.line 3
sget-object v0, Lokhttp3/internal/http2/PushObserver;->CANCEL:Lokhttp3/internal/http2/PushObserver;
iput-object v0, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->pushObserver:Lokhttp3/internal/http2/PushObserver;
.line 4
iput-boolean p1, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->client:Z
return-void
.end method
# virtual methods
.method public build()Lokhttp3/internal/http2/Http2Connection;
.registers 2
new-instance v0, Lokhttp3/internal/http2/Http2Connection;
invoke-direct {v0, p0}, Lokhttp3/internal/http2/Http2Connection;-><init>(Lokhttp3/internal/http2/Http2Connection$Builder;)V
return-object v0
.end method
.method public listener(Lokhttp3/internal/http2/Http2Connection$Listener;)Lokhttp3/internal/http2/Http2Connection$Builder;
.registers 2
iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->listener:Lokhttp3/internal/http2/Http2Connection$Listener;
return-object p0
.end method
.method public pingIntervalMillis(I)Lokhttp3/internal/http2/Http2Connection$Builder;
.registers 2
iput p1, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->pingIntervalMillis:I
return-object p0
.end method
.method public pushObserver(Lokhttp3/internal/http2/PushObserver;)Lokhttp3/internal/http2/Http2Connection$Builder;
.registers 2
iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->pushObserver:Lokhttp3/internal/http2/PushObserver;
return-object p0
.end method
.method public socket(Ljava/net/Socket;)Lokhttp3/internal/http2/Http2Connection$Builder;
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/net/Socket;->getRemoteSocketAddress()Ljava/net/SocketAddress;
move-result-object v0
check-cast v0, Ljava/net/InetSocketAddress;
invoke-virtual {v0}, Ljava/net/InetSocketAddress;->getHostName()Ljava/lang/String;
move-result-object v0
.line 2
invoke-static {p1}, Lokio/k;->j(Ljava/net/Socket;)Lokio/w;
move-result-object v1
.line 3
new-instance v2, Lokio/r;
invoke-direct {v2, v1}, Lokio/r;-><init>(Lokio/w;)V
.line 4
invoke-static {p1}, Lokio/k;->f(Ljava/net/Socket;)Lokio/v;
move-result-object v1
.line 5
new-instance v3, Lokio/q;
invoke-direct {v3, v1}, Lokio/q;-><init>(Lokio/v;)V
.line 6
invoke-virtual {p0, p1, v0, v2, v3}, Lokhttp3/internal/http2/Http2Connection$Builder;->socket(Ljava/net/Socket;Ljava/lang/String;Lokio/d;Lokio/c;)Lokhttp3/internal/http2/Http2Connection$Builder;
move-result-object p1
return-object p1
.end method
.method public socket(Ljava/net/Socket;Ljava/lang/String;Lokio/d;Lokio/c;)Lokhttp3/internal/http2/Http2Connection$Builder;
.registers 5
.line 7
iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->socket:Ljava/net/Socket;
.line 8
iput-object p2, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->hostname:Ljava/lang/String;
.line 9
iput-object p3, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->source:Lokio/d;
.line 10
iput-object p4, p0, Lokhttp3/internal/http2/Http2Connection$Builder;->sink:Lokio/c;
return-object p0
.end method