…en executing Database.adhoc(AdHocView). Enables setting AdHocView options like setLimit(int).
… API changes.
…d. End result? connection pooling!
Updated build.xml to version 0.2.0-SVN
- Change constructor (CouchResponse(HttpMethod) to use method.getResponseBodyAsString(); instead of a Buffered method.getResponseBodyAsStream(), was getting "Bad chunk size: HTTP/1.1 500 Internal Server Error" for large responses - Added correct handle of DELETE w/ status code 200 (couchdb API change) Database - Added URLEncoder.encode(id, "utf-8) for id references (save, delete, etc) - method signatures changed to throws IOException because of URLEncoder() - Added bulkSaveDocuments(Document), with performs POST /db/_bulk_docs Document - Added check for "id" id, in addition to "_id", to String getId() (couchdb API change). - Added check for "rev" rev, in addition to "_rev", to String getRev() (couchdb API change). - Added throws IOException for some methods, because of URLEncode.encode() additions to Database - Fixed getView(String) to use "_design" (couchdb API change) - Fixed addView(String, String) to use "_design" (couchdb API change) - Fixed deleteView(String) to use "_design" (couchdb API change) - getJSONObject() wrapped IOException to RuntimeException, otherwise had to change a lot of JSON method signatures to throw IOException (didn't think that was necessary) Session - Removed URLEncoder.encode() from buildUrl(String) because it was incorrectly encoding "/"'s from <dbname>/<etc> - Added setHttpTimeout(int ms) to enable timeout for HttpClient - Fixed content type check for post(String,String,String) temp_view (now all are json mime) JUnit Tests - Added and fixed some tests. - NOTE: addHoc and add new views still do not work.
…eated private, internal method for all others to call.
…ped characters (such as a slash)