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 c.c.a.c.c.b.t.b() calling method java.net.URL.<init>()


    protected Object b(String p5, c.c.a.c.j p6)
    {
        switch (this.c) {
            case 1:
                return new java.io.File(p5);
            case 2:
                return new java.net.URL(p5);
            case 3:
                return java.net.URI.create(p5);
            case 4:
                try {
                    String v5_1 = p6.c(p5);
                    return v5_1;
                } catch (int v0_1) {
                    return p6.a(this.b, v5_1, c.c.a.c.m.s.a(v0_1));
                }
            case 5:
                return p6.b().c(p5);
            case 6:
                return java.util.Currency.getInstance(p5);
            case 7:
                return java.util.regex.Pattern.compile(p5);
            case 8:
                int v6_12 = this.h(p5);
                if (v6_12 >= 0) {
                    int v0_13 = p5.substring(0, v6_12);
                    String v5_11 = p5.substring((v6_12 + 1));
                    int v6_14 = this.h(v5_11);
                    if (v6_14 >= 0) {
                        return new java.util.Locale(v0_13, v5_11.substring(0, v6_14), v5_11.substring((v6_14 + 1)));
                    } else {
                        return new java.util.Locale(v0_13, v5_11);
                    }
                } else {
                    return new java.util.Locale(p5);
                }
            case 9:
                return java.nio.charset.Charset.forName(p5);
            case 10:
                return java.util.TimeZone.getTimeZone(p5);
            case 11:
                return java.net.InetAddress.getByName(p5);
            case 12:
                if (!p5.startsWith("[")) {
                    int v6_20 = p5.indexOf(58);
                    if (v6_20 >= 0) {
                        int v0_3 = (v6_20 + 1);
                        if (p5.indexOf(58, v0_3) < 0) {
                            return new java.net.InetSocketAddress(p5.substring(0, v6_20), Integer.parseInt(p5.substring(v0_3)));
                        }
                    }
                    return new java.net.InetSocketAddress(p5, 0);
                } else {
                    int v0_7 = p5.lastIndexOf(93);
                    if (v0_7 == -1) {
                        throw new c.c.a.c.d.b(p6.l(), "Bracketed IPv6 address must contain closing bracket", p5, java.net.InetSocketAddress);
                    } else {
                        int v6_9;
                        int v6_8 = p5.indexOf(58, v0_7);
                        if (v6_8 <= -1) {
                            v6_9 = 0;
                        } else {
                            v6_9 = Integer.parseInt(p5.substring((v6_8 + 1)));
                        }
                        return new java.net.InetSocketAddress(p5.substring(0, (v0_7 + 1)), v6_9);
                    }
                }
            default:
                throw new IllegalArgumentException();
        }
    }

Method g.a.a.c.c.e.a() calling method java.net.URL.<init>()


    public java.io.InputStream a()
    {
        this.c();
        if (this.e.endsWith("!/")) {
            String v1_3 = this.e;
            return new java.net.URL(v1_3.substring(4, (v1_3.length() - 2))).openStream();
        } else {
            return new g.a.a.c.c.d(this, super.a());
        }
    }

Method g.a.a.c.c.f.a() calling method java.net.URL.<init>()


    public static ark>g.a.a.c.c.fark> a(String p3, boolean p4)
    {
        try {
            java.io.File v3_2 = ark>g.a.a.c.c.fark>.a(new java.net.URL(p3));
            return v3_2;
        } catch (java.net.MalformedURLException v0_2) {
            if (!v3_2.startsWith("ftp:")) {
                if (!v3_2.startsWith("file:")) {
                    if (!v3_2.startsWith("jar:")) {
                        try {
                            if (v3_2.startsWith("./")) {
                                v3_2 = v3_2.substring(2);
                            }
                        } catch (java.io.File v3_3) {
                            ark>g.a.a.c.c.fark>.a.b("EXCEPTION ", v3_3);
                            throw v0_2;
                        }
                        java.io.File v3_4 = new java.io.File(v3_2).getCanonicalFile();
                        java.net.URL v1_14 = ark>g.a.a.c.c.fark>.a(v3_4);
                        java.net.URLConnection v2_1 = v1_14.openConnection();
                        v2_1.setUseCaches(p4);
                        return new g.a.a.c.c.b(v1_14, v2_1, v3_4);
                    }
                }
            }
            java.net.URL v1_5 = new StringBuilder();
            v1_5.append("Bad Resource: ");
            v1_5.append(v3_2);
            java.net.URL v1_7 = new Object[0];
            ark>g.a.a.c.c.fark>.a.a(v1_5.toString(), v1_7);
            throw v0_2;
        }
    }

