* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1260 lines
32 KiB
Smali
1260 lines
32 KiB
Smali
.class public Lorg/jsoup/helper/HttpConnection;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lorg/jsoup/Connection;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lorg/jsoup/helper/HttpConnection$Request;,
|
|
Lorg/jsoup/helper/HttpConnection$Response;,
|
|
Lorg/jsoup/helper/HttpConnection$KeyVal;,
|
|
Lorg/jsoup/helper/HttpConnection$Base;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CONTENT_ENCODING:Ljava/lang/String; = "Content-Encoding"
|
|
|
|
.field public static final CONTENT_TYPE:Ljava/lang/String; = "Content-Type"
|
|
|
|
.field public static final DEFAULT_UA:Ljava/lang/String; = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36"
|
|
|
|
.field public static final FORM_URL_ENCODED:Ljava/lang/String; = "application/x-www-form-urlencoded"
|
|
|
|
.field public static final MULTIPART_FORM_DATA:Ljava/lang/String; = "multipart/form-data"
|
|
|
|
.field public static final c:Ljava/nio/charset/Charset;
|
|
|
|
|
|
# instance fields
|
|
.field public a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.field public b:Lorg/jsoup/Connection$Response;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "ISO-8859-1"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
sput-object v0, Lorg/jsoup/helper/HttpConnection;->c:Ljava/nio/charset/Charset;
|
|
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-direct {v0}, Lorg/jsoup/helper/HttpConnection$Request;-><init>()V
|
|
|
|
iput-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lorg/jsoup/helper/HttpConnection$Request;Lorg/jsoup/helper/HttpConnection$Response;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
iput-object p1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 5
|
|
iput-object p2, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static connect(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lorg/jsoup/helper/HttpConnection;
|
|
|
|
invoke-direct {v0}, Lorg/jsoup/helper/HttpConnection;-><init>()V
|
|
|
|
.line 2
|
|
invoke-interface {v0, p0}, Lorg/jsoup/Connection;->url(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static connect(Ljava/net/URL;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 3
|
|
new-instance v0, Lorg/jsoup/helper/HttpConnection;
|
|
|
|
invoke-direct {v0}, Lorg/jsoup/helper/HttpConnection;-><init>()V
|
|
|
|
.line 4
|
|
invoke-interface {v0, p0}, Lorg/jsoup/Connection;->url(Ljava/net/URL;)Lorg/jsoup/Connection;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public auth(Lorg/jsoup/helper/RequestAuthenticator;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->auth(Lorg/jsoup/helper/RequestAuthenticator;)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public cookie(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1, p2}, Lorg/jsoup/helper/HttpConnection$Request;->cookie(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public cookieStore()Ljava/net/CookieStore;
|
|
.locals 1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 4
|
|
iget-object v0, v0, Lorg/jsoup/helper/HttpConnection$Request;->t:Ljava/net/CookieManager;
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Ljava/net/CookieManager;->getCookieStore()Ljava/net/CookieStore;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public cookieStore(Ljava/net/CookieStore;)Lorg/jsoup/Connection;
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
new-instance v1, Ljava/net/CookieManager;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, p1, v2}, Ljava/net/CookieManager;-><init>(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V
|
|
|
|
.line 2
|
|
iput-object v1, v0, Lorg/jsoup/helper/HttpConnection$Request;->t:Ljava/net/CookieManager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public cookies(Ljava/util/Map;)Lorg/jsoup/Connection;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;)",
|
|
"Lorg/jsoup/Connection;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "cookies"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v0
|
|
|
|
.line 18
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
check-cast v0, Ljava/util/Map$Entry;
|
|
|
|
.line 25
|
|
.line 26
|
|
iget-object v1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v2
|
|
|
|
.line 32
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v0
|
|
|
|
.line 38
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v1, v2, v0}, Lorg/jsoup/helper/HttpConnection$Request;->cookie(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
goto :goto_0
|
|
|
|
.line 44
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public data(Ljava/lang/String;)Lorg/jsoup/Connection$KeyVal;
|
|
.locals 3
|
|
|
|
.line 18
|
|
const-string v0, "key"
|
|
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notEmptyParam(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
invoke-virtual {p0}, Lorg/jsoup/helper/HttpConnection;->request()Lorg/jsoup/Connection$Request;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Lorg/jsoup/Connection$Request;->data()Ljava/util/Collection;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lorg/jsoup/Connection$KeyVal;
|
|
|
|
.line 20
|
|
invoke-interface {v1}, Lorg/jsoup/Connection$KeyVal;->key()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public data(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-static {p1, p2}, Lorg/jsoup/helper/HttpConnection$KeyVal;->create(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/helper/HttpConnection$KeyVal;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->data(Lorg/jsoup/Connection$KeyVal;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public data(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-static {p1, p2, p3}, Lorg/jsoup/helper/HttpConnection$KeyVal;->create(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;)Lorg/jsoup/helper/HttpConnection$KeyVal;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->data(Lorg/jsoup/Connection$KeyVal;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public data(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-static {p1, p2, p3}, Lorg/jsoup/helper/HttpConnection$KeyVal;->create(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;)Lorg/jsoup/helper/HttpConnection$KeyVal;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p4}, Lorg/jsoup/helper/HttpConnection$KeyVal;->contentType(Ljava/lang/String;)Lorg/jsoup/Connection$KeyVal;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->data(Lorg/jsoup/Connection$KeyVal;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public data(Ljava/util/Collection;)Lorg/jsoup/Connection;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"Lorg/jsoup/Connection$KeyVal;",
|
|
">;)",
|
|
"Lorg/jsoup/Connection;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 15
|
|
const-string v0, "data"
|
|
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 16
|
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lorg/jsoup/Connection$KeyVal;
|
|
|
|
.line 17
|
|
iget-object v1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-virtual {v1, v0}, Lorg/jsoup/helper/HttpConnection$Request;->data(Lorg/jsoup/Connection$KeyVal;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public data(Ljava/util/Map;)Lorg/jsoup/Connection;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;)",
|
|
"Lorg/jsoup/Connection;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 4
|
|
const-string v0, "data"
|
|
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/Map$Entry;
|
|
|
|
.line 6
|
|
iget-object v1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
invoke-static {v2, v0}, Lorg/jsoup/helper/HttpConnection$KeyVal;->create(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/helper/HttpConnection$KeyVal;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Lorg/jsoup/helper/HttpConnection$Request;->data(Lorg/jsoup/Connection$KeyVal;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public varargs data([Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 4
|
|
|
|
.line 7
|
|
const-string v0, "keyvals"
|
|
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 8
|
|
array-length v0, p1
|
|
|
|
rem-int/lit8 v0, v0, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
const-string v2, "Must supply an even number of key value pairs"
|
|
|
|
invoke-static {v0, v2}, Lorg/jsoup/helper/Validate;->isTrue(ZLjava/lang/String;)V
|
|
|
|
.line 9
|
|
:goto_1
|
|
array-length v0, p1
|
|
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 10
|
|
aget-object v0, p1, v1
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 11
|
|
aget-object v2, p1, v2
|
|
|
|
.line 12
|
|
const-string v3, "Data key must not be empty"
|
|
|
|
invoke-static {v0, v3}, Lorg/jsoup/helper/Validate;->notEmpty(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
const-string v3, "Data value must not be null"
|
|
|
|
invoke-static {v2, v3}, Lorg/jsoup/helper/Validate;->notNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
iget-object v3, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-static {v0, v2}, Lorg/jsoup/helper/HttpConnection$KeyVal;->create(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/helper/HttpConnection$KeyVal;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Lorg/jsoup/helper/HttpConnection$Request;->data(Lorg/jsoup/Connection$KeyVal;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
add-int/lit8 v1, v1, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public execute()Lorg/jsoup/Connection$Response;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
invoke-static {v0, v1}, Lorg/jsoup/helper/HttpConnection$Response;->b(Lorg/jsoup/helper/HttpConnection$Request;Lorg/jsoup/helper/HttpConnection$Response;)Lorg/jsoup/helper/HttpConnection$Response;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
iput-object v0, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
.line 9
|
|
.line 10
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public followRedirects(Z)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->followRedirects(Z)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public get()Lorg/jsoup/nodes/Document;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
sget-object v1, Lorg/jsoup/Connection$Method;->GET:Lorg/jsoup/Connection$Method;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Lorg/jsoup/helper/HttpConnection$Request;->method(Lorg/jsoup/Connection$Method;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Lorg/jsoup/helper/HttpConnection;->execute()Lorg/jsoup/Connection$Response;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {v0}, Lorg/jsoup/helper/Validate;->notNull(Ljava/lang/Object;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-interface {v0}, Lorg/jsoup/Connection$Response;->parse()Lorg/jsoup/nodes/Document;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public header(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1, p2}, Lorg/jsoup/helper/HttpConnection$Request;->header(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public headers(Ljava/util/Map;)Lorg/jsoup/Connection;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;)",
|
|
"Lorg/jsoup/Connection;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "headers"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v0
|
|
|
|
.line 18
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
check-cast v0, Ljava/util/Map$Entry;
|
|
|
|
.line 25
|
|
.line 26
|
|
iget-object v1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v2
|
|
|
|
.line 32
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v0
|
|
|
|
.line 38
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v1, v2, v0}, Lorg/jsoup/helper/HttpConnection$Request;->header(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
goto :goto_0
|
|
|
|
.line 44
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public ignoreContentType(Z)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->ignoreContentType(Z)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public ignoreHttpErrors(Z)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->ignoreHttpErrors(Z)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public maxBodySize(I)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->maxBodySize(I)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public method(Lorg/jsoup/Connection$Method;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->method(Lorg/jsoup/Connection$Method;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public newRequest()Lorg/jsoup/Connection;
|
|
.locals 3
|
|
|
|
.line 3
|
|
new-instance v0, Lorg/jsoup/helper/HttpConnection;
|
|
|
|
iget-object v1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 4
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 5
|
|
new-instance v2, Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-direct {v2, v1}, Lorg/jsoup/helper/HttpConnection$Request;-><init>(Lorg/jsoup/helper/HttpConnection$Request;)V
|
|
|
|
iput-object v2, v0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final synthetic newRequest(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Lorg/jsoup/a;->b(Lorg/jsoup/Connection;Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final synthetic newRequest(Ljava/net/URL;)Lorg/jsoup/Connection;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lorg/jsoup/a;->c(Lorg/jsoup/Connection;Ljava/net/URL;)Lorg/jsoup/Connection;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onResponseProgress(Lorg/jsoup/Progress;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/jsoup/Progress<",
|
|
"Lorg/jsoup/Connection$Response;",
|
|
">;)",
|
|
"Lorg/jsoup/Connection;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
iput-object p1, v0, Lorg/jsoup/helper/HttpConnection$Request;->v:Lorg/jsoup/Progress;
|
|
|
|
.line 4
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public parser(Lorg/jsoup/parser/Parser;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->parser(Lorg/jsoup/parser/Parser;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public post()Lorg/jsoup/nodes/Document;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
sget-object v1, Lorg/jsoup/Connection$Method;->POST:Lorg/jsoup/Connection$Method;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Lorg/jsoup/helper/HttpConnection$Request;->method(Lorg/jsoup/Connection$Method;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Lorg/jsoup/helper/HttpConnection;->execute()Lorg/jsoup/Connection$Response;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {v0}, Lorg/jsoup/helper/Validate;->notNull(Ljava/lang/Object;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-interface {v0}, Lorg/jsoup/Connection$Response;->parse()Lorg/jsoup/nodes/Document;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public postDataCharset(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->postDataCharset(Ljava/lang/String;)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public proxy(Ljava/lang/String;I)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lorg/jsoup/helper/HttpConnection$Request;->proxy(Ljava/lang/String;I)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public proxy(Ljava/net/Proxy;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->proxy(Ljava/net/Proxy;)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public referrer(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "referrer"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "Referer"
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0, v1, p1}, Lorg/jsoup/helper/HttpConnection$Request;->header(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public request()Lorg/jsoup/Connection$Request;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public request(Lorg/jsoup/Connection$Request;)Lorg/jsoup/Connection;
|
|
.locals 0
|
|
|
|
.line 2
|
|
check-cast p1, Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
iput-object p1, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public requestBody(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->requestBody(Ljava/lang/String;)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public requestBodyStream(Ljava/io/InputStream;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->requestBodyStream(Ljava/io/InputStream;)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public response()Lorg/jsoup/Connection$Response;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "You must execute the request before getting a response."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public response(Lorg/jsoup/Connection$Response;)Lorg/jsoup/Connection;
|
|
.locals 0
|
|
|
|
.line 3
|
|
iput-object p1, p0, Lorg/jsoup/helper/HttpConnection;->b:Lorg/jsoup/Connection$Response;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public sslContext(Ljavax/net/ssl/SSLContext;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->sslContext(Ljavax/net/ssl/SSLContext;)Lorg/jsoup/Connection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public sslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->sslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public timeout(I)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->timeout(I)Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public url(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 4
|
|
|
|
.line 2
|
|
const-string v0, "url"
|
|
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notEmptyParam(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 3
|
|
:try_start_0
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
new-instance v1, Ljava/net/URL;
|
|
|
|
invoke-direct {v1, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Lorg/jsoup/helper/HttpConnection$Request;->url(Ljava/net/URL;)Lorg/jsoup/Connection$Base;
|
|
:try_end_0
|
|
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v2, "The supplied URL, \'"
|
|
|
|
const-string v3, "\', is malformed. Make sure it is an absolute URL, and starts with \'http://\' or \'https://\'. See https://jsoup.org/cookbook/extracting-data/working-with-urls"
|
|
|
|
.line 5
|
|
invoke-static {v2, p1, v3}, Landroid/support/v4/media/a;->l(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 6
|
|
invoke-direct {v1, p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public url(Ljava/net/URL;)Lorg/jsoup/Connection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
invoke-virtual {v0, p1}, Lorg/jsoup/helper/HttpConnection$Request;->url(Ljava/net/URL;)Lorg/jsoup/Connection$Base;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public userAgent(Ljava/lang/String;)Lorg/jsoup/Connection;
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "userAgent"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lorg/jsoup/helper/Validate;->notNullParam(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lorg/jsoup/helper/HttpConnection;->a:Lorg/jsoup/helper/HttpConnection$Request;
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "User-Agent"
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0, v1, p1}, Lorg/jsoup/helper/HttpConnection$Request;->header(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection$Base;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-object p0
|
|
.end method
|