public static String getDumpFileWebDirectory ( DumpContentType dumpContentType , String projectName ) { if ( dumpContentType == DumpContentType . JSON ) { if ( "wikidatawiki" . equals ( projectName ) ) { return WmfDumpFile . DUMP_SITE_BASE_URL + WmfDumpFile . WEB_DIRECTORY . get ( dumpContentType ) + "wikidata" + "/" ; } else { throw new RuntimeException ( "Wikimedia Foundation uses non-systematic directory names for this type of dump file." + " I don't know where to find dumps of project " + projectName ) ; } } else if ( WmfDumpFile . WEB_DIRECTORY . containsKey ( dumpContentType ) ) { return WmfDumpFile . DUMP_SITE_BASE_URL + WmfDumpFile . WEB_DIRECTORY . get ( dumpContentType ) + projectName + "/" ; } else { throw new IllegalArgumentException ( "Unsupported dump type " + dumpContentType ) ; } }
Returns the absolute directory on the Web site where dumpfiles of the given type can be found .