*/
package jalview.ws.dbsources;
+import jalview.bin.Cache;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.DBRefEntry;
import jalview.io.DataSourceType;
// retrieved.
startQuery();
// TODO: trap HTTP 404 exceptions and return null
- AlignmentI rcds = new FormatAdapter().readFile(getXFAMURL()
- + queries.trim().toUpperCase() + getXFAMURLSUFFIX(),
+ String xfamUrl = getXFAMURL()
+ + queries.trim().toUpperCase() + getXFAMURLSUFFIX();
+
+ if (Cache.log != null)
+ {
+ Cache.log.debug("XFAM URL for retrieval is: " + xfamUrl);
+ }
+
+ AlignmentI rcds = new FormatAdapter().readFile(xfamUrl ,
DataSourceType.URL, FileFormat.Stockholm);
+
for (int s = 0, sNum = rcds.getHeight(); s < sNum; s++)
{
rcds.getSequenceAt(s).addDBRef(new DBRefEntry(getXfamSource(),