2021-11-02 06:38:17 +00:00
|
|
|
package i0;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Objects;
|
|
|
|
import okhttp3.Headers;
|
|
|
|
import okhttp3.MultipartBody;
|
|
|
|
import okhttp3.RequestBody;
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public abstract class t<T> {
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class a<T> extends t<T> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3738b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final h<T, RequestBody> c;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public a(Method method, int i, h<T, RequestBody> hVar) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3738b = i;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) {
|
|
|
|
if (t != null) {
|
|
|
|
try {
|
2021-12-17 21:59:34 +00:00
|
|
|
vVar.m = this.c.convert(t);
|
2021-08-03 07:33:18 +00:00
|
|
|
} catch (IOException e) {
|
|
|
|
Method method = this.a;
|
2022-03-28 08:10:50 +00:00
|
|
|
int i = this.f3738b;
|
2022-03-07 09:34:54 +00:00
|
|
|
throw c0.m(method, e, i, "Unable to convert " + t + " to RequestBody", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3738b, "Body parameter value must not be null.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class b<T> extends t<T> {
|
|
|
|
public final String a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final h<T, String> f3739b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final boolean c;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public b(String str, h<T, String> hVar, boolean z2) {
|
|
|
|
Objects.requireNonNull(str, "name == null");
|
|
|
|
this.a = str;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3739b = hVar;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = z2;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) throws IOException {
|
|
|
|
String convert;
|
2022-03-28 08:10:50 +00:00
|
|
|
if (t != null && (convert = this.f3739b.convert(t)) != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
vVar.a(this.a, convert, this.c);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class c<T> extends t<Map<String, T>> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3740b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final h<T, String> c;
|
2021-08-03 07:33:18 +00:00
|
|
|
public final boolean d;
|
|
|
|
|
|
|
|
public c(Method method, int i, h<T, String> hVar, boolean z2) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3740b = i;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
this.d = z2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, Object obj) throws IOException {
|
|
|
|
Map map = (Map) obj;
|
|
|
|
if (map != null) {
|
|
|
|
for (Map.Entry entry : map.entrySet()) {
|
|
|
|
String str = (String) entry.getKey();
|
|
|
|
if (str != null) {
|
|
|
|
Object value = entry.getValue();
|
|
|
|
if (value != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
String str2 = (String) this.c.convert(value);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (str2 != null) {
|
|
|
|
vVar.a(str, str2, this.d);
|
|
|
|
} else {
|
|
|
|
Method method = this.a;
|
2022-03-28 08:10:50 +00:00
|
|
|
int i = this.f3740b;
|
2021-12-17 21:59:34 +00:00
|
|
|
throw c0.l(method, i, "Field map value '" + value + "' converted to null by " + this.c.getClass().getName() + " for key '" + str + "'.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3740b, b.d.b.a.a.w("Field map contained null value for key '", str, "'."), new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3740b, "Field map contained null key.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3740b, "Field map was null.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class d<T> extends t<T> {
|
|
|
|
public final String a;
|
2021-12-17 21:59:34 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final h<T, String> f3741b;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public d(String str, h<T, String> hVar) {
|
|
|
|
Objects.requireNonNull(str, "name == null");
|
|
|
|
this.a = str;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3741b = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) throws IOException {
|
|
|
|
String convert;
|
2022-03-28 08:10:50 +00:00
|
|
|
if (t != null && (convert = this.f3741b.convert(t)) != null) {
|
2021-08-03 07:33:18 +00:00
|
|
|
vVar.b(this.a, convert);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class e<T> extends t<Map<String, T>> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3742b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final h<T, String> c;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public e(Method method, int i, h<T, String> hVar) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3742b = i;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, Object obj) throws IOException {
|
|
|
|
Map map = (Map) obj;
|
|
|
|
if (map != null) {
|
|
|
|
for (Map.Entry entry : map.entrySet()) {
|
|
|
|
String str = (String) entry.getKey();
|
|
|
|
if (str != null) {
|
|
|
|
Object value = entry.getValue();
|
|
|
|
if (value != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
vVar.b(str, (String) this.c.convert(value));
|
2021-08-03 07:33:18 +00:00
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3742b, b.d.b.a.a.w("Header map contained null value for key '", str, "'."), new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3742b, "Header map contained null key.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3742b, "Header map was null.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class f extends t<Headers> {
|
|
|
|
public final Method a;
|
2021-12-17 21:59:34 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3743b;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public f(Method method, int i) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3743b = i;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, Headers headers) throws IOException {
|
|
|
|
Headers headers2 = headers;
|
|
|
|
if (headers2 != null) {
|
|
|
|
Headers.a aVar = vVar.h;
|
|
|
|
Objects.requireNonNull(aVar);
|
2021-11-02 06:38:17 +00:00
|
|
|
d0.z.d.m.checkParameterIsNotNull(headers2, "headers");
|
2021-08-03 07:33:18 +00:00
|
|
|
int size = headers2.size();
|
|
|
|
for (int i = 0; i < size; i++) {
|
|
|
|
aVar.b(headers2.d(i), headers2.g(i));
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3743b, "Headers parameter must not be null.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class g<T> extends t<T> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3744b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final Headers c;
|
2021-08-03 07:33:18 +00:00
|
|
|
public final h<T, RequestBody> d;
|
|
|
|
|
|
|
|
public g(Method method, int i, Headers headers, h<T, RequestBody> hVar) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3744b = i;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = headers;
|
2021-08-03 07:33:18 +00:00
|
|
|
this.d = hVar;
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) {
|
|
|
|
if (t != null) {
|
|
|
|
try {
|
2021-12-17 21:59:34 +00:00
|
|
|
vVar.c(this.c, this.d.convert(t));
|
2021-08-03 07:33:18 +00:00
|
|
|
} catch (IOException e) {
|
|
|
|
Method method = this.a;
|
2022-03-28 08:10:50 +00:00
|
|
|
int i = this.f3744b;
|
2022-03-07 09:34:54 +00:00
|
|
|
throw c0.l(method, i, "Unable to convert " + t + " to RequestBody", e);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class h<T> extends t<Map<String, T>> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3745b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final h<T, RequestBody> c;
|
2021-08-03 07:33:18 +00:00
|
|
|
public final String d;
|
|
|
|
|
|
|
|
public h(Method method, int i, h<T, RequestBody> hVar, String str) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3745b = i;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
this.d = str;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, Object obj) throws IOException {
|
|
|
|
Map map = (Map) obj;
|
|
|
|
if (map != null) {
|
|
|
|
for (Map.Entry entry : map.entrySet()) {
|
|
|
|
String str = (String) entry.getKey();
|
|
|
|
if (str != null) {
|
|
|
|
Object value = entry.getValue();
|
|
|
|
if (value != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
vVar.c(Headers.j.c("Content-Disposition", b.d.b.a.a.w("form-data; name=\"", str, "\""), "Content-Transfer-Encoding", this.d), (RequestBody) this.c.convert(value));
|
2021-08-03 07:33:18 +00:00
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3745b, b.d.b.a.a.w("Part map contained null value for key '", str, "'."), new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3745b, "Part map contained null key.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3745b, "Part map was null.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class i<T> extends t<T> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3746b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final String c;
|
2021-08-03 07:33:18 +00:00
|
|
|
public final h<T, String> d;
|
|
|
|
public final boolean e;
|
|
|
|
|
|
|
|
public i(Method method, int i, String str, h<T, String> hVar, boolean z2) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3746b = i;
|
2021-08-03 07:33:18 +00:00
|
|
|
Objects.requireNonNull(str, "name == null");
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = str;
|
2021-08-03 07:33:18 +00:00
|
|
|
this.d = hVar;
|
|
|
|
this.e = z2;
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* JADX WARN: Removed duplicated region for block: B:49:0x00e5 */
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:51:0x00e8 */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2022-03-07 09:34:54 +00:00
|
|
|
/*
|
|
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
|
|
*/
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) throws IOException {
|
|
|
|
String str;
|
2022-03-07 09:34:54 +00:00
|
|
|
String replace;
|
2021-08-03 07:33:18 +00:00
|
|
|
if (t != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
String str2 = this.c;
|
2021-08-03 07:33:18 +00:00
|
|
|
String convert = this.d.convert(t);
|
|
|
|
boolean z2 = this.e;
|
|
|
|
if (vVar.e != null) {
|
|
|
|
int length = convert.length();
|
2022-03-07 09:34:54 +00:00
|
|
|
int i = 0;
|
|
|
|
while (i < length) {
|
|
|
|
int codePointAt = convert.codePointAt(i);
|
|
|
|
int i2 = 47;
|
|
|
|
int i3 = -1;
|
2021-08-03 07:33:18 +00:00
|
|
|
if (codePointAt < 32 || codePointAt >= 127 || " \"<>^`{}|\\?#".indexOf(codePointAt) != -1 || (!z2 && (codePointAt == 47 || codePointAt == 37))) {
|
2022-03-07 09:34:54 +00:00
|
|
|
g0.e eVar = new g0.e();
|
|
|
|
eVar.c0(convert, 0, i);
|
|
|
|
g0.e eVar2 = null;
|
|
|
|
while (i < length) {
|
|
|
|
int codePointAt2 = convert.codePointAt(i);
|
|
|
|
if (!z2 || !(codePointAt2 == 9 || codePointAt2 == 10 || codePointAt2 == 12 || codePointAt2 == 13)) {
|
|
|
|
if (codePointAt2 < 32 || codePointAt2 >= 127 || " \"<>^`{}|\\?#".indexOf(codePointAt2) != i3 || (!z2 && (codePointAt2 == i2 || codePointAt2 == 37))) {
|
|
|
|
if (eVar2 == null) {
|
|
|
|
eVar2 = new g0.e();
|
|
|
|
}
|
|
|
|
eVar2.d0(codePointAt2);
|
|
|
|
while (!eVar2.w()) {
|
|
|
|
int readByte = eVar2.readByte() & 255;
|
|
|
|
eVar.T(37);
|
|
|
|
char[] cArr = v.a;
|
|
|
|
eVar.T(cArr[(readByte >> 4) & 15]);
|
|
|
|
eVar.T(cArr[readByte & 15]);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
eVar.d0(codePointAt2);
|
|
|
|
}
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
i += Character.charCount(codePointAt2);
|
|
|
|
i2 = 47;
|
|
|
|
i3 = -1;
|
|
|
|
}
|
|
|
|
str = eVar.D();
|
|
|
|
String str3 = vVar.e;
|
|
|
|
replace = str3.replace("{" + str2 + "}", str);
|
2022-03-28 08:10:50 +00:00
|
|
|
if (v.f3752b.matcher(replace).matches()) {
|
2022-03-07 09:34:54 +00:00
|
|
|
vVar.e = replace;
|
|
|
|
return;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
throw new IllegalArgumentException(b.d.b.a.a.v("@Path parameters shouldn't perform path traversal ('.' or '..'): ", convert));
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
i += Character.charCount(codePointAt);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
str = convert;
|
|
|
|
String str32 = vVar.e;
|
|
|
|
replace = str32.replace("{" + str2 + "}", str);
|
2022-03-28 08:10:50 +00:00
|
|
|
if (v.f3752b.matcher(replace).matches()) {
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
} else {
|
|
|
|
throw new AssertionError();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3746b, b.d.b.a.a.H(b.d.b.a.a.R("Path parameter \""), this.c, "\" value must not be null."), new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class j<T> extends t<T> {
|
|
|
|
public final String a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final h<T, String> f3747b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final boolean c;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public j(String str, h<T, String> hVar, boolean z2) {
|
|
|
|
Objects.requireNonNull(str, "name == null");
|
|
|
|
this.a = str;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3747b = hVar;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = z2;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) throws IOException {
|
|
|
|
String convert;
|
2022-03-28 08:10:50 +00:00
|
|
|
if (t != null && (convert = this.f3747b.convert(t)) != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
vVar.d(this.a, convert, this.c);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class k<T> extends t<Map<String, T>> {
|
|
|
|
public final Method a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3748b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final h<T, String> c;
|
2021-08-03 07:33:18 +00:00
|
|
|
public final boolean d;
|
|
|
|
|
|
|
|
public k(Method method, int i, h<T, String> hVar, boolean z2) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3748b = i;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
this.d = z2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, Object obj) throws IOException {
|
|
|
|
Map map = (Map) obj;
|
|
|
|
if (map != null) {
|
|
|
|
for (Map.Entry entry : map.entrySet()) {
|
|
|
|
String str = (String) entry.getKey();
|
|
|
|
if (str != null) {
|
|
|
|
Object value = entry.getValue();
|
|
|
|
if (value != null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
String str2 = (String) this.c.convert(value);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (str2 != null) {
|
|
|
|
vVar.d(str, str2, this.d);
|
|
|
|
} else {
|
|
|
|
Method method = this.a;
|
2022-03-28 08:10:50 +00:00
|
|
|
int i = this.f3748b;
|
2021-12-17 21:59:34 +00:00
|
|
|
throw c0.l(method, i, "Query map value '" + value + "' converted to null by " + this.c.getClass().getName() + " for key '" + str + "'.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3748b, b.d.b.a.a.w("Query map contained null value for key '", str, "'."), new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3748b, "Query map contained null key.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3748b, "Query map was null", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class l<T> extends t<T> {
|
|
|
|
public final h<T, String> a;
|
2021-12-17 21:59:34 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final boolean f3749b;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public l(h<T, String> hVar, boolean z2) {
|
|
|
|
this.a = hVar;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3749b = z2;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) throws IOException {
|
|
|
|
if (t != null) {
|
2022-03-28 08:10:50 +00:00
|
|
|
vVar.d(this.a.convert(t), null, this.f3749b);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class m extends t<MultipartBody.Part> {
|
|
|
|
public static final m a = new m();
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, MultipartBody.Part part) throws IOException {
|
|
|
|
MultipartBody.Part part2 = part;
|
|
|
|
if (part2 != null) {
|
|
|
|
vVar.k.a(part2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class n extends t<Object> {
|
|
|
|
public final Method a;
|
2021-12-17 21:59:34 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final int f3750b;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public n(Method method, int i) {
|
|
|
|
this.a = method;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3750b = i;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, Object obj) {
|
|
|
|
if (obj != null) {
|
|
|
|
Objects.requireNonNull(vVar);
|
|
|
|
vVar.e = obj.toString();
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 08:10:50 +00:00
|
|
|
throw c0.l(this.a, this.f3750b, "@Url parameter is null.", new Object[0]);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: ParameterHandler.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class o<T> extends t<T> {
|
|
|
|
public final Class<T> a;
|
|
|
|
|
|
|
|
public o(Class<T> cls) {
|
|
|
|
this.a = cls;
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.t
|
2021-08-03 07:33:18 +00:00
|
|
|
public void a(v vVar, T t) {
|
|
|
|
vVar.g.e(this.a, t);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract void a(v vVar, T t) throws IOException;
|
|
|
|
}
|