Code example for URL

Methods: getHost, getPort, getProtocol

0
		 * This method overrides the properties: host, port and enableSSL. 
		 * @param url 
		 * @return 
		 */ 
		public Builder url(URL url){
			this.host = url.getHost();
			this.port = url.getPort();
			enableSSL("https".equals(url.getProtocol()));
			return this;
		} 
 
		public Builder host(String s) {
			host = s;
			return this;
		} 
 
		public Builder proxyPort(int p) {
			proxyPort = p;
			return this;
		}