src/main/java/ubu/digit/security/LoginUbuVirtual.java
public String checkUrlServer(String host) throws MalformedURLException {
		String url = convertToHttps(host);
		URL httpsUrl = new URL(url);
		if (checkWebsService(httpsUrl)) {
			return httpsUrl.toString();
		}

		url = url.replaceFirst(HTTPS, HTTP);
		URL httpUrl = new URL(url);
		if (checkWebsService(httpUrl)) {
			return httpUrl.toString();
		}
		throw new IllegalArgumentException("Error en checkUrlServer " + host);
	}
/**
	 * Comprueba que la Url sea correcta.
	 * 
	 * @param host
	 * @return url
	 * @throws MalformedURLException
	 */
Comprueba que la Url sea correcta.

@param host
@return url
@throws MalformedURLException
Comprueba que la Url sea correcta . @param host @return url @throws MalformedURLException
public String checkUrlServer(String host) throws MalformedURLException {
		String url = convertToHttps(host);
		URL httpsUrl = new URL(url);
		if (checkWebsService(httpsUrl)) {
			return httpsUrl.toString();
		}
		url = url.replaceFirst(HTTPS, HTTP);
		URL httpUrl = new URL(url);
		if (checkWebsService(httpUrl)) {
			return httpUrl.toString();
		}
		throw new IllegalArgumentException("Error en checkUrlServer " + host);
	}
public String checkUrlServer ( String host ) throws MalformedURLException { String url = convertToHttps ( host ) ; URL httpsUrl = new URL ( url ) ; if ( checkWebsService ( httpsUrl ) ) { return httpsUrl . toString ( ) ; } url = url . replaceFirst ( HTTPS , HTTP ) ; URL httpUrl = new URL ( url ) ; if ( checkWebsService ( httpUrl ) ) { return httpUrl . toString ( ) ; } throw new IllegalArgumentException ( "Error en checkUrlServer " + host ) ; }
Comprueba que la Url sea correcta.
Comprueba que la Url sea correcta .