Method c.d.b.b.a.O.a() calling method java.net.URL.<init>()


    public java.net.URL a(c.d.b.d.b p4)
    {
        java.net.URL v2_1 = 0;
        if (p4.A() != c.d.b.d.c.i) {
            String v4_1 = p4.z();
            if (!"null".equals(v4_1)) {
                v2_1 = new java.net.URL(v4_1);
            }
            return v2_1;
        } else {
            p4.y();
            return 0;
        }
    }

Method c.c.a.c.c.b.na.b() calling method java.net.URL.<init>()


    protected Object b(String p6, c.c.a.c.j p7)
    {
        switch (this.a) {
            case 1:
                if (!"true".equals(p6)) {
                    if (!"false".equals(p6)) {
                        Object[] v1_9 = new Object[0];
                        return p7.a(this.b, p6, "value not \'true\' or \'false\'", v1_9);
                    } else {
                        return Boolean.FALSE;
                    }
                } else {
                    return Boolean.TRUE;
                }
            case 2:
                Class v0_5 = this.b(p6);
                if ((v0_5 >= -128) && (v0_5 <= 255)) {
                    return Byte.valueOf(((byte) v0_5));
                } else {
                    Object[] v1_8 = new Object[0];
                    return p7.a(this.b, p6, "overflow, value can not be represented as 8-bit value", v1_8);
                }
            case 3:
                Class v0_3 = this.b(p6);
                if ((v0_3 >= -32768) && (v0_3 <= 32767)) {
                    return Short.valueOf(((short) v0_3));
                } else {
                    Object[] v1_5 = new Object[0];
                    return p7.a(this.b, p6, "overflow, value can not be represented as 16-bit value", v1_5);
                }
            case 4:
                if (p6.length() != 1) {
                    Object[] v1_2 = new Object[0];
                    return p7.a(this.b, p6, "can only convert 1-character Strings", v1_2);
                } else {
                    return Character.valueOf(p6.charAt(0));
                }
            case 5:
                return Integer.valueOf(this.b(p6));
            case 6:
                return Long.valueOf(this.c(p6));
            case 7:
                return Float.valueOf(((float) this.a(p6)));
            case 8:
                return Double.valueOf(this.a(p6));
            case 9:
                try {
                    Short v6_27 = this.c.b(p6, p7);
                    return v6_27;
                } catch (java.io.IOException) {
                    Object[] v1_11 = new Object[0];
                    return p7.a(this.b, v6_27, "unable to parse key as locale", v1_11);
                }
            case 10:
                return p7.e(p6);
            case 11:
                Short v6_24;
                Short v6_23 = p7.e(p6);
                if (v6_23 != null) {
                    v6_24 = p7.a(v6_23);
                } else {
                    v6_24 = 0;
                }
                return v6_24;
            case 12:
                try {
                    Short v6_21 = java.util.UUID.fromString(p6);
                    return v6_21;
                } catch (Class v0_22) {
                    Class v4_2 = this.b;
                    String v2_9 = new Object[1];
                    v2_9[0] = v0_22.getMessage();
                    return p7.a(v4_2, v6_21, "problem: %s", v2_9);
                }
            case 13:
                try {
                    Short v6_19 = java.net.URI.create(p6);
                    return v6_19;
                } catch (Class v0_19) {
                    Class v4_1 = this.b;
                    String v2_8 = new Object[1];
                    v2_8[0] = v0_19.getMessage();
                    return p7.a(v4_1, v6_19, "problem: %s", v2_8);
                }
            case 14:
                try {
                    return new java.net.URL(p6);
                } catch (Class v0_17) {
                    Class v4_0 = this.b;
                    String v2_7 = new Object[1];
                    v2_7[0] = v0_17.getMessage();
                    return p7.a(v4_0, p6, "problem: %s", v2_7);
                }
            case 15:
                try {
                    Short v6_12 = p7.c(p6);
                    return v6_12;
                } catch (Exception) {
                    Object[] v1_10 = new Object[0];
                    return p7.a(this.b, v6_12, "unable to parse key as Class", v1_10);
                }
            case 16:
                try {
                    Short v6_26 = this.c.b(p6, p7);
                    return v6_26;
                } catch (java.io.IOException) {
                    Object[] v1_1 = new Object[0];
                    return p7.a(this.b, v6_26, "unable to parse key as currency", v1_1);
                }
            default:
                String v7_2 = new StringBuilder();
                v7_2.append("Internal error: unknown key type ");
                v7_2.append(this.b);
                throw new IllegalStateException(v7_2.toString());
        }
    }

