public class GbifQueryServiceWrapper extends ServiceWrapperBase<SpecimenOrObservationBase<?>>
GbifQuery
via HTTP GETModifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BASE_URL |
logger, schemaAdapterMap
Constructor and Description |
---|
GbifQueryServiceWrapper()
Constructs a new GbifQueryServiceWrapper
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<GbifResponse> |
query(OccurenceQuery query)
Queries the GBIF API with the given
OccurenceQuery . |
DataSetResponse |
queryOriginalDataSet(GbifResponse gbifResponse)
Queries GBIF for the original data set
|
addNameValuePairTo, addNameValuePairTo, addSchemaAdapter, createUri, executeHttpGet, executeHttpPost, getBaseUrl, getSchemaAdapterMap, setBaseUrl, setSchemaAdapterMap
protected static final java.lang.String BASE_URL
public GbifQueryServiceWrapper()
public java.util.Collection<GbifResponse> query(OccurenceQuery query) throws org.apache.http.client.ClientProtocolException, java.io.IOException, java.net.URISyntaxException
OccurenceQuery
.GbifResponse
s or null
if no connection could be establishedorg.apache.http.client.ClientProtocolException
java.io.IOException
java.net.URISyntaxException
public DataSetResponse queryOriginalDataSet(GbifResponse gbifResponse) throws org.apache.http.client.ClientProtocolException, java.io.IOException
gbifResponse
- the GbifResponse holds the link to the dataset webserviceDataSetResponse
holding all relevant information to query the original providerjava.io.IOException
org.apache.http.client.ClientProtocolException
Copyright © 2007-2020 EDIT. All Rights Reserved.