public class EntrezSearchProcessor extends HTTPRequest<String,List<IStructureRecord>>
Modifier and Type | Field and Description |
---|---|
static String |
entrezURL |
protected EntrezESearchParser |
parser |
protected PUGProcessor |
pug |
protected boolean |
retrieve_sdf |
cancelled, httpMethod, maxretry, timeout, url
Constructor and Description |
---|
EntrezSearchProcessor() |
Modifier and Type | Method and Description |
---|---|
protected String |
format(IStructureRecord record,
String source,
String einecs) |
boolean |
isRetrieve_conformers() |
boolean |
isRetrieve_sdf() |
protected List<IStructureRecord> |
parseInput(String target,
InputStream in) |
protected void |
prepareOutput(String target,
OutputStream out) |
List<IStructureRecord> |
process(String target) |
void |
setRetrieve_conformers(boolean retrieve_conformers) |
void |
setRetrieve_sdf(boolean retrieve_sdf)
If true (default) retrieves SDF via two stage query (Entrez + PUG).
|
getHttpMethod, getTimeout, getUrl, isCancelled, setCancelled, setHttpMethod, setTimeout, setUrl
public static String entrezURL
protected final EntrezESearchParser parser
protected final PUGProcessor pug
protected boolean retrieve_sdf
public boolean isRetrieve_conformers()
public void setRetrieve_conformers(boolean retrieve_conformers)
public boolean isRetrieve_sdf()
public void setRetrieve_sdf(boolean retrieve_sdf)
retrieve_sdf
- protected List<IStructureRecord> parseInput(String target, InputStream in) throws ProcessorException
parseInput
in class HTTPRequest<String,List<IStructureRecord>>
ProcessorException
protected void prepareOutput(String target, OutputStream out) throws ProcessorException
prepareOutput
in class HTTPRequest<String,List<IStructureRecord>>
ProcessorException
public List<IStructureRecord> process(String target) throws net.idea.modbcum.i.exceptions.AmbitException
process
in interface net.idea.modbcum.i.processors.IProcessor<String,List<IStructureRecord>>
process
in class HTTPRequest<String,List<IStructureRecord>>
net.idea.modbcum.i.exceptions.AmbitException
protected String format(IStructureRecord record, String source, String einecs)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.