Back to project page ReadabilitySDK.
The source code is released under:
MIT License
If you think the Android project ReadabilitySDK 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.idemidov.readability.command; /* www . ja v a2s. c o m*/ import com.idemidov.readability.data.Tag; import com.idemidov.readability.parser.Parser; import org.apache.http.client.methods.HttpDelete; import org.apache.http.client.methods.HttpUriRequest; import org.json.JSONException; import java.io.UnsupportedEncodingException; import oauth.signpost.OAuthConsumer; import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer; import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; /** * Created by Ilya on 01/03/14. */ public class DeleteTagByIdCommand extends BaseCommand<Tag> { private int id; public DeleteTagByIdCommand(OAuthConsumer consumer, int id) { super(consumer); this.id = id; } @Override Parser<Tag> getParser() { // DELETE tag/id response is empty return null; } @Override String getUrl() { return ROOT_URL.concat("tags/").concat(String.valueOf(id)); } @Override HttpUriRequest getHttpUriRequest() { HttpDelete delete = new HttpDelete(getUrl()); return delete; } }