Method c.a.a.d.a.i.a() calling method java.net.URL.<init>()

Couldn't retrieve source code

Method d.a.a.a.a.e.l.b() calling method java.net.URL.<init>()


    public static String b(CharSequence p7)
    {
        try {
            String v0_3 = new java.net.URL(p7.toString());
            String v7_5 = v0_3.getHost();
            StringBuilder v1_5 = v0_3.getPort();
        } catch (String v7_1) {
            throw new d.a.a.a.a.e.i(v7_1);
        }
        if (v1_5 != -1) {
            String v2_1 = new StringBuilder();
            v2_1.append(v7_5);
            v2_1.append(58);
            v2_1.append(Integer.toString(v1_5));
            v7_5 = v2_1.toString();
        }
        try {
            String v7_6 = new java.net.URI;
            v7_6(v0_3.getProtocol(), v7_5, v0_3.getPath(), v0_3.getQuery(), 0);
            String v7_7 = v7_6.toASCIIString();
            String v0_5 = v7_7.indexOf(63);
        } catch (String v7_10) {
            String v0_9 = new java.io.IOException("Parsing URI failed");
            v0_9.initCause(v7_10);
            throw new d.a.a.a.a.e.i(v0_9);
        }
        if (v0_5 > null) {
            String v0_6 = (v0_5 + 1);
            if (v0_6 < v7_7.length()) {
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append(v7_7.substring(0, v0_6));
                v1_3.append(v7_7.substring(v0_6).replace("+", "%2B"));
                v7_7 = v1_3.toString();
            }
        }
        return v7_7;
    }

Method d.a.a.a.a.e.l.<init>() calling method java.net.URL.<init>()


    public l(CharSequence p2, String p3)
    {
        this.c = 0;
        this.h = 1;
        this.i = 0;
        this.j = 8192;
        try {
            this.d = new java.net.URL(p2.toString());
            this.e = p3;
            return;
        } catch (java.net.MalformedURLException v2_2) {
            throw new d.a.a.a.a.e.i(v2_2);
        }
    }

Method com.digitalticks.trade.CommonCode.g.a() calling method java.net.URL.<init>()


    public String a(String p4)
    {
        try {
            String v4_2 = ((java.net.HttpURLConnection) new java.net.URL(p4).openConnection());
            v4_2.setRequestMethod("GET");
            v4_2.setRequestProperty("Content-Type", "application/json");
        } catch (String v4_7) {
            java.io.BufferedInputStream v0_9 = ark>com.digitalticks.trade.CommonCode.gark>.a;
            android.content.Context v1_9 = new StringBuilder();
            v1_9.append("MalformedURLException: ");
            String v4_4 = v4_7.getMessage();
            v1_9.append(v4_4);
            android.util.Log.e(v0_9, v1_9.toString());
            String v4_9 = 0;
            return v4_9;
        } catch (String v4_6) {
            v0_9 = ark>com.digitalticks.trade.CommonCode.gark>.a;
            v1_9 = new StringBuilder();
            v1_9.append("ProtocolException: ");
            v4_4 = v4_6.getMessage();
        } catch (String v4_5) {
            v0_9 = ark>com.digitalticks.trade.CommonCode.gark>.a;
            v1_9 = new StringBuilder();
            v1_9.append("IOException: ");
            v4_4 = v4_5.getMessage();
        } catch (String v4_3) {
            v0_9 = ark>com.digitalticks.trade.CommonCode.gark>.a;
            v1_9 = new StringBuilder();
            v1_9.append("Exception: ");
            v4_4 = v4_3.getMessage();
        }
        if ((com.digitalticks.trade.CommonCode.a.Q != null) && (!com.digitalticks.trade.CommonCode.a.Q.isEmpty())) {
            v4_2.setRequestProperty("x-DTX", com.digitalticks.trade.CommonCode.a.Q);
        }
        if (v4_2.getResponseCode() == 401) {
            java.io.BufferedInputStream v0_8 = new android.content.Intent(c.e.a.a.a.b.b.b(), com.digitalticks.trade.Activities.InternetActivity);
            v0_8.setFlags(335544320);
            v0_8.addFlags(268435456);
            v0_8.addFlags(32768);
            v0_8.putExtra("isSessionExpired", 1);
            c.e.a.a.a.b.b.b().startActivity(v0_8);
        }
        v4_9 = this.a(new java.io.BufferedInputStream(v4_2.getInputStream()));
        return v4_9;
    }

