public class MonomerWSLoader extends Object
MonomerWSLoader loads monomers from the webservice configured in
MonomerStoreConfiguration.| Constructor and Description |
|---|
MonomerWSLoader(String polymerType)
Constructor using polymerType as parameter.
|
| Modifier and Type | Method and Description |
|---|---|
static List<CategorizedMonomer> |
loadMonomerCategorization()
Loads the monomer categories using the URL configured in
MonomerStoreConfiguration. |
Map<String,Monomer> |
loadMonomerStore(Map<String,Attachment> attachmentDB)
Loads the monomer store using the URL configured in
MonomerStoreConfiguration and the polymerType that was given to
constructor. |
public MonomerWSLoader(String polymerType) throws IOException
polymerType - given polymer typeIOException - if polymer type is unknownpublic Map<String,Monomer> loadMonomerStore(Map<String,Attachment> attachmentDB) throws IOException, URISyntaxException, EncoderException
MonomerStoreConfiguration and the polymerType that was given to
constructor.attachmentDB - the attachments stored in Toolkit.IOException - IO ErrorURISyntaxException - string could not be parsed as URIEncoderException - monomer store could be not encodedpublic static List<CategorizedMonomer> loadMonomerCategorization() throws IOException, URISyntaxException
MonomerStoreConfiguration.IOException - IO errorURISyntaxException - url is not validCopyright © 2017. All rights reserved.