src/main/java/org/lightcouch/CouchDbClientBase.java
public String invokeUpdateHandler(String updateHandlerUri, String docId, Params params) {
		assertNotEmpty(updateHandlerUri, "uri");
		assertNotEmpty(docId, "docId");
		final String[] v = updateHandlerUri.split("/");
		final String path = String.format("_design/%s/_update/%s/", v[0], v[1]);
		final URI uri = buildUri(getDBUri()).path(path).path(docId).query(params).build();
		final HttpResponse response = executeRequest(new HttpPut(uri));
		return streamToString(getStream(response));
	}
public String invokeUpdateHandler(String updateHandlerUri, String docId, Params params) {
		assertNotEmpty(updateHandlerUri, "uri");
		assertNotEmpty(docId, "docId");
		final String[] v = updateHandlerUri.split("/");
		final String path = String.format("_design/%s/_update/%s/", v[0], v[1]);
		final URI uri = buildUri(getDBUri()).path(path).path(docId).query(params).build();
		final HttpResponse response = executeRequest(new HttpPut(uri));
		return streamToString(getStream(response));
	}
public String invokeUpdateHandler ( String updateHandlerUri , String docId , Params params ) { assertNotEmpty ( updateHandlerUri , "uri" ) ; assertNotEmpty ( docId , "docId" ) ; final String [ ] v = updateHandlerUri . split ( "/" ) ; final String path = String . format ( "_design/%s/_update/%s/" , v [ 0 ] , v [ 1 ] ) ; final URI uri = buildUri ( getDBUri ( ) ) . path ( path ) . path ( docId ) . query ( params ) . build ( ) ; final HttpResponse response = executeRequest ( new HttpPut ( uri ) ) ; return streamToString ( getStream ( response ) ) ; }
Invokes an Update Handler.
<pre>
Params params = new Params()
.addParam("field", "foo")
.addParam("value", "bar");
String output = dbClient.invokeUpdateHandler("designDoc/update1", "docId", params);
</pre>
@param updateHandlerUri The Update Handler URI, in the format: <code>designDoc/update1</code>
@param docId The document id to update.
@param params The query parameters as {@link Params}.
@return The output of the request.
Invokes an Update Handler . <pre > Params params = new Params () . addParam ( field foo ) . addParam ( value bar ) ; String output = dbClient . invokeUpdateHandler ( designDoc / update1 docId params ) ; < / pre >