Method com.digitalticks.trade.CommonCode.g.a() calling method java.net.URL.<init>()


    public static String a(String p6, String p7, String p8)
    {
        String v6_7;
        String v0_1 = new java.net.URL(p6);
        v0_1.openConnection();
        if (!v0_1.getProtocol().toLowerCase().equals("https")) {
            v6_7 = ((java.net.HttpURLConnection) v0_1.openConnection());
        } else {
            ark>com.digitalticks.trade.CommonCode.gark>.a();
            v6_7 = ((javax.net.ssl.HttpsURLConnection) v0_1.openConnection());
            v6_7.setHostnameVerifier(ark>com.digitalticks.trade.CommonCode.gark>.b);
        }
        v6_7.setRequestMethod("POST");
        v6_7.setRequestProperty("Content-Type", p8);
        org.json.JSONObject v8_11 = com.digitalticks.trade.CommonCode.a.R;
        if ((v8_11 == null) || (v8_11.isEmpty())) {
            org.json.JSONObject v8_13 = com.digitalticks.trade.CommonCode.a.Q;
            if ((v8_13 != null) && (!v8_13.isEmpty())) {
                v6_7.setRequestProperty("x-DTX", com.digitalticks.trade.CommonCode.a.Q);
            }
        } else {
            v6_7.setRequestProperty("x-DTX", com.digitalticks.trade.CommonCode.a.R);
            com.digitalticks.trade.CommonCode.a.R = 0;
        }
        org.json.JSONObject v8_17 = com.digitalticks.trade.CommonCode.a.T;
        if ((v8_17 == null) || (v8_17.isEmpty())) {
            org.json.JSONObject v8_19 = com.digitalticks.trade.CommonCode.a.S;
            if ((v8_19 != null) && (!v8_19.isEmpty())) {
                try {
                    if ((p7 == null) || (p7.isEmpty())) {
                        org.json.JSONObject v8_23 = new org.json.JSONObject();
                    } else {
                        v8_23 = new org.json.JSONObject(p7);
                    }
                } catch (Throwable) {
                    org.json.JSONObject v8_26 = new StringBuilder();
                    v8_26.append("Could not parse malformed JSON: \"");
                    v8_26.append(p7);
                    v8_26.append("\"");
                    android.util.Log.e("My App", v8_26.toString());
                }
                v8_23.put("_userid", com.digitalticks.trade.CommonCode.a.S);
                p7 = v8_23.toString();
            }
        } else {
            try {
                if ((p7 == null) || (p7.isEmpty())) {
                    org.json.JSONObject v8_29 = new org.json.JSONObject();
                } else {
                    v8_29 = new org.json.JSONObject(p7);
                }
            } catch (Throwable) {
                v8_26 = new StringBuilder();
            }
            v8_29.put("_userid", com.digitalticks.trade.CommonCode.a.T);
            com.digitalticks.trade.CommonCode.a.T = 0;
            p7 = v8_29.toString();
        }
        org.json.JSONObject v8_34 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(v6_7.getOutputStream()));
        v8_34.write(p7);
        v8_34.flush();
        v8_34.close();
        if (v6_7.getResponseCode() == 401) {
            String v7_3 = new android.content.Intent(c.e.a.a.a.b.b.b(), com.digitalticks.trade.Activities.InternetActivity);
            v7_3.setFlags(335544320);
            v7_3.addFlags(268435456);
            v7_3.addFlags(32768);
            v7_3.putExtra("isSessionExpired", 1);
            c.e.a.a.a.b.b.b().startActivity(v7_3);
        }
        String v7_5 = new java.io.BufferedReader(new java.io.InputStreamReader(v6_7.getInputStream()));
        String v6_4 = new StringBuilder();
        while(true) {
            org.json.JSONObject v8_10 = v7_5.readLine();
            if (v8_10 == null) {
                break;
            }
            v6_4.append(v8_10);
        }
        return v6_4.toString();
    }

Method c.a.a.d.c.e.e() calling method java.net.URL.<init>()


    private java.net.URL e()
    {
        if (this.e == null) {
            this.e = new java.net.URL(this.d());
        }
        return this.e;
    }