2020-11-16 01:00:50 +00:00
|
|
|
.class public final Lh0/a0$a;
|
2020-11-13 19:18:44 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "RequestFactory.java"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-11-16 01:00:50 +00:00
|
|
|
value = Lh0/a0;
|
2020-11-12 02:11:44 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final x:Ljava/util/regex/Pattern;
|
|
|
|
|
|
|
|
.field public static final y:Ljava/util/regex/Pattern;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public final a:Lh0/d0;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
.field public final b:Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
.field public final c:[Ljava/lang/annotation/Annotation;
|
|
|
|
|
|
|
|
.field public final d:[[Ljava/lang/annotation/Annotation;
|
|
|
|
|
|
|
|
.field public final e:[Ljava/lang/reflect/Type;
|
|
|
|
|
|
|
|
.field public f:Z
|
|
|
|
|
|
|
|
.field public g:Z
|
|
|
|
|
|
|
|
.field public h:Z
|
|
|
|
|
|
|
|
.field public i:Z
|
|
|
|
|
|
|
|
.field public j:Z
|
|
|
|
|
|
|
|
.field public k:Z
|
|
|
|
|
|
|
|
.field public l:Z
|
|
|
|
|
|
|
|
.field public m:Z
|
|
|
|
|
|
|
|
.field public n:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public o:Z
|
|
|
|
|
|
|
|
.field public p:Z
|
|
|
|
|
|
|
|
.field public q:Z
|
|
|
|
|
|
|
|
.field public r:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public s:Lokhttp3/Headers;
|
|
|
|
|
|
|
|
.field public t:Lokhttp3/MediaType;
|
|
|
|
|
|
|
|
.field public u:Ljava/util/Set;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public v:[Lh0/x;
|
2020-11-13 19:18:44 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"[",
|
2020-11-16 01:00:50 +00:00
|
|
|
"Lh0/x<",
|
2020-11-13 19:18:44 +00:00
|
|
|
"*>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public w:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, "\\{([a-zA-Z][a-zA-Z0-9_-]*)\\}"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sput-object v0, Lh0/a0$a;->x:Ljava/util/regex/Pattern;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, "[a-zA-Z][a-zA-Z0-9_-]*"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sput-object v0, Lh0/a0$a;->y:Ljava/util/regex/Pattern;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.method public constructor <init>(Lh0/d0;Ljava/lang/reflect/Method;)V
|
2020-11-13 19:18:44 +00:00
|
|
|
.locals 0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lh0/a0$a;->a:Lh0/d0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p2, p0, Lh0/a0$a;->b:Ljava/lang/reflect/Method;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getAnnotations()[Ljava/lang/annotation/Annotation;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lh0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getGenericParameterTypes()[Ljava/lang/reflect/Type;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lh0/a0$a;->e:[Ljava/lang/reflect/Type;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getParameterAnnotations()[[Ljava/lang/annotation/Annotation;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lh0/a0$a;->d:[[Ljava/lang/annotation/Annotation;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
return-void
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public static a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Class<",
|
2020-11-13 19:18:44 +00:00
|
|
|
"*>;)",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"*>;"
|
2020-11-12 02:11:44 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
sget-object v0, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_0
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v0, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_1
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Byte;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v0, Ljava/lang/Character;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_2
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Character;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget-object v0, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_3
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Double;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget-object v0, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_4
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Float;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sget-object v0, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_5
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
sget-object v0, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_6
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-class p0, Ljava/lang/Long;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
:cond_6
|
|
|
|
sget-object v0, Ljava/lang/Short;->TYPE:Ljava/lang/Class;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-ne v0, p0, :cond_7
|
|
|
|
|
|
|
|
const-class p0, Ljava/lang/Short;
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, p0, Lh0/a0$a;->n:Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lh0/a0$a;->n:Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-boolean p3, p0, Lh0/a0$a;->o:Z
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 p1, 0x3f
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const/4 p3, -0x1
|
|
|
|
|
|
|
|
if-eq p1, p3, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
sub-int/2addr p3, v2
|
|
|
|
|
|
|
|
if-ge p1, p3, :cond_2
|
|
|
|
|
|
|
|
add-int/2addr p1, v2
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object p3, Lh0/a0$a;->x:Ljava/util/regex/Pattern;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Ljava/util/regex/Matcher;->find()Z
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object p2, p0, Lh0/a0$a;->b:Ljava/lang/reflect/Method;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
new-array p3, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p1, p3, v1
|
|
|
|
|
|
|
|
const-string p1, "URL query string \"%s\" must not have replace block. For dynamic query parameters use @Query."
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {p2, p1, p3}, Lh0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p2, p0, Lh0/a0$a;->r:Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object p1, Lh0/a0$a;->x:Ljava/util/regex/Pattern;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/util/LinkedHashSet;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/util/LinkedHashSet;-><init>()V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p1}, Ljava/util/regex/Matcher;->find()Z
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {p2, p3}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p2, p0, Lh0/a0$a;->u:Ljava/util/Set;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object p2, p0, Lh0/a0$a;->b:Ljava/lang/reflect/Method;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
new-array p3, p3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object v0, p3, v1
|
|
|
|
|
|
|
|
aput-object p1, p3, v2
|
|
|
|
|
|
|
|
const-string p1, "Only one HTTP method is allowed. Found: %s and %s."
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {p2, p1, p3}, Lh0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final c(ILjava/lang/reflect/Type;)V
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {p2}, Lh0/h0;->h(Ljava/lang/reflect/Type;)Z
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, p0, Lh0/a0$a;->b:Ljava/lang/reflect/Method;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object p2, v1, v2
|
|
|
|
|
|
|
|
const-string p2, "Parameter type must not include a type variable or wildcard: %s"
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v0, p1, p2, v1}, Lh0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|