259 lines
5.6 KiB
Smali
259 lines
5.6 KiB
Smali
.class public final Lokhttp3/internal/http2/Header;
|
|
.super Ljava/lang/Object;
|
|
.source "Header.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lokio/ByteString;
|
|
|
|
.field public static final b:Lokio/ByteString;
|
|
|
|
.field public static final c:Lokio/ByteString;
|
|
|
|
.field public static final d:Lokio/ByteString;
|
|
|
|
.field public static final e:Lokio/ByteString;
|
|
|
|
.field public static final f:Lokio/ByteString;
|
|
|
|
|
|
# instance fields
|
|
.field public final g:Lokio/ByteString;
|
|
|
|
.field public final h:Lokio/ByteString;
|
|
|
|
.field final i:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-string v0, ":"
|
|
|
|
.line 24
|
|
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Header;->a:Lokio/ByteString;
|
|
|
|
const-string v0, ":status"
|
|
|
|
.line 25
|
|
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Header;->b:Lokio/ByteString;
|
|
|
|
const-string v0, ":method"
|
|
|
|
.line 26
|
|
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Header;->c:Lokio/ByteString;
|
|
|
|
const-string v0, ":path"
|
|
|
|
.line 27
|
|
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Header;->d:Lokio/ByteString;
|
|
|
|
const-string v0, ":scheme"
|
|
|
|
.line 28
|
|
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Header;->e:Lokio/ByteString;
|
|
|
|
const-string v0, ":authority"
|
|
|
|
.line 29
|
|
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Header;->f:Lokio/ByteString;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-static {p1}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p2}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p0, p1, p2}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Lokio/ByteString;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokio/ByteString;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 43
|
|
invoke-static {p2}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p0, p1, p2}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Lokio/ByteString;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokio/ByteString;Lokio/ByteString;)V
|
|
.locals 0
|
|
|
|
.line 46
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 47
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
|
|
|
|
.line 48
|
|
iput-object p2, p0, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
|
|
|
|
.line 49
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 p1, p1, 0x20
|
|
|
|
invoke-virtual {p2}, Lokio/ByteString;->size()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
iput p1, p0, Lokhttp3/internal/http2/Header;->i:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 3
|
|
|
|
.line 53
|
|
instance-of v0, p1, Lokhttp3/internal/http2/Header;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 54
|
|
check-cast p1, Lokhttp3/internal/http2/Header;
|
|
|
|
.line 55
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
|
|
|
|
iget-object v2, p1, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
|
|
|
|
invoke-virtual {v0, v2}, Lokio/ByteString;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
|
|
|
|
iget-object p1, p1, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
|
|
|
|
.line 56
|
|
invoke-virtual {v0, p1}, Lokio/ByteString;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
.line 63
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
|
|
|
|
invoke-virtual {v0}, Lokio/ByteString;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x20f
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
.line 64
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
|
|
|
|
invoke-virtual {v0}, Lokio/ByteString;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "%s: %s"
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 69
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
|
|
|
|
invoke-virtual {v2}, Lokio/ByteString;->utf8()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
|
|
|
|
invoke-virtual {v2}, Lokio/ByteString;->utf8()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/internal/Util;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|