- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
955 lines
22 KiB
Smali
955 lines
22 KiB
Smali
.class public final Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final FORCE_CACHE:Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
.field public static final FORCE_NETWORK:Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
|
|
# instance fields
|
|
.field headerValue:Ljava/lang/String;
|
|
|
|
.field private final immutable:Z
|
|
|
|
.field private final isPrivate:Z
|
|
|
|
.field private final isPublic:Z
|
|
|
|
.field private final maxAgeSeconds:I
|
|
|
|
.field private final maxStaleSeconds:I
|
|
|
|
.field private final minFreshSeconds:I
|
|
|
|
.field private final mustRevalidate:Z
|
|
|
|
.field private final noCache:Z
|
|
|
|
.field private final noStore:Z
|
|
|
|
.field private final noTransform:Z
|
|
|
|
.field private final onlyIfCached:Z
|
|
|
|
.field private final sMaxAgeSeconds:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 18
|
|
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;-><init>()V
|
|
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->noCache()Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->FORCE_NETWORK:Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
.line 25
|
|
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;-><init>()V
|
|
|
|
.line 26
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->onlyIfCached()Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
.line 27
|
|
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->maxStale(ILjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 28
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->FORCE_CACHE:Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;)V
|
|
.locals 1
|
|
|
|
.line 64
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 65
|
|
iget-boolean v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->noCache:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noCache:Z
|
|
|
|
.line 66
|
|
iget-boolean v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->noStore:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noStore:Z
|
|
|
|
.line 67
|
|
iget v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->maxAgeSeconds:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->sMaxAgeSeconds:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPrivate:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPublic:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->mustRevalidate:Z
|
|
|
|
.line 72
|
|
iget v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->maxStaleSeconds:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds:I
|
|
|
|
.line 73
|
|
iget v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->minFreshSeconds:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds:I
|
|
|
|
.line 74
|
|
iget-boolean v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->onlyIfCached:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->onlyIfCached:Z
|
|
|
|
.line 75
|
|
iget-boolean v0, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->noTransform:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noTransform:Z
|
|
|
|
.line 76
|
|
iget-boolean p1, p1, Lcom/mbridge/msdk/thrid/okhttp/CacheControl$Builder;->immutable:Z
|
|
|
|
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->immutable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(ZZIIZZZIIZZZLjava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 48
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noCache:Z
|
|
|
|
iput-boolean p2, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noStore:Z
|
|
|
|
iput p3, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds:I
|
|
|
|
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->sMaxAgeSeconds:I
|
|
|
|
iput-boolean p5, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPrivate:Z
|
|
|
|
iput-boolean p6, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPublic:Z
|
|
|
|
iput-boolean p7, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->mustRevalidate:Z
|
|
|
|
iput p8, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds:I
|
|
|
|
iput p9, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds:I
|
|
|
|
iput-boolean p10, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->onlyIfCached:Z
|
|
|
|
iput-boolean p11, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noTransform:Z
|
|
|
|
iput-boolean p12, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->immutable:Z
|
|
|
|
iput-object p13, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->headerValue:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private headerValue()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 259
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noCache:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "no-cache, "
|
|
|
|
.line 260
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_0
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noStore:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "no-store, "
|
|
|
|
.line 261
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_1
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds:I
|
|
|
|
const-string v2, ", "
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v1, v3, :cond_2
|
|
|
|
const-string v1, "max-age="
|
|
|
|
.line 262
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_2
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->sMaxAgeSeconds:I
|
|
|
|
if-eq v1, v3, :cond_3
|
|
|
|
const-string v1, "s-maxage="
|
|
|
|
.line 263
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->sMaxAgeSeconds:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_3
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPrivate:Z
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
const-string v1, "private, "
|
|
|
|
.line 264
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_4
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPublic:Z
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
const-string v1, "public, "
|
|
|
|
.line 265
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_5
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->mustRevalidate:Z
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
const-string v1, "must-revalidate, "
|
|
|
|
.line 266
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_6
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds:I
|
|
|
|
if-eq v1, v3, :cond_7
|
|
|
|
const-string v1, "max-stale="
|
|
|
|
.line 267
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_7
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds:I
|
|
|
|
if-eq v1, v3, :cond_8
|
|
|
|
const-string v1, "min-fresh="
|
|
|
|
.line 268
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_8
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->onlyIfCached:Z
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
const-string v1, "only-if-cached, "
|
|
|
|
.line 269
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_9
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noTransform:Z
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
const-string v1, "no-transform, "
|
|
|
|
.line 270
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_a
|
|
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->immutable:Z
|
|
|
|
if-eqz v1, :cond_b
|
|
|
|
const-string v1, "immutable, "
|
|
|
|
.line 271
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 272
|
|
:cond_b
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_c
|
|
|
|
const-string v0, ""
|
|
|
|
return-object v0
|
|
|
|
.line 273
|
|
:cond_c
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x2
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;
|
|
|
|
.line 274
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static parse(Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
.locals 22
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
.line 169
|
|
invoke-virtual/range {p0 .. p0}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, -0x1
|
|
|
|
const/4 v12, -0x1
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, -0x1
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x0
|
|
|
|
:goto_0
|
|
if-ge v6, v1, :cond_12
|
|
|
|
.line 170
|
|
invoke-virtual {v0, v6}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 171
|
|
invoke-virtual {v0, v6}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v3, "Cache-Control"
|
|
|
|
.line 173
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
if-eqz v8, :cond_0
|
|
|
|
:goto_1
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
move-object v8, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const-string v3, "Pragma"
|
|
|
|
.line 180
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_11
|
|
|
|
goto :goto_1
|
|
|
|
:goto_2
|
|
const/4 v2, 0x0
|
|
|
|
.line 188
|
|
:goto_3
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v2, v3, :cond_11
|
|
|
|
const-string v3, "=,;"
|
|
|
|
.line 190
|
|
invoke-static {v5, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->skipUntil(Ljava/lang/String;ILjava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
.line 191
|
|
invoke-virtual {v5, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 194
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
if-eq v3, v4, :cond_2
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v4
|
|
|
|
const/16 v0, 0x2c
|
|
|
|
if-eq v4, v0, :cond_2
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
const/16 v4, 0x3b
|
|
|
|
if-ne v0, v4, :cond_3
|
|
|
|
:cond_2
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_3
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 199
|
|
invoke-static {v5, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->skipWhitespace(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
.line 202
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v0, v3, :cond_4
|
|
|
|
invoke-virtual {v5, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x22
|
|
|
|
if-ne v3, v4, :cond_4
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
const-string v3, "\""
|
|
|
|
.line 205
|
|
invoke-static {v5, v0, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->skipUntil(Ljava/lang/String;ILjava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
.line 206
|
|
invoke-virtual {v5, v0, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
goto :goto_5
|
|
|
|
:cond_4
|
|
const/4 v4, 0x1
|
|
|
|
const-string v3, ",;"
|
|
|
|
.line 212
|
|
invoke-static {v5, v0, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->skipUntil(Ljava/lang/String;ILjava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
.line 213
|
|
invoke-virtual {v5, v0, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_5
|
|
|
|
:goto_4
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_5
|
|
const-string v4, "no-cache"
|
|
|
|
.line 217
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_5
|
|
const-string v4, "no-store"
|
|
|
|
.line 219
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_6
|
|
const-string v4, "max-age"
|
|
|
|
.line 221
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
const/4 v4, -0x1
|
|
|
|
.line 222
|
|
invoke-static {v0, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
move v11, v0
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_7
|
|
const-string v4, "s-maxage"
|
|
|
|
.line 223
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
const/4 v4, -0x1
|
|
|
|
.line 224
|
|
invoke-static {v0, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
move v12, v0
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_8
|
|
const-string v4, "private"
|
|
|
|
.line 225
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
const-string v4, "public"
|
|
|
|
.line 227
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_a
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_a
|
|
const-string v4, "must-revalidate"
|
|
|
|
.line 229
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const/4 v15, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
const-string v4, "max-stale"
|
|
|
|
.line 231
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_c
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
.line 232
|
|
invoke-static {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
move/from16 v16, v0
|
|
|
|
const/4 v4, -0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
const-string v4, "min-fresh"
|
|
|
|
.line 233
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_d
|
|
|
|
const/4 v4, -0x1
|
|
|
|
.line 234
|
|
invoke-static {v0, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
move/from16 v17, v0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
const/4 v4, -0x1
|
|
|
|
const-string v0, "only-if-cached"
|
|
|
|
.line 235
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
const/16 v18, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_e
|
|
const-string v0, "no-transform"
|
|
|
|
.line 237
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
const/16 v19, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_f
|
|
const-string v0, "immutable"
|
|
|
|
.line 239
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
const/16 v20, 0x1
|
|
|
|
:cond_10
|
|
:goto_6
|
|
move-object/from16 v0, p0
|
|
|
|
move v2, v3
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_11
|
|
const/4 v4, -0x1
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_12
|
|
if-nez v7, :cond_13
|
|
|
|
const/16 v21, 0x0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_13
|
|
move-object/from16 v21, v8
|
|
|
|
.line 248
|
|
:goto_7
|
|
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
|
|
|
|
move-object v8, v0
|
|
|
|
invoke-direct/range {v8 .. v21}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;-><init>(ZZIIZZZIIZZZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public immutable()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->immutable:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isPrivate()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPrivate:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isPublic()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPublic:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public maxAgeSeconds()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public maxStaleSeconds()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public minFreshSeconds()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public mustRevalidate()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->mustRevalidate:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public noCache()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noCache:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public noStore()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noStore:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public noTransform()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noTransform:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onlyIfCached()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->onlyIfCached:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public sMaxAgeSeconds()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->sMaxAgeSeconds:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->headerValue:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 255
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->headerValue()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->headerValue:Ljava/lang/String;
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|