52 lines
1.9 KiB
Java
52 lines
1.9 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.common.net.HttpHeaders;
|
||
|
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class gkV {
|
||
|
private final String a;
|
||
|
final gkW b;
|
||
|
final InterfaceC15251glf c;
|
||
|
|
||
|
@Deprecated
|
||
|
public gkV(String str, InterfaceC15251glf interfaceC15251glf) {
|
||
|
C15264gls.c(str, KtaJsonExactionHelper.NAME);
|
||
|
C15264gls.c(interfaceC15251glf, "Body");
|
||
|
this.a = str;
|
||
|
this.c = interfaceC15251glf;
|
||
|
gkW gkw = new gkW();
|
||
|
this.b = gkw;
|
||
|
StringBuilder sb = new StringBuilder("form-data; name=\"");
|
||
|
sb.append(str);
|
||
|
sb.append("\"");
|
||
|
if (interfaceC15251glf.a() != null) {
|
||
|
sb.append("; filename=\"");
|
||
|
sb.append(interfaceC15251glf.a());
|
||
|
sb.append("\"");
|
||
|
}
|
||
|
String obj = sb.toString();
|
||
|
C15264gls.c(HttpHeaders.CONTENT_DISPOSITION, "Field name");
|
||
|
gkw.e(new C15247glb(HttpHeaders.CONTENT_DISPOSITION, obj));
|
||
|
gkT gkt = ((AbstractC15252glg) interfaceC15251glf).c;
|
||
|
if (gkt != null) {
|
||
|
String obj2 = gkt.toString();
|
||
|
C15264gls.c(HttpHeaders.CONTENT_TYPE, "Field name");
|
||
|
gkw.e(new C15247glb(HttpHeaders.CONTENT_TYPE, obj2));
|
||
|
} else {
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(interfaceC15251glf.e());
|
||
|
if (interfaceC15251glf.b() != null) {
|
||
|
sb2.append("; charset=");
|
||
|
sb2.append(interfaceC15251glf.b());
|
||
|
}
|
||
|
String obj3 = sb2.toString();
|
||
|
C15264gls.c(HttpHeaders.CONTENT_TYPE, "Field name");
|
||
|
gkw.e(new C15247glb(HttpHeaders.CONTENT_TYPE, obj3));
|
||
|
}
|
||
|
String c = interfaceC15251glf.c();
|
||
|
C15264gls.c("Content-Transfer-Encoding", "Field name");
|
||
|
gkw.e(new C15247glb("Content-Transfer-Encoding", c));
|
||
|
}
|
||
|
}
|