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; // w w w . jav a 2 s . c o m import com.idemidov.readability.data.Bookmark; import com.idemidov.readability.parser.GetBookmarkByIdParser; import com.idemidov.readability.parser.Parser; import org.apache.http.client.methods.HttpGet; 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; public class GetBookmarkByIdCommand extends BaseCommand<Bookmark> { private String id; public GetBookmarkByIdCommand(OAuthConsumer consumer, String id) { super(consumer); this.id = id; } @Override Parser<Bookmark> getParser() { return new GetBookmarkByIdParser(); } @Override String getUrl() { return ROOT_URL.concat("bookmarks/").concat(String.valueOf(id)); } @Override HttpUriRequest getHttpUriRequest() { HttpGet get = new HttpGet(getUrl()); return get; } }