X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fsifts%2FSiftsClient.java;fp=src%2Fjalview%2Fws%2Fsifts%2FSiftsClient.java;h=037854b7779876e8d5ba479e39df1cccc9a83b29;hb=a350dc895531b6249b12267525f99be74448378e;hp=0c707e5c18a9951715d83a84b55925244feea0f6;hpb=cd886ae669962ea7fff5fb46627b3f84e77d295d;p=jalview.git diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index 0c707e5..037854b 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -116,7 +116,7 @@ public class SiftsClient implements SiftsClientI private static final String NOT_OBSERVED = "Not_Observed"; - private static final String SIFTS_FTP_BASE_URL = "http://ftp.ebi.ac.uk/pub/databases/msd/sifts/xml/"; + private static final String SIFTS_SPLIT_FTP_BASE_URL = "https://ftp.ebi.ac.uk/pub/databases/msd/sifts/split_xml/"; private final static String NEWLINE = System.lineSeparator(); @@ -305,7 +305,7 @@ public class SiftsClient implements SiftsClientI pdbId = pdbId.replace(".cif", ""); } String siftFile = pdbId + ".xml.gz"; - String siftsFileFTPURL = SIFTS_FTP_BASE_URL + siftFile; + String siftsFileFTPURL = getDownloadUrlFor(siftFile); /* * Download the file from URL to either @@ -348,6 +348,11 @@ public class SiftsClient implements SiftsClientI return downloadTo; } + public static String getDownloadUrlFor(String siftFile) + { + return SIFTS_SPLIT_FTP_BASE_URL +siftFile.substring(1, 3)+"/"+siftFile; + } + /** * Delete the SIFTs file for the given PDB Id in the local SIFTs download * directory