@Test public void test_getGeoJsonForLocality01() { assertNull(client.getGeoJsonForLocality("FOO")); }
@Override public GeoJsonObject getGeoJsonForLocality(String id) { SimpleHttpRequest request = getJson("getGeoJsonForLocality/" + 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(), GeoJsonObject.class); }
GeoAreaClient extends NbaClient<GeoArea> implements IGeoAreaAccess { @Override public GeoJsonObject getGeoJsonForLocality(String id) { SimpleHttpRequest request = getJson("getGeoJsonForLocality/" + 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(), GeoJsonObject.class); } }
GeoAreaClient extends NbaClient<GeoArea> implements IGeoAreaAccess { @Override public GeoJsonObject getGeoJsonForLocality(String id) { SimpleHttpRequest request = getJson("getGeoJsonForLocality/" + 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(), GeoJsonObject.class); } GeoAreaClient(ClientConfig config, String rootPath); }
GeoAreaClient extends NbaClient<GeoArea> implements IGeoAreaAccess { @Override public GeoJsonObject getGeoJsonForLocality(String id) { SimpleHttpRequest request = getJson("getGeoJsonForLocality/" + 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(), GeoJsonObject.class); } GeoAreaClient(ClientConfig config, String rootPath); @Override GeoJsonObject getGeoJsonForLocality(String id); @Override void downloadQuery(QuerySpec querySpec, OutputStream out); }
GeoAreaClient extends NbaClient<GeoArea> implements IGeoAreaAccess { @Override public GeoJsonObject getGeoJsonForLocality(String id) { SimpleHttpRequest request = getJson("getGeoJsonForLocality/" + 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(), GeoJsonObject.class); } GeoAreaClient(ClientConfig config, String rootPath); @Override GeoJsonObject getGeoJsonForLocality(String id); @Override void downloadQuery(QuerySpec querySpec, OutputStream out);  }