Last update: 2011-06-23

org.proteios.core
Class LsidElement.SequenceRetriever

java.lang.Object
  extended by org.proteios.core.LsidElement.SequenceRetriever
Enclosing class:
LsidElement

protected static class LsidElement.SequenceRetriever
extends Object

This class will retrieve the data from a given LSID. It will resolve the domain of the LSID, check if there is an LSID authority service listed at that domain, check if the authority has a data service, and finally, retrieve the data from that data service.

Author:
linus

Constructor Summary
protected LsidElement.SequenceRetriever()
           
 
Method Summary
protected static String retrieveSequence(String lsidString)
          This method will retrieve the data from a given LSID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LsidElement.SequenceRetriever

protected LsidElement.SequenceRetriever()
Method Detail

retrieveSequence

protected static String retrieveSequence(String lsidString)
                                  throws BaseException
This method will retrieve the data from a given LSID. It will resolve the domain of the LSID, check if there is an LSID authority service listed at that domain, check if the authority has a data service, and finally, retrieve the data from that data service. NOTE: It is presumed that the LSID given as a parameter does reference a protein sequence. This method has no way of telling if the data referenced by an LSID is a sequence or not, it will just return whatever data is served by the authority service.

Parameters:
lsidString - the LSID to be resolved
Returns:
the data referenced by the LSID
Throws:
CoreException - if for some reason the no data was obtained
BaseException

Last update: 2011-06-23