@Service @Transactional(readOnly=true) public class BioCaseQueryServiceWrapper extends ServiceWrapperBase<SpecimenOrObservationBase<?>>
OccurenceQuery
via HTTP POST to a given providerlogger, schemaAdapterMap
Constructor and Description |
---|
BioCaseQueryServiceWrapper() |
Modifier and Type | Method and Description |
---|---|
java.util.List<SpecimenOrObservationBase<?>> |
dummyData() |
java.lang.String |
parseAbcdSchemaVersion(java.io.InputStream inputStream) |
java.io.InputStream |
query(OccurenceQuery query,
java.net.URI endPoint)
Queries the BioCASE provider at the given endPoint with the given
OccurenceQuery . |
java.io.InputStream |
querySiblings(OccurenceQuery query,
java.net.URI endPoint) |
addNameValuePairTo, addNameValuePairTo, addSchemaAdapter, createUri, executeHttpGet, executeHttpPost, getBaseUrl, getSchemaAdapterMap, setBaseUrl, setSchemaAdapterMap
public java.io.InputStream query(OccurenceQuery query, java.net.URI endPoint) throws org.apache.http.client.ClientProtocolException, java.io.IOException
OccurenceQuery
.query
- the query object which stores all the query parametersendPoint
- If null
then the default endPoint is used
(http://ww3.bgbm.org/biocase/pywrapper.cgi?dsa=Herbar)InputStream
org.apache.http.client.ClientProtocolException
java.io.IOException
public java.lang.String parseAbcdSchemaVersion(java.io.InputStream inputStream)
public java.util.List<SpecimenOrObservationBase<?>> dummyData()
public java.io.InputStream querySiblings(OccurenceQuery query, java.net.URI endPoint) throws org.apache.http.client.ClientProtocolException, java.io.IOException
query
- endPoint
- org.apache.http.client.ClientProtocolException
java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.