@Test public void test_groupByScientificName01() throws InvalidQueryException { GroupByScientificNameQuerySpec query = new GroupByScientificNameQuerySpec(); query.addCondition(new QueryCondition("acceptedName.genusOrMonomial", "=", "Parus")); client.groupByScientificName(query); }
@Override public GroupByScientificNameQueryResult groupByScientificName( GroupByScientificNameQuerySpec querySpec) throws InvalidQueryException { SimpleHttpRequest request = newQuerySpecRequest("groupByScientificName", querySpec); sendRequest(request); int status = request.getStatus(); if (status != HTTP_OK) { byte[] response = request.getResponseBody(); ServerException exception = newServerException(status, response); if (exception.was(InvalidQueryException.class)) { throw invalidQueryException(exception); } throw exception; } return getObject(request.getResponseBody(), GroupByScientificNameQueryResult.class); }
TaxonClient extends NbaClient<Taxon> implements ITaxonAccess { @Override public GroupByScientificNameQueryResult groupByScientificName( GroupByScientificNameQuerySpec querySpec) throws InvalidQueryException { SimpleHttpRequest request = newQuerySpecRequest("groupByScientificName", querySpec); sendRequest(request); int status = request.getStatus(); if (status != HTTP_OK) { byte[] response = request.getResponseBody(); ServerException exception = newServerException(status, response); if (exception.was(InvalidQueryException.class)) { throw invalidQueryException(exception); } throw exception; } return getObject(request.getResponseBody(), GroupByScientificNameQueryResult.class); } }
TaxonClient extends NbaClient<Taxon> implements ITaxonAccess { @Override public GroupByScientificNameQueryResult groupByScientificName( GroupByScientificNameQuerySpec querySpec) throws InvalidQueryException { SimpleHttpRequest request = newQuerySpecRequest("groupByScientificName", querySpec); sendRequest(request); int status = request.getStatus(); if (status != HTTP_OK) { byte[] response = request.getResponseBody(); ServerException exception = newServerException(status, response); if (exception.was(InvalidQueryException.class)) { throw invalidQueryException(exception); } throw exception; } return getObject(request.getResponseBody(), GroupByScientificNameQueryResult.class); } TaxonClient(ClientConfig config, String rootPath); }
TaxonClient extends NbaClient<Taxon> implements ITaxonAccess { @Override public GroupByScientificNameQueryResult groupByScientificName( GroupByScientificNameQuerySpec querySpec) throws InvalidQueryException { SimpleHttpRequest request = newQuerySpecRequest("groupByScientificName", querySpec); sendRequest(request); int status = request.getStatus(); if (status != HTTP_OK) { byte[] response = request.getResponseBody(); ServerException exception = newServerException(status, response); if (exception.was(InvalidQueryException.class)) { throw invalidQueryException(exception); } throw exception; } return getObject(request.getResponseBody(), GroupByScientificNameQueryResult.class); } TaxonClient(ClientConfig config, String rootPath); @Override void downloadQuery(QuerySpec querySpec, OutputStream out); @Override void dwcaQuery(QuerySpec querySpec, OutputStream out); @Override void dwcaGetDataSet(String name, OutputStream out); @Override String[] dwcaGetDataSetNames(); @Override GroupByScientificNameQueryResult groupByScientificName(
      GroupByScientificNameQuerySpec querySpec); }
TaxonClient extends NbaClient<Taxon> implements ITaxonAccess { @Override public GroupByScientificNameQueryResult groupByScientificName( GroupByScientificNameQuerySpec querySpec) throws InvalidQueryException { SimpleHttpRequest request = newQuerySpecRequest("groupByScientificName", querySpec); sendRequest(request); int status = request.getStatus(); if (status != HTTP_OK) { byte[] response = request.getResponseBody(); ServerException exception = newServerException(status, response); if (exception.was(InvalidQueryException.class)) { throw invalidQueryException(exception); } throw exception; } return getObject(request.getResponseBody(), GroupByScientificNameQueryResult.class); } TaxonClient(ClientConfig config, String rootPath); @Override void downloadQuery(QuerySpec querySpec, OutputStream out); @Override void dwcaQuery(QuerySpec querySpec, OutputStream out); @Override void dwcaGetDataSet(String name, OutputStream out); @Override String[] dwcaGetDataSetNames(); @Override GroupByScientificNameQueryResult groupByScientificName(
      GroupByScientificNameQuerySpec querySpec);  }