Code example for Proxy

0
                iPort = Integer.parseInt(port);
                // END android-changed 
            } catch (NumberFormatException e) {
                iPort = defaultPort;
            } 
            proxy = new Proxy(type, InetSocketAddress.createUnresolved(host,
                    iPort));
        } 
        return proxy;
    } 
 
    /* 
     * gets system property, privileged operation. If the value of the property 
     * is null or empty String, it returns defaultValue. 
     */ 
    private String getSystemProperty(final String property) {
        return getSystemProperty(property, null);
    } 
 
    /* 
     * gets system property, privileged operation. If the value of the property