255 lines
8.3 KiB
Smali
255 lines
8.3 KiB
Smali
.class public Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "FramedConnection.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/framed/FramedConnection;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private client:Z
|
|
|
|
.field private hostname:Ljava/lang/String;
|
|
|
|
.field private listener:Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
|
|
.field private protocol:Lokhttp3/Protocol;
|
|
|
|
.field private pushObserver:Lokhttp3/internal/framed/PushObserver;
|
|
|
|
.field private sink:Lokio/BufferedSink;
|
|
|
|
.field private socket:Ljava/net/Socket;
|
|
|
|
.field private source:Lokio/BufferedSource;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Z)V
|
|
.locals 1
|
|
.param p1, "client" # Z
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sget-object v0, Lokhttp3/internal/framed/FramedConnection$Listener;->REFUSE_INCOMING_STREAMS:Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->listener:Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
|
|
sget-object v0, Lokhttp3/Protocol;->SPDY_3:Lokhttp3/Protocol;
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->protocol:Lokhttp3/Protocol;
|
|
|
|
sget-object v0, Lokhttp3/internal/framed/PushObserver;->CANCEL:Lokhttp3/internal/framed/PushObserver;
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->pushObserver:Lokhttp3/internal/framed/PushObserver;
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->client:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$000(Lokhttp3/internal/framed/FramedConnection$Builder;)Lokhttp3/Protocol;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->protocol:Lokhttp3/Protocol;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic access$100(Lokhttp3/internal/framed/FramedConnection$Builder;)Lokhttp3/internal/framed/PushObserver;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->pushObserver:Lokhttp3/internal/framed/PushObserver;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic access$200(Lokhttp3/internal/framed/FramedConnection$Builder;)Z
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-boolean v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->client:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method static synthetic access$300(Lokhttp3/internal/framed/FramedConnection$Builder;)Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->listener:Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic access$400(Lokhttp3/internal/framed/FramedConnection$Builder;)Ljava/lang/String;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->hostname:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic access$500(Lokhttp3/internal/framed/FramedConnection$Builder;)Ljava/net/Socket;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->socket:Ljava/net/Socket;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic access$600(Lokhttp3/internal/framed/FramedConnection$Builder;)Lokio/BufferedSink;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->sink:Lokio/BufferedSink;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic access$700(Lokhttp3/internal/framed/FramedConnection$Builder;)Lokio/BufferedSource;
|
|
.locals 1
|
|
.param p0, "x0" # Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->source:Lokio/BufferedSource;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public build()Lokhttp3/internal/framed/FramedConnection;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
new-instance v0, Lokhttp3/internal/framed/FramedConnection;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p0, v1}, Lokhttp3/internal/framed/FramedConnection;-><init>(Lokhttp3/internal/framed/FramedConnection$Builder;Lokhttp3/internal/framed/FramedConnection$1;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public listener(Lokhttp3/internal/framed/FramedConnection$Listener;)Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
.locals 0
|
|
.param p1, "listener" # Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->listener:Lokhttp3/internal/framed/FramedConnection$Listener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public protocol(Lokhttp3/Protocol;)Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
.locals 0
|
|
.param p1, "protocol" # Lokhttp3/Protocol;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->protocol:Lokhttp3/Protocol;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public pushObserver(Lokhttp3/internal/framed/PushObserver;)Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
.locals 0
|
|
.param p1, "pushObserver" # Lokhttp3/internal/framed/PushObserver;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->pushObserver:Lokhttp3/internal/framed/PushObserver;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public socket(Ljava/net/Socket;)Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
.locals 3
|
|
.param p1, "socket" # Ljava/net/Socket;
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
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
|
|
|
|
invoke-static {p1}, Lokio/Okio;->source(Ljava/net/Socket;)Lokio/Source;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p1}, Lokio/Okio;->sink(Ljava/net/Socket;)Lokio/Sink;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, p1, v0, v1, v2}, Lokhttp3/internal/framed/FramedConnection$Builder;->socket(Ljava/net/Socket;Ljava/lang/String;Lokio/BufferedSource;Lokio/BufferedSink;)Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public socket(Ljava/net/Socket;Ljava/lang/String;Lokio/BufferedSource;Lokio/BufferedSink;)Lokhttp3/internal/framed/FramedConnection$Builder;
|
|
.locals 0
|
|
.param p1, "socket" # Ljava/net/Socket;
|
|
.param p2, "hostname" # Ljava/lang/String;
|
|
.param p3, "source" # Lokio/BufferedSource;
|
|
.param p4, "sink" # Lokio/BufferedSink;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->socket:Ljava/net/Socket;
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->hostname:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->source:Lokio/BufferedSource;
|
|
|
|
iput-object p4, p0, Lokhttp3/internal/framed/FramedConnection$Builder;->sink:Lokio/BufferedSink;
|
|
|
|
return-object p0
|
|
.end method
|