git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2094 first pass with jalview.api.ColorI interface
[jalview.git]
/
src
/
jalview
/
ws
/
dbsources
/
Xfam.java
diff --git
a/src/jalview/ws/dbsources/Xfam.java
b/src/jalview/ws/dbsources/Xfam.java
index
26c9997
..
508047d
100644
(file)
--- 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()
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(),
for (int s = 0, sNum = rcds.getHeight(); s < sNum; s++)
{
rcds.getSequenceAt(s).addDBRef(new DBRefEntry(getXfamSource(),
@@
-81,4
+83,14
@@
public abstract class Xfam extends DbSourceProxyImpl
return true;
}
return true;
}
+ /**
+ * default suffix to append the retrieval URL for this source.
+ *
+ * @return "" for most Xfam sources
+ */
+ public String getXFAMURLSUFFIX()
+ {
+ return "";
+ }
+
}
}