@@ -201,7 +201,6 @@ public Vector getSchemaLocations(String identifier)
201201 String localIdentifier = getRecordFactory ().fromOAIIdentifier (identifier );
202202 LOG .log (Level .FINE , "getSchemaLocations() for localIdentifier=" +localIdentifier );
203203 FigshareConnection connection = new FigshareConnection ();
204- connection .setInsecureConnection ();
205204 connection .setRetryCount (2 );
206205 JSONObject nativeItem = null ;
207206 int result = connection .pulbicArticleDetails (Long .parseLong (localIdentifier ));
@@ -310,7 +309,6 @@ private Map findIdentifiers(String filter, int page, Map inputs, String metadata
310309 ArrayList ids = new ArrayList ();
311310 LOG .log (Level .FINE , "findIdentifiers() page=" +page +" filter=" +filter );
312311 FigshareConnection connection = new FigshareConnection ();
313- connection .setInsecureConnection ();
314312 connection .setRetryCount (2 );
315313 int result = connection .publicArticlesSearch (filter , page , maxListSize , inputs );
316314 LOG .log (Level .FINE , "findIdentifiers() figshare publicArticlesSearch return=" +result );
@@ -391,7 +389,6 @@ public String getRecord(String identifier, String metadataPrefix)
391389 String localIdentifier = getRecordFactory ().fromOAIIdentifier (identifier );
392390 LOG .log (Level .FINE , "getRecord() for localIdentifier=" +localIdentifier );
393391 FigshareConnection connection = new FigshareConnection ();
394- connection .setInsecureConnection ();
395392 connection .setRetryCount (2 );
396393 JSONObject nativeItem = null ;
397394 int result = connection .pulbicArticleDetails (Long .parseLong (localIdentifier ));
0 commit comments