Back to project page android-rest-client.
The source code is released under:
Apache License
If you think the Android project android-rest-client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dg.examples.restclientdemo.communication.requests; //from ww w. j ava 2 s . co m import com.araneaapps.android.libs.logger.ALog; import com.dg.examples.restclientdemo.communication.RestConstants; import com.dg.libs.rest.client.RequestMethod; import com.dg.libs.rest.parsers.HttpResponseParser; import com.dg.libs.rest.requests.RestClientRequest; import java.io.InputStream; public class PatchRequest extends RestClientRequest<Void> { public static final String TAG = PatchRequest.class.getSimpleName(); public PatchRequest(String query) { super(); setParser(new HttpResponseParser<Void>() { @Override public Void parse(InputStream instream) throws Exception { ALog.d(org.apache.commons.io.IOUtils.toString(instream)); return null; } }); setRequestMethod(RequestMethod.PATCH); addEncodedQueryParam("q", query); addQueryParam("v", "1.0"); addQueryParam("include_entities", "" + true); setUrl(RestConstants.HTTP_BIN_URL + "patch"); } }