Info Call to Socket API

Description

List of all calls to Server Socket API.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.ramco.ramcoerp.ServerInfoActivity.b() calling method java.net.URL.<init>()


    public final void b(String p9)
    {
        String v9_9 = p9.split("~!~");
        try {
            int v2_0 = new java.net.URL(v9_9[0]);
            try {
                int v4_1 = new java.net.URL(v9_9[1]);
            } catch (String v9_7) {
                v9_7.printStackTrace();
                v4_1 = 0;
            }
            if (v2_0 == v4_1) {
                String v9_8 = this.t;
                if ((v9_8 != null) && (v9_8.isShowing())) {
                    this.t.hide();
                }
                new android.app.AlertDialog$Builder(this).setTitle("Message").setMessage("\"Some Issue in URL Redirection. Contact Systerm Administrator").setNeutralButton("Close", 0).show();
            } else {
                if (v4_1 != 0) {
                    String v9_20;
                    String v9_17 = v4_1.getPort();
                    if ((v9_17 != 80) && (v9_17 != -1)) {
                        String v0_6 = new Object[1];
                        v0_6[0] = Integer.valueOf(v9_17);
                        v9_20 = String.format(":%s", v0_6);
                    } else {
                        v9_20 = "";
                    }
                    String v0_8 = v4_1.getPath().split(java.io.File.separator);
                    android.widget.EditText v5_1 = this.r;
                    Object[] v6_1 = new Object[4];
                    v6_1[0] = v4_1.getProtocol();
                    v6_1[1] = v4_1.getHost();
                    v6_1[2] = v9_20;
                    v6_1[3] = v0_8[1];
                    v5_1.setText(String.format("%s://%s%s/%s", v6_1));
                    String v9_24 = new String[0];
                    if (v2_0 != 0) {
                        v9_24 = v2_0.getPath().split(java.io.File.separator);
                    }
                    if (v9_24.length != v0_8.length) {
                        String v9_27 = new Object[1];
                        v9_27[0] = v0_8[2];
                        this.s = String.format("/%s", v9_27);
                    }
                }
                this.u = this.r.getText().toString();
                this.v = this.q.getText().toString();
                this.z = new OB();
                this.A.post(new KA(this));
            }
            return;
        } catch (int v2_2) {
            v2_2.printStackTrace();
            v2_0 = 0;
        }
    }

Method com.ramco.ramcoerp.LoginActivity.f() calling method java.net.URL.<init>()


    public final void f(String p7)
    {
        android.os.Handler v7_4 = p7.split("~!~");
        try {
            int v2_0 = new java.net.URL(v7_4[0]);
            try {
                long v1_0 = new java.net.URL(v7_4[1]);
            } catch (android.os.Handler v7_2) {
                v7_2.printStackTrace();
            }
            if (v2_0 == v1_0) {
                this.R.dismiss();
                this.N.a(this, "Message", this.getString(2131624035), 0, 0);
            } else {
                android.os.Handler v7_7 = v2_0.getPath().split("/");
                long v1_3 = v1_0.getPath().split("/");
                if (v7_7.length != v1_3.length) {
                    android.os.Handler v7_9 = new Object[1];
                    v7_9[0] = v1_3[2];
                    this.W = String.format("/%s", v7_9);
                    new android.os.Handler().postDelayed(new PA(this), 100);
                }
            }
            return;
        } catch (int v2_6) {
            v2_6.printStackTrace();
            v2_0 = 0;
        }
    }

