@Test() public void test_find02() { client.find("RMNH.AVES.P.1036@CRS"); }
@Override public T find(String id) { SimpleHttpRequest request = getJson("find/" + id); int status = request.getStatus(); if (status == HTTP_NOT_FOUND) { return null; } if (status != HTTP_OK) { throw newServerException(status, request.getResponseBody()); } return getObject(request.getResponseBody(), documentObjectClass()); }
NbaClient extends Client implements INbaAccess<T> { @Override public T find(String id) { SimpleHttpRequest request = getJson("find/" + id); int status = request.getStatus(); if (status == HTTP_NOT_FOUND) { return null; } if (status != HTTP_OK) { throw newServerException(status, request.getResponseBody()); } return getObject(request.getResponseBody(), documentObjectClass()); } }
NbaClient extends Client implements INbaAccess<T> { @Override public T find(String id) { SimpleHttpRequest request = getJson("find/" + id); int status = request.getStatus(); if (status == HTTP_NOT_FOUND) { return null; } if (status != HTTP_OK) { throw newServerException(status, request.getResponseBody()); } return getObject(request.getResponseBody(), documentObjectClass()); } NbaClient(ClientConfig config, String rootPath); }
NbaClient extends Client implements INbaAccess<T> { @Override public T find(String id) { SimpleHttpRequest request = getJson("find/" + id); int status = request.getStatus(); if (status == HTTP_NOT_FOUND) { return null; } if (status != HTTP_OK) { throw newServerException(status, request.getResponseBody()); } return getObject(request.getResponseBody(), documentObjectClass()); } NbaClient(ClientConfig config, String rootPath); @Override T find(String id); @Override T[] findByIds(String[] ids); @Override QueryResult<T> query(QuerySpec querySpec); @Override long count(QuerySpec querySpec); @Override long countDistinctValues(String forField, QuerySpec querySpec); @Override List<Map<String, Object>> countDistinctValuesPerGroup(String forGroup, String forField,
      QuerySpec querySpec); @Override Map<String, Long> getDistinctValues(String forField, QuerySpec querySpec); @Override List<Map<String, Object>> getDistinctValuesPerGroup(String forGroup, String forField,
      QuerySpec querySpec); }
NbaClient extends Client implements INbaAccess<T> { @Override public T find(String id) { SimpleHttpRequest request = getJson("find/" + id); int status = request.getStatus(); if (status == HTTP_NOT_FOUND) { return null; } if (status != HTTP_OK) { throw newServerException(status, request.getResponseBody()); } return getObject(request.getResponseBody(), documentObjectClass()); } NbaClient(ClientConfig config, String rootPath); @Override T find(String id); @Override T[] findByIds(String[] ids); @Override QueryResult<T> query(QuerySpec querySpec); @Override long count(QuerySpec querySpec); @Override long countDistinctValues(String forField, QuerySpec querySpec); @Override List<Map<String, Object>> countDistinctValuesPerGroup(String forGroup, String forField,
      QuerySpec querySpec); @Override Map<String, Long> getDistinctValues(String forField, QuerySpec querySpec); @Override List<Map<String, Object>> getDistinctValuesPerGroup(String forGroup, String forField,
      QuerySpec querySpec);  }