public File[] get(String bsn, String range) throws Exception { File f = get(bsn, range, Strategy.HIGHEST, null); if (f == null) return null; return new File[] { f }; }
public File get(String bsn, Version version, Map<String,String> properties, DownloadListener ... listeners) throws Exception { File f= get(bsn, version.toString(), Strategy.EXACT, properties); if ( f == null) return null; for (DownloadListener l : listeners) { try { l.success(f); } catch (Exception e) { reporter.exception(e, "Download listener for %s", f); } } return f; }
public File get(String bsn, Version version, Map<String,String> properties, DownloadListener ... listeners) throws Exception { File f= get(bsn, version.toString(), Strategy.EXACT, properties); if ( f == null) return null; for (DownloadListener l : listeners) { try { l.success(f); } catch (Exception e) { reporter.exception(e, "Download listener for %s", f); } } return f; }
@Override public File get(String bsn, Version version, Map<String, String> properties, DownloadListener... listeners) throws Exception { File f = get(bsn, version.toString(), Strategy.EXACT, properties); if (f == null) return null; for (DownloadListener l : listeners) { try { l.success(f); } catch (Exception e) { reporter.exception(e, "Download listener for %s", f); } } return f; }
public File get(String bsn, Version version, Map<String,String> properties, DownloadListener ... listeners) throws Exception { File f= get(bsn, version.toString(), Strategy.EXACT, properties); if ( f == null) return null; for (DownloadListener l : listeners) { try { l.success(f); } catch (Exception e) { reporter.exception(e, "Download listener for %s", f); } } return f; }
@Override public File get(String bsn, Version version, Map<String, String> properties, DownloadListener... listeners) throws Exception { File f = get(bsn, version.toString(), Strategy.EXACT, properties); if (f == null) return null; for (DownloadListener l : listeners) { try { l.success(f); } catch (Exception e) { reporter.exception(e, "Download listener for %s", f); } } return f; }