导航菜单

页面标题

页面副标题

OLX India v19.42.007 - c.java 源代码

正在查看: OLX India v19.42.007 应用的 c.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.payu.india.Tasks;

import com.payu.checkoutpro.utils.PayUCheckoutProConstants;
import com.payu.india.Model.PayuConfig;
import com.payu.india.Model.PayuResponse;
import com.payu.india.Model.PostData;
import com.payu.india.Payu.a;
import com.payu.india.Tasks.base.PayUAsyncTask;
import java.io.InputStream;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
import org.json.JSONObject;

public class c extends PayUAsyncTask {
    com.payu.india.Interfaces.d h;

    public c(com.payu.india.Interfaces.d dVar) {
        this.h = dVar;
    }

    @Override
    public PayuResponse h(PayuConfig... payuConfigArr) {
        InputStream inputStream;
        PayuResponse payuResponse = new PayuResponse();
        new PostData();
        InputStream inputStream2 = null;
        try {
            PayuConfig payuConfig = payuConfigArr[0];
            int b = payuConfig.b();
            URL url = b != 0 ? b != 2 ? new URL("https://api.payu.in/") : new URL("https://sandbox.payu.in/") : new URL("https://api.payu.in/");
            HttpsURLConnection e = com.payu.india.Payu.d.e(new a.b().i(a.c.POST).l(url + "sdk/instrumentDetail/consent").j(payuConfig.a()).h(com.payu.india.Payu.f.d().b(PayUCheckoutProConstants.CP_DELETE_SAVED_OPTIONS)).k("application/json").g());
            if (e == null) {
                return null;
            }
            inputStream = e.getInputStream();
            try {
                StringBuilder sb = new StringBuilder();
                byte[] bArr = new byte[1024];
                while (true) {
                    int read = inputStream.read(bArr);
                    if (read == -1) {
                        payuResponse.F0(new JSONObject(sb.toString()));
                        com.payu.india.Payu.d.s(inputStream);
                        return payuResponse;
                    }
                    sb.append(new String(bArr, 0, read));
                }
            } catch (Exception unused) {
                if (inputStream != null) {
                    com.payu.india.Payu.d.s(inputStream);
                }
                return null;
            } catch (Throwable th) {
                inputStream2 = inputStream;
                th = th;
                if (inputStream2 != null) {
                    com.payu.india.Payu.d.s(inputStream2);
                }
                throw th;
            }
        } catch (Exception unused2) {
            inputStream = null;
        } catch (Throwable th2) {
            th = th2;
        }
    }

    @Override
    public void l(PayuResponse payuResponse) {
        super.l(payuResponse);
        this.h.e(payuResponse);
    }
}