return couchHttpResponse.isOk();
}
@Override
public CouchDatabaseInfo databaseInfo() {
HttpGetRequest httpGetRequest = new HttpGetRequest(databaseName, null, null, CouchMediaType.APPLICATION_JSON);
CouchHttpResponse couchHttpResponse = httpClient.get(httpGetRequest);
if (couchHttpResponse.isOk()) {
return jsonStrategy.readDatabaseInfo(couchHttpResponse.getStringContent());
} else if (couchHttpResponse.isNotFound()) {
throw CouchException.notFound("Database " + databaseName + " does not exist");