class EurekaUtils {

    public static final String getUrl(InstanceInfo instanceInfo) {
        if (instanceInfo.getSecurePort() == 0) {
            return "http://" + instanceInfo.getHostName() + ":" + instanceInfo.getPort();
        } else {
            return "https://" + instanceInfo.getHostName() + ":" + instanceInfo.getSecurePort();
        }
    }

    private  EurekaUtils();

}