public ProxySettings setServer ( URI uri ) { if ( uri == null ) { return this ; } String scheme = uri . getScheme ( ) ; String userInfo = uri . getUserInfo ( ) ; String host = uri . getHost ( ) ; int port = uri . getPort ( ) ; return setServer ( scheme , userInfo , host , port ) ; }
Set the proxy server by a URI . The parameters are updated as described below .