protected CouchDbClientBase(CouchDbConfig config) { CouchDbProperties props = config.getProperties(); httpClient = createHttpClient(props); gson = initGson(new GsonBuilder()); this.config = config; baseURI = builder() .scheme(props.getProtocol()) .host(props.getHost()) .port(props.getPort()) .path("/") .build(); dbURI = builder(baseURI).path(props.getDbName()).path("/").build(); urlCodec = new URLCodec(); }