private static final String DEFAULT_RFAM_DOMAIN = "http://rfam.xfam.org";
@Override
- protected String getDomain()
+ protected String getURLPrefix()
{
return Cache.getDefault(RFAM_DOMAIN_KEY, DEFAULT_RFAM_DOMAIN);
}
super();
}
- protected abstract String getDomain();
+ /**
+ * the base URL for this Xfam-like service
+ *
+ * @return
+ */
+ protected abstract String getURLPrefix();
@Override
public abstract String getDbVersion();
String getURL(String queries)
{
- return getDomain() + "/family/" + queries.trim().toUpperCase()
+ return getURLPrefix() + "/family/" + queries.trim().toUpperCase()
+ getURLSuffix();
}