From 2bca29574b68d32c16a80b2c1bfa330ed6012f82 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 26 Apr 2016 16:53:34 +0100 Subject: [PATCH] JAL-2079 allow prefix++suffix type URL signature --- src/jalview/ws/dbsources/Xfam.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 ""; + } + } -- 1.7.10.2