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; //from w w w .j av a 2 s. co m import com.idemidov.readability.data.Article; import com.idemidov.readability.parser.GetArticleByIdParser; 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; /** * Created by Ilya on 01/03/14. */ public class GetArticleByIdCommand extends BaseCommand<Article> { private String id; public GetArticleByIdCommand(OAuthConsumer consumer, String id) { super(consumer); this.id = id; } @Override Parser<Article> getParser() { return new GetArticleByIdParser(); } @Override String getUrl() { return ROOT_URL.concat("articles/").concat(String.valueOf(id)); } @Override HttpUriRequest getHttpUriRequest() { HttpGet get = new HttpGet(getUrl()); return get; } }