Skip to content

Commit 2b66631

Browse files
sblivenjosemduarte
authored andcommitted
Switch ftp.ebi.ac.uk URLs to use HTTP.
Travis blocks FTP so we're avoiding it.
1 parent 7a36714 commit 2b66631

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/io/LocalPDBDirectory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ public static String getServerName() {
688688
name = DEFAULT_PDB_FILE_SERVER;
689689
logger.debug("Using default PDB file server {}",name);
690690
} else {
691-
if (!name.startsWith("http://") && !name.startsWith("ftp://")) {
691+
if (!name.startsWith("http://") && !name.startsWith("ftp://") && !name.startsWith("https://")) {
692692
logger.warn("Server name {} read from system property {} does not have a leading protocol string. Adding http:// to it", name, PDB_FILE_SERVER_PROPERTY);
693693
name = "http://"+name;
694694
}

biojava-structure/src/main/java/org/biojava/nbio/structure/io/sifts/SiftsChainToUniprotMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class SiftsChainToUniprotMapping {
6666

6767
static {
6868
try {
69-
DEFAULT_URL = new URL("ftp://ftp.ebi.ac.uk/pub/databases/msd/sifts/flatfiles/tsv/pdb_chain_uniprot.tsv.gz");
69+
DEFAULT_URL = new URL("http://ftp.ebi.ac.uk/pub/databases/msd/sifts/flatfiles/tsv/pdb_chain_uniprot.tsv.gz");
7070
} catch (MalformedURLException e) {
7171
throw new RuntimeException(e);
7272
}

biojava-structure/src/main/java/org/biojava/nbio/structure/io/sifts/SiftsMappingProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class SiftsMappingProvider {
4141
private final static Logger logger = LoggerFactory.getLogger(SiftsMappingProvider.class);
4242

4343

44-
private static final String EBI_SIFTS_FILE_LOCATION = "ftp://ftp.ebi.ac.uk/pub/databases/msd/sifts/xml/%s.xml.gz";
44+
private static final String EBI_SIFTS_FILE_LOCATION = "http://ftp.ebi.ac.uk/pub/databases/msd/sifts/xml/%s.xml.gz";
4545

4646
private static String fileLoc = EBI_SIFTS_FILE_LOCATION;
4747

biojava-structure/src/main/java/org/biojava/nbio/structure/rcsb/RCSBUpdates.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class RCSBUpdates {
3434

3535
// The URL for acquiring the data
36-
public static final String baseURL = "ftp://ftp.rcsb.org/pub/pdb/data/status/latest/";
36+
public static final String baseURL = "http://ftp.rcsb.org/pub/pdb/data/status/latest/";
3737

3838
/**
3939
*

0 commit comments

Comments
 (0)