Skip to content

Commit 87d7474

Browse files
authored
ProteomeXchange servers were updated to https with SSL. Updated URLs in ProteomeXchangeService. (#338)
1 parent c84b55a commit 87d7474

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

panoramapublic/src/org/labkey/panoramapublic/proteomexchange/ProteomeXchangeService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public class ProteomeXchangeService
4141
public static final String PXID = "PX[DT]\\d{6}";
4242
private static final Pattern PXID_IN_RESPONSE = Pattern.compile("identifier=(" + PXID + ")");
4343

44+
private static final String PROTEOME_CENTRAL_URL = "https://proteomecentral.proteomexchange.org";
45+
4446
private enum METHOD {submitDataset, validateXML, requestID}
4547

4648
public static String validatePxXml(File pxxmlFile, boolean testDatabase, String user, String pass) throws ProteomeXchangeServiceException
@@ -142,7 +144,7 @@ private static MultipartEntityBuilder getMultipartEntityBuilder(boolean testData
142144
private static String postRequest(MultipartEntityBuilder builder) throws IOException, ProteomeXchangeServiceException, ParseException
143145
{
144146
String responseMessage;
145-
HttpPost post = new HttpPost("http://proteomecentral.proteomexchange.org/cgi/Dataset");
147+
HttpPost post = new HttpPost(PROTEOME_CENTRAL_URL + "/cgi/Dataset");
146148
post.setEntity(builder.build());
147149

148150
// execute the POST request
@@ -177,7 +179,7 @@ public static boolean responseHasErrors(String response)
177179

178180
public static String toUrl(@NotNull String pxdAccession)
179181
{
180-
return "http://proteomecentral.proteomexchange.org/cgi/GetDataset?ID=" + PageFlowUtil.encode(pxdAccession);
182+
return PROTEOME_CENTRAL_URL + "/cgi/GetDataset?ID=" + PageFlowUtil.encode(pxdAccession);
181183
}
182184
}
183185

0 commit comments

Comments
 (0)