Method com.ramco.ramcoerp.ChooseServerActivity.a() calling method java.net.URL.<init>()


    public final void a(String p7)
    {
        android.os.Handler v7_4 = p7.split("~!~");
        try {
            int v2_0 = new java.net.URL(v7_4[0]);
            try {
                long v1_0 = new java.net.URL(v7_4[1]);
            } catch (android.os.Handler v7_2) {
                v7_2.printStackTrace();
            }
            if (v2_0 == v1_0) {
                this.u.dismiss();
                this.v.a(this, "Message", this.getString(2131624035), 0, 0);
            } else {
                android.os.Handler v7_7 = v2_0.getPath().split("/");
                long v1_3 = v1_0.getPath().split("/");
                if (v7_7.length != v1_3.length) {
                    android.os.Handler v7_9 = new Object[1];
                    v7_9[0] = v1_3[2];
                    this.C = String.format("/%s", v7_9);
                    new android.os.Handler().postDelayed(new pA(this), 100);
                }
            }
            return;
        } catch (int v2_6) {
            v2_6.printStackTrace();
            v2_0 = 0;
        }
    }

Method org.apache.cordova.CordovaResourceApi.openForRead() calling method java.net.URL.<init>()


    public org.apache.cordova.CordovaResourceApi$OpenForReadResult openForRead(android.net.Uri p10, boolean p11)
    {
        if (!p11) {
            this.assertBackgroundThread();
        }
        switch (org.apache.cordova.CordovaResourceApi.getUriType(p10)) {
            case 0:
                java.io.InputStream v2_1 = new java.io.FileInputStream(p10.getPath());
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_0 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_0(p10, v2_1, this.getMimeTypeFromPath(p10.getPath()), v2_1.getChannel().size(), 0);
                return v7_0;
            case 1:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_22 = p10.getPath().substring(15);
                String v3 = -1;
                try {
                    java.io.InputStream v2_17 = this.assetManager.openFd(v0_22);
                    java.io.InputStream v5_2 = v2_17.createInputStream();
                    String v3_7 = v2_17.getLength();
                } catch (java.io.FileNotFoundException) {
                    v5_2 = this.assetManager.open(v0_22);
                }
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_3 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_3(p10, v5_2, this.getMimeTypeFromPath(v0_22), v3_7, v2_17);
                return v7_3;
            case 2:
            case 3:
                String v3_6 = this.contentResolver.getType(p10);
                StringBuilder v6_2 = this.contentResolver.openAssetFileDescriptor(p10, "r");
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_2 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_2(p10, v6_2.createInputStream(), v3_6, v6_2.getLength(), v6_2);
                return v7_2;
            case 4:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_16 = this.readDataUri(p10);
                if (v0_16 == null) {
                } else {
                    return v0_16;
                }
            case 5:
            case 6:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_14 = ((java.net.HttpURLConnection) new java.net.URL(p10.toString()).openConnection());
                v0_14.setDoInput(1);
                java.io.InputStream v2_9 = v0_14.getHeaderField("Content-Type");
                if (v2_9 != null) {
                    v2_9 = v2_9.split(";")[0];
                }
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_1 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_1(p10, v0_14.getInputStream(), v2_9, ((long) v0_14.getContentLength()), 0);
                return v7_1;
            case 7:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_23 = this.pluginManager.getPlugin(p10.getHost());
                if (v0_23 == null) {
                    java.io.InputStream v2_5 = new StringBuilder();
                    v2_5.append("Invalid plugin ID in URI: ");
                    v2_5.append(p10);
                    throw new java.io.FileNotFoundException(v2_5.toString());
                } else {
                    return v0_23.handleOpenForRead(p10);
                }
            default:
        }
        java.io.InputStream v2_4 = new StringBuilder();
        v2_4.append("URI not supported by CordovaResourceApi: ");
        v2_4.append(p10);
        throw new java.io.FileNotFoundException(v2_4.toString());
    }

Method org.apache.cordova.CordovaResourceApi.getMimeType() calling method java.net.URL.<init>()

Couldn't retrieve source code

Method org.apache.cordova.CordovaResourceApi.createHttpConnection() calling method java.net.URL.<init>()


    public java.net.HttpURLConnection createHttpConnection(android.net.Uri p2)
    {
        this.assertBackgroundThread();
        return ((java.net.HttpURLConnection) new java.net.URL(p2.toString()).openConnection());
    }