From: Jim Procter Date: Tue, 26 Apr 2016 15:53:34 +0000 (+0100) Subject: JAL-2079 allow prefix++suffix type URL signature X-Git-Tag: Release_2_10_0~235^2~11 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2bca29574b68d32c16a80b2c1bfa330ed6012f82;p=jalview.git JAL-2079 allow prefix++suffix type URL signature --- diff --git a/src/jalview/ws/dbsources/Xfam.java b/src/jalview/ws/dbsources/Xfam.java index 26c9997..b70beff 100644 --- a/src/jalview/ws/dbsources/Xfam.java +++ b/src/jalview/ws/dbsources/Xfam.java @@ -55,7 +55,9 @@ public abstract class Xfam extends DbSourceProxyImpl startQuery(); // TODO: trap HTTP 404 exceptions and return null AlignmentI rcds = new FormatAdapter().readFile(getXFAMURL() - + queries.trim().toUpperCase(), FormatAdapter.URL, "STH"); + + queries.trim().toUpperCase() + getXFAMURLSUFFIX(), + jalview.io.FormatAdapter.URL, + "STH"); for (int s = 0, sNum = rcds.getHeight(); s < sNum; s++) { rcds.getSequenceAt(s).addDBRef(new DBRefEntry(getXfamSource(), @@ -81,4 +83,13 @@ public abstract class Xfam extends DbSourceProxyImpl return true; } + * default suffix to append the retrieval URL for this source. + * + * @return "" for most Xfam sources + */ + public String getXFAMURLSUFFIX() + { + return ""; + } + }