src/main/java/ubu/digit/security/LoginUbuVirtual.java
private String convertToHttps(String host) {
		String url;

		if (!host.matches("^(?i)https?://.*$")) {
			url = HTTPS + host;
		} else if (host.matches("^(?i)http://.*$")) {
			url = host.replaceFirst("(?i)http://", HTTPS);
		} else {
			url = host;
		}
		return url;
	}
/**
	 * Convertir la ruta en https.
	 * 
	 * @param host
	 * @return url con el host en un determinado formato
	 */
Convertir la ruta en https.

@param host
@return url con el host en un determinado formato
Convertir la ruta en https . @param host @return url con el host en un determinado formato
private String convertToHttps(String host) {
		String url;
		if (!host.matches("^(?i)https?://.*$")) {
			url = HTTPS + host;
		} else if (host.matches("^(?i)http://.*$")) {
			url = host.replaceFirst("(?i)http://", HTTPS);
		} else {
			url = host;
		}
		return url;
	}
private String convertToHttps ( String host ) { String url ; if ( ! host . matches ( "^(?i)https?://.*$" ) ) { url = HTTPS + host ; } else if ( host . matches ( "^(?i)http://.*$" ) ) { url = host . replaceFirst ( "(?i)http://" , HTTPS ) ; } else { url = host ; } return url ; }
Convertir la ruta en https.
Convertir la ruta en https .